User forums > Help

How to make a translation file useable

<< < (2/2)

gd_on:
For me, it's effectively in : C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\locale\fr_FR.
I have found this information in the Wiki (but it's not really up to date), in the forum (more particularly in "Code::Blocks' translation" thread), and search on the web: how some other softs using wxwidgets are configured.
Nevertheless I don't remember if I have found an other simple document explaining where to put these files ? Sorry.

gd_on

LucMorizur:
Hi;

I apologize for this question, cause surely there's something I missed. But I can't figure out the procedure to make Code::Blocks use the translation file. The wiki "Internationalization" article, talking about \codeblocks\src\src\appglobals.cpp file, gives the feeling that codeblocks.mo file should be used before compiling the source code itself of Code::Blocks (appglobals.cpp can be found in source files of Code::Blocks, it does not appear in the binary release); yet your posts in the current thread give the feeling that just adding folder locale\fr_FR to C:\Documents and Settings\<user>\Application Data\codeblocks\share\codeblock\ (or to C:\Program Files\CodeBlocks\share\CodeBlocks ?) is enough. Yet once done I see nothing which could make Code::Blocks being displayed in the language I chose with the codeblocks.mo file I built thanks to poEdit.

What did I miss ??? ??

gd_on:
The wiki article is rather old and not fully applicable to present C::B version.
Did you tried to use my own .mo file directly in C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\locale\fr_FR (if you have C::B installed in  C:\Program Files (x86)) or for older 32 bit Windows version in C:\Program Files\CodeBlocks\share\CodeBlocks\locale\fr_FR (if you have C::B installed in  C:\Program Files).
It works like that for me (and for many other guys) and it should work for you because you are french apparently. Don't forget to choose the french language in Parameters/Environment/View.
I have also seen that sometimes there are problems if you don't have a write autorisation on C::B folders with Windows 7 or more. A little bit strange, but this happens sometimes, on some machines, and not systematically !

gd_on

LETARTARE:
I confirm message gd_on.
I use its files and they work correctly.

If you want a tool to incorporate Code: Blocks:
http://forums.codeblocks.org/index.php/topic,18223.0.html
sincerely

LucMorizur:
Many thanks gd_on and LETARTARE for your very quick replies :)

I knew I was missing something easy... Though, I really had the feeling that I inspected quite correctly the Settings > Environement > View tab... But, well, let's hope next time I'll be more efficient at reading  :-\ ...

Talk soon!

Navigation

[0] Message Index

[*] Previous page

Go to full version