View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0013572||Lazarus||IDE||public||2009-04-23 18:10||2009-07-28 19:41|
|Reporter||Vladimir Zhirov||Assigned To||Jesus Reyes|
|Product Version||0.9.27 (SVN)|
|Target Version||1.0.0||Fixed in Version||0.9.27 (SVN)|
|Summary||0013572: Localization problem - nonlocalizable items|
|Description||All of the below items are either immune to changes in localization files or does not have corresponding values in these files.|
1. Environment options categories (immune to localization):
- Code Explorer
2. CheckListBox items in "Code Folding" frame of the Options dialog ("Unit section", "Nested comment")
3. ListBox items in "Color" frame of the Options dialog ("Assembler", "Bracket Highlight", etc.)
|Tags||No tags attached.|
|Fixed in Revision||20985, 20987|
||One more example is TreeView items in "File -> New..." dialog.|
"Code Folding" frame is fully translated since rev 19592.
The CheckListBox in in "Code Folding" frame still has non translated items, such as
- "Unit section"
- "Nested comment"
- "(nested)", "(local)", "(global)"
The problem is, the .po file is ok, it has all strings translated, but the GUI shows English text instead of translated one.
I found the cause of the problem:
1. Environment options categories are loaded during units initialization. Translated strings are not available at that moment. See
line 1486 of ide\environmentopts.pp,
line 3069 of ide\editoroptions.pp,
line 723 of ide\codetoolsoptions.pas,
line 733 of ide\codeexplopts.pas,
line 174 of ide\basedebugmanager.pas.
2. CheckListBox items in "Code Folding" are put into const array (see line 408 of ide\editoroptions.pp). Obviously, translated strings are not available at the constants evaluation time.
3. ListBox items in "Color" frame (ColorElementListBox in ide\frames\editor_color_options.pas) contains SynEdit attribute names that are not localizable (line 699 of ide\frames\editor_color_options.pas)
4. TreeView items in "File -> New..." dialog are localized but overriden with English-only string constants in ide\mainintf.pas from the line 408 on (see GetLocalizedName methods).
I observed these same errors.
I did some research on "File -> New" dialog case, and found that constants are in projectinf.pas (almost). I did some tests, translating these strings and confirmed that they are used in newdialog.
The problem is the same related here before. This unit is loaded prior to translate functions. So even putting them in a rst like objinspstrconsts, they are not translated.
Points 1,2 and 3 should now be fixed.
Please create separated reports for additional issues because even when they seems related not all problems are trivial to fix (that is the case of 4), If we continue to add items to this issue it gets boring, bad if you do things for fun.
So please submit a new report for point 4.
||OK. I´ll create a new bug for point 4.|
I'm sorry for adding several bugs into one report.
|2009-04-23 18:10||Vladimir Zhirov||New Issue|
|2009-04-23 18:23||Vladimir Zhirov||Note Added: 0026996|
|2009-04-23 22:21||Maxim Ganetsky||Note Added: 0027005|
|2009-04-24 02:47||Maxim Ganetsky||Note Edited: 0027005|
|2009-04-24 20:27||Vladimir Zhirov||Note Added: 0027042|
|2009-04-24 21:53||Vladimir Zhirov||Note Added: 0027045|
|2009-04-24 21:54||Vladimir Zhirov||Note Edited: 0027045|
|2009-04-27 12:08||Vincent Snijders||LazTarget||=> 1.0|
|2009-04-27 12:08||Vincent Snijders||Status||new => acknowledged|
|2009-04-27 12:08||Vincent Snijders||Target Version||=> 1.0.0|
|2009-07-28 03:07||Marcelo B Paula||Note Added: 0029300|
|2009-07-28 06:00||Jesus Reyes||Status||acknowledged => assigned|
|2009-07-28 06:00||Jesus Reyes||Assigned To||=> Jesus Reyes|
|2009-07-28 06:01||Jesus Reyes||Relationship added||parent of 0014217|
|2009-07-28 09:13||Jesus Reyes||Fixed in Revision||=> 20985, 20987|
|2009-07-28 09:13||Jesus Reyes||Status||assigned => resolved|
|2009-07-28 09:13||Jesus Reyes||Fixed in Version||=> 0.9.27 (SVN)|
|2009-07-28 09:13||Jesus Reyes||Resolution||open => fixed|
|2009-07-28 09:13||Jesus Reyes||Note Added: 0029310|
|2009-07-28 14:05||Marcelo B Paula||Note Added: 0029326|
|2009-07-28 19:41||Vladimir Zhirov||Status||resolved => closed|
|2009-07-28 19:41||Vladimir Zhirov||Note Added: 0029339|