Hi,
I have a solution with several projects. In 3 of them, I need localization. I created a folder called "Localization Files" in one of them and put the differents XML files in it.
The 3 projects are named : Composant, Commun.View and Patient.View. The folder "Localization Files" is in Composant.
When I launched my solution and opened a view in Commun.View, I have this error.
LocalizationKeyNotFoundException
The specified key [L_Pays] was not found within the localization database.
FileNotFoundException
The file [Message_Languages.xml] could not be found. The localization languages table could not be loaded.
Source : MicroFour StrataFrame Base
Stack Trace:
à MicroFour.StrataFrame.UI.Localization.LoadLanguageTable(Boolean IgnoreExceptions)
à MicroFour.StrataFrame.UI.Localization.LoadXmlFile(Int32 LocaleID)
à MicroFour.StrataFrame.UI.Localization.GetKeyRowFromXml(String Key)
à MicroFour.StrataFrame.UI.Localization.RetrieveTextValue(String TextValueKey)
à MicroFour.StrataFrame.UI.Localization.SetLocalizationOnControl(ILocalizable ControlToSet)
à MicroFour.StrataFrame.UI.Windows.Forms.Label.InitializeObject()
à MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.InitializeFormLoadObjects()
à MicroFour.StrataFrame.UI.Windows.Forms.BaseForm.OnLoad(EventArgs e)
à System.Windows.Forms.Form.OnCreateControl()
à System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
à System.Windows.Forms.Control.CreateControl()
à System.Windows.Forms.Control.WmShowWindow(Message& m)
à System.Windows.Forms.Control.WndProc(Message& m)
à System.Windows.Forms.ScrollableControl.WndProc(Message& m)
à System.Windows.Forms.ContainerControl.WndProc(Message& m)
à System.Windows.Forms.Form.WmShowWindow(Message& m)
à System.Windows.Forms.Form.WndProc(Message& m)
à System.Windows.Forms.Control.ControlNativewindow.OnMessage(Message& m)
à System.Windows.Forms.Control.ControlNativewindow.WndProc(Message& m)
à System.Windows.Forms.Nativewindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The same by opening a form in Patient.View. Why ?
I try to move the folder "Localization Files" in Commun.View and I don't have any error by opening a form in Commun.View but still in Patient.View.
Is there a specific location to put the XML files ? Do I have to created a "Localization Files" folder in each project ?
If it is the case, I find this very constraining.
Regards
David