Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: nanyu on July 24, 2009, 11:19:56 am
-
I changed the Syntax highlighting for editor. it work fine.
But after I setted the Internationlization to Chinese, the highlighting was jumbled.
(windows xp , code::blocks svn5696)
help me!
[attachment deleted by admin]
-
I guess that "default" should not be translated in color setting,just a guess. :)
-
I guess that "default" should not be translated in color setting,just a guess. :)
What a great GUESS it is..:)
I found the BUG now:
===============================
svn: 5702
file: codeblocks\src\plugins\contrib\codesnippets\editor\seditorcolourset.cpp
line: 450
// first load the default colours to all styles (ignoring some built-in styles)
SOptionColour* defaults = GetOptionByName(lang, _("Default"));
=========== I think the "Default" needn't translate to Chinese(or other language)...so..pls :
SOptionColour* defaults = GetOptionByName(lang, _wxT("Default"));
Whic developer can apply it ? I can test it after modifed. thanks!
-
I think you can make a patch and submit it.
-
I could apply it.
Question : do you build CB yourself ? If so, you can already change it in your source tree. If not, I assume you will want a next nightly build ?
-
I could apply it.
Question : do you build CB yourself ? If so, you can already change it in your source tree. If not, I assume you will want a next nightly build ?
Thank you! I build CB myself, but I will wait the next nightly build. I teach my students study C++ with CB. It's too difficult to update their CB to the my owner verson.
by the way: I'll write a book about C::B and publish it. could I do it ?
--------
-
since you build CB yourself, could you try the suggestion out to see if it works correctly ?
I prefer to have the feedback in advance of committing it ;-)
-
Please don't apply that patch, whatever it is. Terribly bad luck is upon you.
-
could you elaborate a little bit Thomas ?
-
Translating "default" to Chinese will cause Chinese characters being used as XML tag names which at least some versions of TinyXML don't like at all. Therefore, translating "default" means terribly bad luck.
-
@nanyu
I guess the translation can leave the "default" alone.Afterall it is a simple English word. :)
-
Translating "default" to Chinese will cause Chinese characters being used as XML tag names which at least some versions of TinyXML don't like at all. Therefore, translating "default" means terribly bad luck.
OH NO! what I will do is "not translating" "default" from English to Chinese or other language!
current code is :
SOptionColour* defaults = GetOptionByName(lang, _("Default")); // _() make "Default" been translated.
and now, I hope it be modify to :
SOptionColour* defaults = GetOptionByName(lang, _wxT("Default")); // _wxT() didn''t do any translating work.
-
Translating "default" to Chinese will cause Chinese characters being used as XML tag names which at least some versions of TinyXML don't like at all. Therefore, translating "default" means terribly bad luck.
OH NO! what I will do is "not translating" "default" from English to Chinese or other language!
current code is :
SOptionColour* defaults = GetOptionByName(lang, _("Default")); // _() make "Default" been translated.
and now, I hope it be modify to :
SOptionColour* defaults = GetOptionByName(lang, _wxT("Default")); // _wxT() didn''t do any translating work.
That's also what I thought it did. The bug was it used to be translated (_()) and now it no longer will be.
Although I think there might be an error (I don't think it should be _wxT("Default") :
I think it should be either :
or
Any further objections Thomas ?
-
Ah, my bad... those stupid macros all look the same, I thought wxT was the one wxTranslating... sure, go ahead then.
-
fix implemented rev 5713.
-
fix implemented rev 5713.
I just also fixed it in C::B's editcolourset.cpp.
-
fix implemented rev 5713.
I just also fixed it in C::B's editcolourset.cpp.
thanks! It worksfine now.