Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Patches for codeblocks about internationalization
rickg22:
Hmmm perhaps it would be good to ask this question in the wxWidgets forums...
Urxae:
--- Quote from: rickg22 on August 14, 2005, 03:31:24 am ---Yes, but if the strings are translated the same... why didn't the menu creation work? (See previous screenshots).
Or you mean searching for the *untranslated* strings? ugh i think i got confused now.
--- End quote ---
Oh sorry, I thought I recalled something from a Unicode thread where you mentioned something about not knowing whether to use _() or _T() when searching for menu options. I can't find it now. May have been my imagination.
Anyway, are you sure everywhere you search for menu options, they are translated when converting to Unicode (_(), not _T())?
rickg22:
ACK. No, I can't remember.But those menus in particular were in the compilergcc.cpp. Altho I remember I didn't use _( in some other parts...
Luckily, we have multi-file search n replace in C::B :). The trick is knowing what string to search for... :oops:
heromyth:
--- Quote from: rickg22 on August 14, 2005, 10:56:27 am ---Hmmm perhaps it would be good to ask this question in the wxWidgets forums...
--- End quote ---
I have tested sample\xrc in wxWidget 2.6.1. There is no any problem. For example, I add then '$$' to some labels, and I can see '$$'. I add then '$' to some labels, and I can see '$'. Maybe, I should check the Code::Blocks' codes.
Now, I can sure this problem is because of Code::Blocks. Suppose we use some XRC tools like DialogBlocks to load Code::Blocks' XRC files like plugins\compilergcc\resources\advanced_compiler_options.xrc. We can see the result like the first attachemt. However, we get aonther result like the second attachment in Code::Blocks. I have checked the Code::Blocks' code, and found nothing.
[attachment deleted by admin]
heromyth:
--- Quote ---I have tested sample\xrc in wxWidget 2.6.1. There is no any problem. For example, I add then '$$' to some labels, and I can see '$$'. I add then '$' to some labels, and I can see '$'. Maybe, I should check the Code::Blocks' codes.
Now, I can sure this problem is because of Code::Blocks. Suppose we use some XRC tools like DialogBlocks to load Code::Blocks' XRC files like plugins\compilergcc\resources\advanced_compiler_options.xrc. We can see the result like the first attachemt. However, we get aonther result like the second attachment in Code::Blocks. I have checked the Code::Blocks' code, and found nothing.
--- End quote ---
I think I have known the reasons. If I change the second line:
--- Code: ---<resource>
--- End code ---
in all XRC files in Code::Blocks to :
--- Code: ---<resource version="2.3.0.1">
--- End code ---
OK, all the '$$'s in labels will be shown as '$$'s, not as '$'s.
--------------------------------------------------
Here is a patch for utils\wxrc.
[attachment deleted by admin]
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version