05-27-2016 04:13 AM
Hello,
In CVI 13.0.2, when i use the tool UI Localizer to convert an *.uir French to English, this work succesfully.
I see a possible bug when i try to reload the tool to make changes on my traduction, since when i have missing strings, but not all.
So I have to translate again each time that i use the tool...
Below my process :
- File >> Open User Interface (*.uir)
- File >> Save Localization (*.lwl) -> MyFrenchFile.lwl
- File >> Translate From Dictionary (*.lwd) -> MyEnglishFile.lwd
- [Translation of my UIR]
- Dictionary >> Export All to Dictionary -> MyEnglishFile.lwd [Pop up: Replace]
- File >> Save Localization (*.lwl) -> MyEnglishFile.lwl
Thanks for help.
Charles
05-27-2016 05:44 AM
Hello,
I have used sometimes the UI localizer tool without problems: where in the process are you getting the error?
I have some additional comments on you post:
05-30-2016 04:29 AM
Hello,
Thank you for your answer but it doesn't resolve the problem.
My problem occur when i reload the UI Localizer tool just after a translation, without modification of my *.uir between.
I will explain this with an example :
- In first i translate my *.uir (UI Localizer - UIR Translated.png.
- After i execute my programm and i use the fonction LoadLocalizedPanel. The translation of my UIR work well (UIR executed.png), so the .lwl isn't corrupt.
- And after I open again the tool UI Localizer and when i load my file MyEnglishFile.lwd I have few strings missing (UI Localizer - UIR Reloaded.png).
The problem must be linked with the *.lwd file. Below an extract of this file :
74_D = "__Edition"
75_D = "__Enregistrer"
75_L = "Sav__e"
76_D = "__Fichier"
76_L = "__File"
77_D = "__Imprimer"
77_L = "__Print"
78_D = "__Instructions"
79_D = "__Mot de passe"
79_L = "Pass__word"
7_D = "Changer de vue"
7_L = "Change view"
80_D = "__Nouveau"
80_L = "__New"
81_D = "__Ouvrir"
81_L = "__Open"
82_D = "__Renommer section (F3)"
82_L = "__Rename section (F3)"
83_D = "__Supprimer section (F2)"
83_L = "__Delete section (F2)"
Thanks for help.
Charles
05-30-2016 06:51 AM
Just to be sure, what happens if you use "Load localization" using the .lwl file instead of "Translate from dictionary" and the .lwd file?
05-30-2016 10:05 AM - edited 05-30-2016 10:19 AM
Hello
I work with Charles.
To complete what Charles try to explain, see the joined example.
The executable works, with LWL file.
The "User Interface Localized" tool seems to have some problem, with the LWD file.
Details:
We can use the LabWindows/CVI "User Interface Localized" tool
to create correctly the "English" LWL file.
It is the one uses by "LoadLocalizedPanel" (and "LocalizePanel") function in your code source.
But, the LWD (dictionary) file seems to be not been fully saved/export.
Some translations still missing inside the file (always the same).
So, if we leave the "User Interface Localized" tool,
come back on it straight away,
and reload the same UIR file, more the previous saving LWD file.
Some translations are not here (see on attached pictures).
You can save again the dictionary, as many time you want,
after put again and again... the same disappeared translation.
Every time you reload it, after leave the "User Interface Localized" tool,
some tanslation still always missing in the tool.
See with "Fonction_EN.LWD" and the "OK (Enter)" button message of the "About" panel.
It is correcly filled in the final LWL file, so the executable is correctly loaded.
But it stills not saving in the LWD dictonary file.
We got the problem, since almost LabWindows/CVI 2012 (and perhap's previously).
And especially with some UIR with many panels inside
and/or using the same translations (__OK, __Cancel, etc...).
Thanks a lot for your help.