StrataFrame Forum

Language selection ( Spanish )

http://forum.strataframe.net/Topic18407.aspx

By Elio Reyes - 8/11/2008

I’m new user from Dominican Republic, our native language is Spanish. My Visual Studio is in English and windows too, but I want to have Strataframe in Spanish for build the forms and deploy to the users.
By Juan Carlos Pazos - 8/11/2008

Hi, Pedro



I'm from Mexico, so as you I need to change to spanish language.



Open the AppMain.vb and locate the Shared Sub InitApplication then add this code:



MicroFour.StrataFrame.UI.Localization.MessageKeyType = MicroFour.StrataFrame.Messaging.MessageKeyDataType.XML

'-- Configurar la información de localización (idioma)

Select Case System.Globalization.CultureInfo.CurrentCulture.LCID

Case 1031, 3079

'-- German (Alemanía)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1031



Case 1036, 3084

'-- French (Francia)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1036



Case 1040

'-- Italian (Italia)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1040



Case 1046, 2070

'-- Portuguese (Brasil)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1046



Case 1049

'-- Russian (Rusia)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1049



Case 2058, 11274

'-- Spanish (México)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 2058



Case Else

'-- English (USA)

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1033

End Select



For Mexico the code es 2058, yopu have to find out what's the code for your country.



In desing time sometimes the strings are in spanish and other times no, but at run time it will show the appropiate language.



Regards
By Dustin Taylor - 8/11/2008

Hi Pedro! Smile

You'll want to look into our localization and messaging options for this. If you need the ability to switch between english and spanish, then you can facilitate that using our localization tools (and can set the default language as spanish.)  Basically, you use the localization and messaging editor to create message objects which you then reference in code wherever the user sees visible text. 

If you only need to deploy in spanish (no english required), then you could always just develop the visual aspects of the application (lables, form titles, etc.) in spanish and deploy that way, but we still recommend using the messaging editor to do so just as best practices. Keeping all your messages centralized just makes maintenance easier down the road, and makes it a lot easier to come back and impliment other languages if the need arises.

The help files are pretty extensive on leading you down the path for the localization and messaging, but we'd be happy to give you a point in the right direction or help you work through any issues if you have any specific problems or questions!

Just let us know BigGrin

By Elio Reyes - 8/11/2008

Thanks for yours suggestions, I want to tell you something else, when I add a SF Maintenance Form, in the buttons on the toolbar I always have to change the language ? .. Can I have change then in the localization language o other place?
By Ivan George Borges - 8/11/2008

Hi Pedro.

Welcome to the community! Cool

Once you have created your Localization & Messaging project (refer to the Localization & Messaging topic at the help file for an overview), go to the Visual Studio StrataFrame menu and choose Solution Preferences:

Then, set your Default Language to the Spanish Language that you Added to your Messaging Project.

Hope it helps.

Abraços.

By Elio Reyes - 8/13/2008

All is fine .. Thanks all of you ... I have just a little thing is the "wait window" in the "BrowseDialog" when is searching it steel in English.



Thanks every one, a lot
By Ivan George Borges - 8/13/2008

Great Pedro.

Glad you got it working! Cool