Developer forum

Forum » Development » Creating custom captions in language.mdb

Creating custom captions in language.mdb


Reply

Hey

I want to make my own text captions in language.mdb in order to make Dynamicweb show correct text captions in a custom sales discount. But then I wonder, how do you guy's at Dynamicweb add new records to language.mdb? Do you overwrite the language.mdb when you create new captions or do you insert the new rows in existing language.mdb's? I hope you do it by the last method otherwise my custom captions are overwritten! Or should I make custom captions in an other way than using language.mdb??

 

Regards

Lars Larsen, DIS


Replies

 
Reply

Language.mdb is not intended for use in custom applications, but only for standard DW. Like you mention, we overwrite this database when distributing new captions, so yes, you should use an alternative approach for translating your own captions.

 
Reply
Sorensen wrote:

Language.mdb is not intended for use in custom applications, but only for standard DW. Like you mention, we overwrite this database when distributing new captions, so yes, you should use an alternative approach for translating your own captions.

OK, but how should I do that when I want Dynamicweb to show my caption for e.g. a codeline like this:
 

 

[

AddInParameter("Orderline text"), AddInParameterEditor(typeof(TextParameterEditor), "")]

 

It's the caption "Orderline text" that is displayed in this way:

 

Orderline_text

 

in the backend when a custom sales discount is used.

 

/Lars

 
Reply
lal@dkis.dk wrote:
Sorensen wrote:

Language.mdb is not intended for use in custom applications, but only for standard DW. Like you mention, we overwrite this database when distributing new captions, so yes, you should use an alternative approach for translating your own captions.

OK, but how should I do that when I want Dynamicweb to show my caption for e.g. a codeline like this:
 

 

 

AddInParameter("Orderline text"), AddInParameterEditor(typeof(TextParameterEditor), "")]

 

It's the caption "Orderline text" that is displayed in this way:

 

Orderline_text

 

in the backend when a custom sales discount is used.

 

/Lars

 

 

 

[

Is it possible at all to show custom captions in a custom sales discount? I have coded one and I have set the AddInDescription to:

 

 

"The product discount lets you apply a discount to a certain..."
 

but when it is shown in the backend the spaces in the string has been replaced with underscores! How can that be avoided?

 

 

 

 

 

 

 

 
Reply

If you hacked the database, so DW believes that you have adequate access level to perform translations of standard modules, you'll see these underscores. If you're just a plain user, the underscores will not appear.

 
Reply
Sorensen wrote:

If you hacked the database, so DW believes that you have adequate access level to perform translations of standard modules, you'll see these underscores. If you're just a plain user, the underscores will not appear.


 

Oh, that's rigth. Thanks that solved my problem :-D

 

You must be logged in to post in the forum