Localization builtin texts


Author
Message
Jiri Brazda
Jiri Brazda
StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)
Group: StrataFrame Users
Posts: 78, Visits: 356
Hi,

I'm trying the trial version and have found that I'm unable to change some texts. For example I need to completely translate MaintenanceFormToolStrip control. I'm able to change button texts and tooltips but I do not know how to translate confirmation box when deleting record ("Are You sure you wish to delete..." etc.).

Can anybody give me an answer please?

Thanks

George

Replies
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
Hey George!

I have downloaded your sample and here are some things we could start working on:

Your Message_Languages.xml is not embedded within your application. You could go this way, but it is recommended to use an embedded Message Store.

Please, to help you get the idea, have a look at the help file under "Application Framework" / "Localization & Messaging Editor" / "Messaging" / "Configuring the Message Store" and also "Localization"

Looking at you AppMain.vb, I can see you have set the MessageLocaleID to 1029, which is fine. But you haven't set up your Message Store, which will be required in case you don't embed it into your application.

See if you make progress and then let me know if we need to work some more steps together.

Cheers. Wink

 

Jiri Brazda
Jiri Brazda
StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)
Group: StrataFrame Users
Posts: 78, Visits: 356
Hi Ivan,

I have missed to set the language xml file in my sample application but even when I set it there was no change. However I have made some progress:

- I have tried to call "ShowAvailableLanguages" method in InitApplication - and when running my application there occurred the foolowing error:

FileNotFoundException
  The file [Message_Languages.xml] could not be found.  The localization languages table could not be loaded.

Source     : MicroFour StrataFrame Base

Stack Trace:
   at MicroFour.StrataFrame.UI.Localization.LoadLanguageTable(Boolean IgnoreExceptions)
   at MicroFour.StrataFrame.UI.Localization.GetLanguagesFromXml()
   at MicroFour.StrataFrame.UI.Localization.GetAllAvailableLanguagesFromData()
   at MicroFour.StrataFrame.UI.LanguageSelectionDialog.LoadLanguages()
   at MicroFour.StrataFrame.UI.LanguageSelectionDialog..ctor(String ApplicationKey, String UserName)
   at MicroFour.StrataFrame.UI.Localization.ShowAvailableLanguages(String ApplicationKey, String UserName)
   at MicroFour.StrataFrame.UI.Localization.ShowAvailableLanguages()
   at LocalizationSample.Form1.ChooseLanguage()
   at LocalizationSample.Form1.LinkLabel1_LinkClicked(Object sender, LinkLabelLinkClickedEventArgs e)
   at System.Windows.Forms.LinkLabel.OnLinkClicked(LinkLabelLinkClickedEventArgs e)
   at System.Windows.Forms.LinkLabel.OnMouseUp(MouseEventArgs e)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.Label.WndProc(Message& m)
   at System.Windows.Forms.LinkLabel.WndProc(Message& msg)
   at System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
   at System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

- Additionally I have tried to run Your sampla application from "Sample Console" called "BasicLocalizationImplementation" - and when clicking "Change Language" link the exactly same error has occurred.

So I suspect that there is nothing to do with my application but the operating system environment. I'm running Windows Vista Business EN SP1 and Visual Studio 2005 Professional.

Do You have any idea what could be the problem?

Thanks a lot

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I have tried to call "ShowAvailableLanguages" method in InitApplication - and when running my application there occurred the foolowing error:

Yes...the Message_Languages file cannot be found.  When you call the ShowAvailableLanguages, it looks for the Message_Languages.xml file.  If this file is NOT embedded, then you MUST specify the location of the external XML files (either all XML files have to be external or embedded, you cannot mix the two).  You specify the XML file location in the AppMain.vb or program.cs file in the InitApplication method or whereever you are setting the LocaleID.  The property would be the MessagingXMLPath property.

Jiri Brazda
Jiri Brazda
StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)
Group: StrataFrame Users
Posts: 78, Visits: 356
Ok, so I'm going to breifly specify what is working on my computer and what not:

- When I specify MessageKeyType and MessageXMLPath, it works fine, everything is localized properly (even Yes and No texts); however I would like to use Your recommended way (embedded resource) to distribute languages with my application (especially when I would like to have only one...)

- When I do not specify MessageKeyType and MessageXMLPath (for using embedded language files), it never works - disregarding wherher I set language files as Embedde Resource or not

- Finally - as I have mentioned in my previous post - when I try to run Your Sample application (deployed during installation of Your framework) I receive the same error stating that the Message_Languages.xml could not be found. And this is why it seems to me that the problem doesn't come from mz development project but from somewhere else on my computer, since I receive this error when running sample aplication compilled by You...

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
OK. Make sure it is embedded on its property window. Also, try putting this line of code in your AppMain.vb's InitApplication: 

MicroFour.StrataFrame.UI.Localization.RegisterEmbeddedXmlFile(Reflection.Assembly.GetExecutingAssembly(), "YourNameSpace.Message_Languages.xml")

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Ivan's post will fix your problem.  I have also made a change to the framework to do a more exhaustive search.  You can get it here: http://forum.strataframe.net/FindPost15182.aspx .
Jiri Brazda
Jiri Brazda
StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)StrataFrame User (224 reputation)
Group: StrataFrame Users
Posts: 78, Visits: 356
BINGO!!!

Adding this row has really fixed this problem. I'm going to test the fix posted by Trent.

Ivan, Trent - thanks a lot for Your help!!!

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
Glad you got it going, George! Cool
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Jiri Brazda - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Jiri Brazda - 17 Years Ago
Ivan George Borges - 17 Years Ago
Jiri Brazda - 17 Years Ago
                         [quote]However this is not exactly what I have asked. For the moment I...
Trent L. Taylor - 17 Years Ago
                             I have followed Your instructions and have performed the following...
Jiri Brazda - 17 Years Ago
                                 [quote] in menu StrataFrame - Solution Preferences I have selected my...
Trent L. Taylor - 17 Years Ago
                                     Hi Trend If you send me this translation tool i could make the Dutch...
softaca - 17 Years Ago
                                         Ruud, I have sent you the Dutch packages...let me know if you get...
Trent L. Taylor - 17 Years Ago
                                     I'm just evaluating Your framework and the only thing I need at the...
Jiri Brazda - 17 Years Ago
                                         Additionally I'm posting my Message_Languages.xml: <? xml...
Jiri Brazda - 17 Years Ago
                                             Hi George. Having a nice weekend? ;) I have changed my Messaging...
Ivan George Borges - 17 Years Ago
                                                 Hi Ivan, thank You for Your help andpatience. I have followed the...
Jiri Brazda - 17 Years Ago
                                                     Hey George! I have downloaded your sample and here are some things we...
Ivan George Borges - 17 Years Ago
                                                         Hi Ivan, I have missed to set the language xml file in my sample...
Jiri Brazda - 17 Years Ago
                                                             [quote]I have tried to call "ShowAvailableLanguages" method in...
Trent L. Taylor - 17 Years Ago
                                                                 Ok, so I'm goingto breifly specify what is working on my computer and...
Jiri Brazda - 17 Years Ago
                                                                     OK. Make sure it is embedded on its property window. Also, try...
Ivan George Borges - 17 Years Ago
                                                                         Ivan's post will fix your problem. I have also made a change to the...
Trent L. Taylor - 17 Years Ago
                                                                             BINGO!!! Adding this row has really fixed this problem. I'm going to...
Jiri Brazda - 17 Years Ago
                                                                                 Glad you got it going, George! :cool:
Ivan George Borges - 17 Years Ago
                                         [quote][b]Jiri Brazda (03/21/2008)[/b][hr]I'm just evaluating Your...
Jiri Brazda - 17 Years Ago
                                             Jiri, I would be happy to send these your way. If you don't get them...
Trent L. Taylor - 17 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search