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