User forums > Using Code::Blocks
Syntax highlighting fail with Internationlization - who will apply it?
blueshake:
@nanyu
I guess the translation can leave the "default" alone.Afterall it is a simple English word. :)
nanyu:
--- Quote from: thomas on July 26, 2009, 03:15:49 am ---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.
--- End quote ---
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.
killerbot:
--- Quote from: nanyu on July 26, 2009, 08:10:00 am ---
--- Quote from: thomas on July 26, 2009, 03:15:49 am ---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.
--- End quote ---
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.
--- End quote ---
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 :
--- Code: --- _T("Default")
--- End code ---
or
--- Code: --- wxT("Default")
--- End code ---
Any further objections Thomas ?
thomas:
Ah, my bad... those stupid macros all look the same, I thought wxT was the one wxTranslating... sure, go ahead then.
killerbot:
fix implemented rev 5713.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version