Translating into a different language


Author
Message
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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.

Replies
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K 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.
Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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.

Ivan George Borges
Ivan George Borges
Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K reputation)Strategic Support Team Member (4.9K 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 (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Yes, I'm cranking away on it... shouldn't be much longer.
Ricardo Quartier
Ricardo Quartier
StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)StrataFrame User (145 reputation)
Group: Forum Members
Posts: 87, Visits: 779
Yo, Ben

Can u give a little bit more details about how to do that?

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. ( I dont know where in the file, or in that screen) PS - I use VB

Thanks in advance.... I done my 2 test keys (english and portuguese), then exported to the application directory, and now i have 3 files:

Message_Languages.xml
Messages_1033.XML
Messages_1046.XML

The key is "MyKey1" and the message is "This is a text message" in portuguese the key is "MyKey1" and the message is "Esta mensagem é de teste" on the localization editor i set Portuguese as defaulf.

What do I do now? Create a label and put in the text? "This is a text message" and after run it shows "Esta mensagem é de teste"?

Any help will be nice...

Thanks.

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
No, you add a label and set the LocalizationKey property to "MyKey1". If the MicroFour.StrataFrame.UI.Localization.LocaleID property is set to 1033, the label's Text will be set to "This is a text message". If the MicroFour.StrataFrame.UI.Localization.LocaleID property is set to 1046, then the Label's text will be set to "Esta mensagem é de teste". The localization does not go off of the text, but rather the LocalizationKey property. Anywhere in a StrataFrame UI component where you see "Key" on the end of anything (other than "DataSourceKey"), you're giving it the key from your localization information, such as "MyKey1".
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Ivan George Borges - 19 Years Ago
StrataFrame Team - 19 Years Ago
Ivan George Borges - 19 Years Ago
StrataFrame Team - 19 Years Ago
Ivan George Borges - 19 Years Ago
                         By the way ... Are we getting the last part of the tutorial soon ?
Ivan George Borges - 19 Years Ago
                             Yes, I'm cranking away on it... shouldn't be much longer.
StrataFrame Team - 19 Years Ago
                                 Yo, Ben Can u give a little bit more details about how to do that?...
Ricardo Quartier - 19 Years Ago
                                     No, you add a label and set the LocalizationKey property to "MyKey1"....
StrataFrame Team - 19 Years Ago
Ricardo Quartier - 19 Years Ago
StrataFrame Team - 19 Years Ago
Ricardo Quartier - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search