Author Topic: how can i compile C::B with multi-language  (Read 18463 times)

Offline dongfengweixiao

  • Single posting newcomer
  • *
  • Posts: 3
how can i compile C::B with multi-language
« 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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: how can i compile C::B with multi-language
« Reply #1 on: March 17, 2014, 02:23:33 pm »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dongfengweixiao

  • Single posting newcomer
  • *
  • Posts: 3
Re: how can i compile C::B with multi-language
« Reply #2 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

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!

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: how can i compile C::B with multi-language
« Reply #3 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.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline dongfengweixiao

  • Single posting newcomer
  • *
  • Posts: 3
Re: how can i compile C::B with multi-language
« Reply #4 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.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: how can i compile C::B with multi-language
« Reply #5 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
Windows 11 64 bits (23H2), svn C::B (last version or almost!), wxWidgets 3.2.4 (tests with 3.3), Msys2 Compilers 13.2.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).