Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: dongfengweixiao on March 17, 2014, 09:40:09 am

Title: how can i compile C::B with multi-language
Post by: dongfengweixiao on March 17, 2014, 09:40:09 am
how can i compile C::B with multi-language
now i make a translate project on transifex:https://www.transifex.com/projects/p/codeblocks
this format looks like svn/ROOT/src/i18n
but at the end idnnot know to to compile C::B with multi-language.
Title: Re: how can i compile C::B with multi-language
Post by: stahta01 on March 17, 2014, 02:23:33 pm
Read this link http://wiki.codeblocks.org/index.php?title=Internationalization#Create_and_use_the_.mo_file (http://wiki.codeblocks.org/index.php?title=Internationalization#Create_and_use_the_.mo_file)

Then, ask a question here.

Tim S.
Title: Re: how can i compile C::B with multi-language
Post by: dongfengweixiao on March 17, 2014, 02:28:33 pm
Read this link http://wiki.codeblocks.org/index.php?title=Internationalization#Create_and_use_the_.mo_file (http://wiki.codeblocks.org/index.php?title=Internationalization#Create_and_use_the_.mo_file)

Then, ask a question here.

Tim S.

but in this way,a po file is a mo file,but there is too many mo file!
Title: Re: how can i compile C::B with multi-language
Post by: stahta01 on March 17, 2014, 05:38:57 pm
I have no idea; how to help you.
Because, I have no idea what you want to do.

Tim S.
Title: Re: how can i compile C::B with multi-language
Post by: dongfengweixiao on March 18, 2014, 02:59:55 am
in src/i18n,have those file:
autoversioning.pot
browsetracker.pot
byogames.pot
cb_koders.pot
codesnippets.pot
codestat.pot
copystrings.pot
devpak_plugin.pot
dragscroll.pot
envvars.pot
headerfixup.pot
help_plugin.pot
hexeditor.pot
incrementalsearch.pot
keybinder.pot
lib_finder.pot
mousesap.pot
profiler.pot
regex_testbed.pot
rndgen.pot
source_exporter.pot
symtab.pot
threadsearch.pot
valgrind.pot
wxsmith.pot
wxsmithaui.pot
wxsmithcontribitems.pot
now I translate those,but at end,i donot know how can i compile them as one mo file.
Title: Re: how can i compile C::B with multi-language
Post by: gd_on on March 18, 2014, 09:02:45 am
have a look here : http://forums.codeblocks.org/index.php/topic,1022.0.html
or more here : http://forums.codeblocks.org/index.php/topic,1022.msg129359.html#msg129359
You'll have links to different tools.
If you want to merge all the .pot file into a single file, you'll need some tool like msgcat.exe, sed.exe... and so on

and at the end, you'll need poedit to import .pot file(s), transform them in .po and finally compile them in .mo file(s).

gd_on