fparker
|
|
Group: Forum Members
Posts: 31,
Visits: 199
|
What is the recommended way to localize the search field captions and the column headings on the results grid of the Browse Dialog? In addition, what is the best way to localize the standard components of the Browse Dialog? I see that the control offers properties for setting the text of all of its components but I don't see any localization keys. Do I need to use the RetrieveTextValue method in my code and then set the Browse Dialog's Text properties as appropriate? Thanks for your help. Fran Parker
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
When I see the form on development / design mode, I see all the text in spanish but when I run the application I see all the localization text in english, what I do wrong?
I hard-Coded on appmain the localization ID to 11274 (spanish - argentina) and try with spanish - spain but nothing, I can set my own text and asign the Key to take that but can´t keep the default values
I attached 2 images to show this
another issue is the combobox that show in grey (I not set nothing special on this), how I can avoid this? thanks
- Fabian
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
The functionality between design-mode and run-time is actually the same with one difference. When in design-mode, we set the MessageLocaleID based on the active language on your OS. However, in your application, you must set this value yourself. If you open up the AppMain file and go to the InitApplication method, you will see that the MessageLocaleID is trying to pull an active language. More than likely you do not have a languages file out there so it assumes english. You can just hard code this value as well. For example, to make Portuguese show up at run-time, I will just set this value to 1046. MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 1046
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
I using Windows XP with a regional configuration "Español - Argentina" and set messageLocaleID to 11274 on appMain but cannot see by default the navigation bar and other controls in spanish Example: I test the securitySample, when I view the form in design mode this show "NUEVO" on the Add button, but when I run the form it show ADD I changed in appMain MicroFour.StrataFrame.UI. Localization.MessageLocaleID = 1034; //MicroFour.StrataFrame.UI.Localization.GetActiveLanguage("SecuritySample");or MicroFour.StrataFrame.UI.Localization.MessageLocaleID = 11274 ; //MicroFour.StrataFrame.UI.Localization.GetActiveLanguage("SecuritySample"); Thanks!
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
After looking at the translation project, we have the Spanish versions set for Mexico and Argentina. Do we need to add another? Did it work when you set it to 11274? Does it work when you set it to 2058? If not, then you will probably need to manually call the RegisterEmbeddedXML and re-register the localization files.
|
|
|
Ivan George Borges
|
|
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
|
Hi Fabian. Try the: MicroFour.StrataFrame.UI. Localization.MessageLocaleID = 2058I use 1046, but tried 2058 to test and it worked fine, have a look: 

Abraços.
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
Trent, with 2058 worked, I don´t known why with 11274 doesn´t work.anyway, I will create a Localization project with 2058 Español - Mexico and use it for now I have a RegisterEmbeddedXmlFile problem? I dont sure but try to call (after reading a post on the forum) MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(System.Reflection.Assembly.Load("MicroFour StrataFrame UI, Version=1.6.0.0, Culture=neutral, PublicKeyToken=99fe9917f71608a7", "Messages_11274.XML")
and .net say when I copy this line that the method "Load" can't be called with those arguments Thanks for all your help 
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
thanks Ivan 2058 worked OK  thanks again Trent with my basic questions
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
note on the ivan picture on the picture 2 say "Gravar" and in spanish "Save" is "Grabar" can I change the source localization data where the browsedialog "autopopulate" this key? (I say change "Gravar" by "Grabar" myself without creating a new custom key) Thanks
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
How about we just fix the problem and then give you the updated assembly  Will that work
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
The Messages_XXX.xml file generally does not reside on the root of the application. It generally includes the root namespace and any folder it resides in as well in VB.NET. My.Root.namespace.Messages_xxx.xml You can always write a quick program to get the exact name using the GetMenifestResourcenames(): For Each lcString As String In System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceNames() Debug.WriteLine(lcString) Next
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
Thanks for all Trent, Ben and all the people of this great forum.
I leave the localization stuff for a time while trying to build my aplication and I don´t sure why when I put a Localization Key on a custom login, a problem appears :/ (I thinked that it was resolved setting to use the 2058 localization code)
the debug message is "The specified key [UsuarioyClaveTitulo] was not found within the localization database". I try what you recommend:
Sub GetManifestResourceNames()
For Each lcString As String In System.Reflection.Assembly.GetExecutingAssembly.GetManifestResourceNames()
System.Diagnostics.Debug.WriteLine(lcString)
Next
End Sub
result: I see that Message_Languages.xml appears but not Messages_2058.xml
I try to quit and add it again to the project but nothing changed
I add it to both projects I have (Presentation and bussiness objects), but I think it have to be on the BO project, but anyway on both of them can´t see the xml embedded, any idea? meanwhile I continue trying.
Thanks
- Fabian
|
|
|
Fabian R Silva, -
|
|
Group: StrataFrame Users
Posts: 153,
Visits: 1.2K
|
Forgive it, I not select Messages_2058.XML on the project and change the property "Build Action" to "Embedded Resource" on it Sorry
|
|
|
Trent Taylor
|
|
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
|
No problem, glad you found it
|
|
|