Localization builtin texts
 
Home My Account Forum Try It! Buy It!
About Contact Us Site Map
StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      


123»»»

Localization builtin textsExpand / Collapse
Author
Message
Posted 03/19/2008 7:58:12 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: Today @ 3:22:55 AM
Posts: 31, Visits: 107
Hi,

I'm trying the trial version and have found that I'm unable to change some texts. For example I need to completely translate MaintenanceFormToolStrip control. I'm able to change button texts and tooltips but I do not know how to translate confirmation box when deleting record ("Are You sure you wish to delete..." etc.).

Can anybody give me an answer please?

Thanks

George

Post #15011
Posted 03/19/2008 9:51:25 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:47:41 AM
Posts: 4,104, Visits: 4,175
There is a property on the form called AutoDeleteMessage which you can change on the form.  You could also create a localization key and set teh AutoDeleteMessageKey property which will then pull from the localization table instead.

Post #15022
Posted 03/20/2008 5:37:54 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: Today @ 3:22:55 AM
Posts: 31, Visits: 107
Hi,

Thank You for Your answer. It works fine. However I do not know how to translate simple texts like "Yes" and "No" included in the quetions. I haven't found it neither on the control or on the form.

Additionally - I would like to ask, what is the best supported method to use localized texts in my application to avoid rewriting texts in each control and form. I'm using a template empty form and control that all of forms and controls inherits and all common settings are implemented in this template form/control. Would You suggest any better method?

Thank You

George

Post #15053
Posted 03/20/2008 7:27:34 AM


Advanced StrataFrame User

Advanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame UserAdvanced StrataFrame User

Group: StrataFrame Users
Last Login: 06/29/2008 10:06:12 AM
Posts: 595, Visits: 10,664
Hi George.

There is a whole module that will deal with localization for you. Just for a start, and we can carry on from here, have a look at the StrataFrame menu on Visual Studio, and you will find a "Localization & Messaging Editor". Then, open the SF Help and go to "Application Framework" / "Localization & Messaging".

Within this project, you will define text and messages, with their keys, and use and re-use them troughout your application, in many languages you wish for.

And just to remind you, if you can, there is a class coming up in July where the guys go through this extensively. You would benefit a lot attending theses classes.

Cheers.

Post #15054
Posted 03/20/2008 7:46:44 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: Today @ 3:22:55 AM
Posts: 31, Visits: 107
Hi Ivan,

thank You for Your assistence. I have already examined the functionality of Localization and messaging editor. When building multilanguage applications it is really very usefull featur.

However this is not exactly what I have asked. For the moment I do not know, how to translate some common texts like "Yes" and "No" in AutoDelete dialog (for exmaple). I have succesfully translated AutoDeleteTitle etc., but I cannot find where I can set proper text for translation of buttons caption (Yes/No).

The second part of the question was aimed to the best approach for using multiple forms and controls in application. Disregarding of whether I use Localization and Messaging editor or update texts manually, I have to set proper texts (or corresponding keys) on each new form. And to avoid this I have mentioned that I'm always using empty template form where I set all common properties (not only texts but fonts, colors etc) in this parent form and all forms in the application inherits this template form. The question was then simple - is this good approach or You can recommend me some better way how to work with StrataFrame?

Thank You

George

Post #15055
Posted 03/20/2008 9:37:20 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:47:41 AM
Posts: 4,104, Visits: 4,175
However this is not exactly what I have asked. For the moment I do not know, how to translate some common texts like "Yes" and "No" in AutoDelete dialog (for exmaple). I have succesfully translated AutoDeleteTitle etc., but I cannot find where I can set proper text for translation of buttons caption (Yes/No).

Actually Ivan was giving you the answer.  The Yes, No, cancel, etc can be controlled through the Localization and Messaging editor.  Apparently you are trying to use a language that has not already been pre-localized by StrataFrame.  If you open the Localization and Messaging Editor, create a project, you can set the Yes, No, Cancel, etc. in the properties of the language.

And to avoid this I have mentioned that I'm always using empty template form where I set all common properties (not only texts but fonts, colors etc) in this parent form and all forms in the application inherits this template form. The question was then simple - is this good approach or You can recommend me some better way how to work with StrataFrame?

Simply using inheritance would resolve this.  Create a base form that inherited from the StrataFrame BaseForm, set all of the properties for fonts, localization keys, etc.  Then create your own template (or manually change the inheritance) of all of the forms that you create.  This way you only program this logic once.

Post #15060
Posted 03/21/2008 2:47:49 AM
StrataFrame Beginner

StrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame BeginnerStrataFrame Beginner

Group: StrataFrame Users
Last Login: Today @ 3:22:55 AM
Posts: 31, Visits: 107
I have followed Your instructions and have performed the following actions:

- have created new Messaging project

- added new language (Czech)

- set localized texts for common translations as You described in previous post

- generated XML (I have tried to generate only XML for Czech republic but when I have examined the generated file, there were no texts; then I have generated document for all languages - in this document there are all localized texts)

- imported these files in Visual Studio and set these files as Embeded resources)

- in InitApplication shared method I have added the line "Localization.MessageLocaleID = 1029"

- in menu StrataFrame - Solution Preferences I have selected my project and default language set to Czech in Localization preferences

However - there are still "Yes" and "No" text in the running application. I really do not know what else should I do to see texts in my language. I have searched the help file but haven't found solution :-(.

Please help

Thank You

Post #15075
Posted 03/21/2008 9:05:50 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 8:47:41 AM
Posts: 4,104, Visits: 4,175
in menu StrataFrame - Solution Preferences I have selected my project and default language set to Czech in Localization preferences

This has nothing to do with the run-time of the application.  This is so you can create localization keys through the designer without having to go over to the Localization window.

However - there are still "Yes" and "No" text in the running application. I really do not know what else should I do to see texts in my language. I have searched the help file but haven't found solution :-(.

Now that I know what language you are trying to use, would you like for me to send you the translation tables for all of the pre-localized StrataFrame components?  This way it will be part of the framework (including teh Yes/No) and you will not have to do this manually.  We have a translation tool that will allow you to translate all of the keys.  There are 4 translation packages (some only have a 5-10 keys).  The largest package is Security which has 279 keys.  But by doing this it will make it easier on you in this area and all run-time components will be translated for you and you will not have to worry with the SF messages anymore, just the ones for your application.

Post #15078