Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

Code::Blocks' translation

<< < (8/57) > >>

raicuandi:
I've begin the romanian translation. Is there anyone else working on this, to avoid a double-effort?

thomas:

--- Quote from: heromyth on February 05, 2006, 03:15:10 am ---It's really difficult in handling the non-English characters in XML files. So I have an idea submitting this bug to TinyXML.  :P
--- End quote ---
Don't bother, this really was not a bug in TinyXML, but improper use (read: our fault). Using non-ANSI characters in xml is wrong.

heromyth:
Yes, if all the words ouput to default.conf have't been translated before doing the ouput, I think, that problem also can be resolved. It seems many works must to be done.


--- Quote ---Why you say that? tinyXML supports Unicode UTF-8 encoded strings.
--- End quote ---
I have changed the code page of default.conf which also include some non-ANSI characters to UTF-8, but these characters can't be shown correctly in CB. Sorry for my superficial tested result.

heromyth:

--- Quote from: thomas on February 05, 2006, 04:22:45 pm ---
--- Quote from: heromyth on February 05, 2006, 03:15:10 am ---It's really difficult in handling the non-English characters in XML files. So I have an idea submitting this bug to TinyXML.  :P
--- End quote ---
Don't bother, this really was not a bug in TinyXML, but improper use (read: our fault). Using non-ANSI characters in xml is wrong.

--- End quote ---

Not like that. It's improper use _U() and _C(). I have a patch for this at https://developer.berlios.de/patch/index.php?func=detailpatch&patch_id=827&group_id=5358.

Now the default.conf can have non-English characters which are certainly UNICODE. That is to say that the default.conf won't be affected on by the translation.

thomas:
Please accept that you cannot use xml tags that contain Chinese characters. It does not matter whether you convert the wxStrings or not, it is illegal.

If you write something like

--- Code: ---key << _("/file_groups/group") << wxString::Format(_T("%d"), i) << _T("/") << _T("name");
--- End code ---
i.e. you translate the path, then this does not only make it impossible for people who are unable to speak Chinese to find an error in such a file, but it is also illegal.
It might even appear to work out of pure coincidence, but at some random point, it will fail, and we will not know why!
Please don't do such things, you're opening Pandora's box. Configuration keys should not be translated, and they should not contain special characters.

Storing non-ANSI characters as data is a completely different thing, this works fine since end of December, and you can certainly do it.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version