StrataFrame Forum

Strata Frame translation package

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

By Felix M Avendano - 9/6/2009

I need the strata frame translation package in spanish. Where can I get it?
By Trent L. Taylor - 9/7/2009

I have to send it to you then you would have to change things, send it back, then I would have to recompile SF with the changes.

What seems to be wrong?  It may not be necessary to go through this process.  Thanks.

By Felix M Avendano - 9/9/2009

Nothing is wrong, the matter is  I cannot see, for example, the manteniancetollstrip in spanish when the program is running. I see it in spanish when I m in design mode but when the program is running I see it in english.
By Trent L. Taylor - 9/9/2009

Ah, then that is not related to the packages, but rather how you have your application setup.  In the Appmain.vb or the program.cs, have you set the localization locale ID.  This is done in the InitApplication method:

MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 2058;

The above is not actually what you may want to do for your application as that locale ID is for Spanish (Mexico).  We have SF Spanish flags set for 3 locales:

2058 - Spanish (Mexico)
3082 - Spanish (Spain)
11274 - Spanish (Argentina)

If these are not one of your locales then I would be happy to add another.  Finally, if you are getting the SF assemblies to automatically load the values, then you can forcibly call the RegisterEmbeddedXmlFile for the SF UI assembly:

MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(...)

By Felix M Avendano - 9/10/2009

Here is what Ive got, but is still not working Sad

  Private Shared Sub InitApplication(ByVal e As InitializingApplicationEventArgs)
        '-- Add the main form type
        '-- If more than one form is added to the collection, they can be chosen by showing a "Gateway" form
        '   and supplying the index of the form to show (At least 1 form type must be added to the collection
        e.Forms.Add(GetType(WindowsApplication1.frmMenu))

        '-- ToDo:  Add any extra application initialization
        MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 2058
        MicroFour.StrataFrame.UI.Localization.MessageKeyType = MicroFour.StrataFrame.Messaging.MessageKeyDataType.XML
        MicroFour.StrataFrame.UI.Localization.MessageLocaleID = MicroFour.StrataFrame.UI.Localization.GetActiveLanguage("WindowsApplication1")

By Trent L. Taylor - 9/10/2009

If you create a new StrataFrame application, create a maintenance form with nothing on it other than a Maintenance Form Toolstrip, set your locale ID to 2058 and run, does it work?
By Felix M Avendano - 9/10/2009

No.
By Felix M Avendano - 9/10/2009

Check this out
By Teddy Jensen - 9/10/2009

Felix,

Isn't it because first you set it to localeID 2058 then later to the activelanguage of windowsapplication1.

If this active language is english or it is not set then this will overwrite the 2058 localeID. 

From the Localization docs:

GetActiveLanguage() - Retrieving the Active Language

The GetActiveLanguage method in the Localization class loads the locale ID for the active language for a specified application.  If no active language is located, the localization database will be used to find the default base language.

Try commenting out the last line in your code and run again.

/Teddy

By Felix M Avendano - 9/11/2009

Now is working OK. Thank YouuuuuuuBigGrin