Translating into a different language


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi there.

I'm going through the tutorials. Having fun.

One question. I would like to translate all framework messages into portuguese. Would you guys, please, show me the best practise to accomplish this ?

Thanks in advance.

StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Howdy Ivan George,



Yes, you will need to open the Messaging & Localization from the StrataFrame menu within Visual Studio. Then, within the Common Repository, create a localization key for each message you want to translate and associate that key with the messages from the different languages. Then, you can export those messages to XML. Within the AppMain.vb file (or program.cs) configure the application to use XML for localization information and provide the path to the folder containing the XML files.



Any text that is "embedded" within the framework can be configured to use a localization key. For instance, the "This field is required" message is set on the form by the ErrorProviderRequiredFieldDesc property, but if you specify the ErrorProviderRequiredFieldDescKey property, StrataFrame will pull the text from that localized XML file.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Ben.

Thanks for your reply.

I had already opened the Common Repository. I thought I would get a list of all framework messages and then I would be able to create a localized message for each of them. Then, somewhere in the framework I could tell which language i would be using, and StrataFrame would manage to show the localized messages for that language.

As I open the Common Repository, I see a blank form. How do I know which messages there are to be translated ?  And I mean all tool tips, buttons, etc.

I probably didn't understand it well, but will I have to build a list of messages in a different language and them, in each form, specify that the localized message should be used ?

Thanks for your patience.

Ricardo Quartier
Ricardo Quartier
StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)
Group: Forum Members
Posts: 87, Visits: 779
Yes, i little step by step, will be nice.
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
The Common Repository is common between all Localization projects... it doesn't contain the messages used within StrataFrame. Now that you mention it, however, it would certainly be nice to provide a list of the keys used within StrataFrame so that you can translate them. I'll try to get them done asap.



Now, anything you want to localize (be it a Button, or Label) is going to have a LocalizationKey property. You set the localization key to key that you configured within the Messaging & Localization Editor. Then at runtime, StrataFrame pulls the information out of that XML store and puts it in the localized property.
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Ricardo Quartier (01/26/2006)
Yes, i little step by step, will be nice.




Yes, the last portion of the "First Application" tutorial goes over adding messaging & localization to a project.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
Hi Ben.

Great, got it.

Thanks for making our lives easier. I will wait for the list them, meanwhile, I will carry on with the tutorials.

Best.

Ricardo Quartier
Ricardo Quartier
StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)StrataFrame Novice (107 reputation)
Group: Forum Members
Posts: 87, Visits: 779
Great.. thanks !!!
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)Strategic Support Team Member (3.6K reputation)
Group: StrataFrame MVPs
Posts: 1.9K, Visits: 21K
By the way ...

Are we getting the last part of the tutorial soon ?

StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, I'm cranking away on it... shouldn't be much longer.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search