Author Topic: Code::Blocks' translation  (Read 313400 times)

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: Code::Blocks' translation
« Reply #225 on: June 11, 2019, 07:07:02 pm »
As usual, updates to the .pot file extracted from svn 11736 are here.
Translation in French, also updated from svn 11736 in the .po and .mo file is here.
These files may be used with C::B 17.12.

See previous posts for other informations.

gd_on
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: Code::Blocks' translation
« Reply #226 on: July 04, 2019, 03:55:36 pm »
Hi,
I have opened a new launchpad page to share C::B translations : https://launchpad.net/codeblocks-gd.
The specific translation page is https://translations.launchpad.net/codeblocks-gd : choose "View All languages", at the bottom, right.
I have imported in that page the translations found on the old web page for the most used languages (currently 14 languages). On request, I can add new languages (but translators will have a little bit more work !). Sorry for that, but original translators names have been lost in many cases  :-[.

Of course, French language has the most translated strings. It has been updated for svn 11764 version and contain translation work done until now.
For Russian language, I have also found a quite recent page but not up to date. Many translations need to be approved, but I'm not the right guy to do that ! (I learned Russian language at school, but this was a long time ago ;).
The launchpad page is opened as "structured". So you should be able to propose new translations. In some cases, they should be approved by somebody before publication.
It's certainly possible to add approbators but I still does not know how to do.

I'll try to maintain the "template" when new English strings will be available.
You (translators) should be able to participate. You need to have a launchpad (Ubuntu) account.
Other users can request a download for the .po ou .mo file. It's this last one (.mo file), the binary form, that you can use for using C::B in your own language : simply put it in your "codeblocks installation directory"/share/CodeBlocks/locale/"language string" (for me, on Windows, it's C:\Program Files\CodeBlocks_wx312_64\share\CodeBlocks\locale\fr_FR). Then in the menu Settings/Environment.../View you should be able to choose the language.

It's also certainly possible to add somebody to update the "template". If there is a volonteer ...  ;D (who knows how to add his name at the right place 8)).

gd_on
« Last Edit: July 07, 2019, 07:04:27 pm by gd_on »
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: Code::Blocks' translation
« Reply #227 on: August 01, 2019, 04:02:59 pm »
A few precisions for using translated menu strings in C::B.

For users of translations only :
Download the .mo format file in the requested language. The launchpad name may be something like : de_LC_MESSAGES_All_codeblocks.mo (here for german).
You should put this file inside your codeblocks installation directory.
On Windows, it's something like : C:\Program Files (x86)\CodeBlocks\share\CodeBlocks\locale\xxxx (for 32 bits) or C:\Program Files\CodeBlocks\share\CodeBlocks\locale\xxxx for 64 bits.
Path under Linux is quite similar.
xxxx has to be adapted to your language. It's :
de_DE for German,
es_ES for spanish,
fr_FR for french,
it_IT  for italian,
lt_LT  for lithuanian,
nl_NL for dutch,
pl_PL for polish,
pt_BR for portuguese brasilian,
pt_PT for portuguese,
ru_RU for russian,
si        for sinhalese,
zh_CN for chinese simplified,
zh_TW for chinese traditional.

Create the sub-directories if needed. And place your downloaded .mo file here. You can leave the filename as it is or only keep the first letters (as you want), but keep the extension .mo.

Then start CodeBlocks. In setting/Environment/View you should be able to check the language box (internationalization) and choose your language. If not, you have probably forgotten something or made an error.
Restart C::B to activate the new language.

If you want to switch back to english, simply uncheck the language box.

For translators :
you can directly work in launchpad.
Problem : the interface is not really friendly.
You can also download the .po file, work on it with poedit for example (free version is OK). You can test your translations locally by compiling (creating a .mo file) and installing the .mo file in the right sub-directory of CodeBlocks.
When you have made sufficient progress (it's your decision), you can upload you .po file in launchpad. It may be necessary to approve your work or mark it as to be reviewed.
Don't be afraid : it's quite a long work. In the old site there was 2173 string to translate. Now it's more than 9300 ! But the job can be shared, Launchpad is done for that !
Tip : Begin with menus that you use often : you'll see the progress.

gd_on



« Last Edit: August 01, 2019, 04:05:11 pm by gd_on »
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: Code::Blocks' translation
« Reply #228 on: August 28, 2019, 11:49:35 am »
Updated on Launchpad to svn 11848
« Last Edit: September 13, 2019, 01:12:34 pm by gd_on »
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).

Offline gd_on

  • Regular
  • ***
  • Posts: 494
Re: Code::Blocks' translation
« Reply #229 on: October 31, 2019, 04:46:14 pm »
Updated on Launchpad to svn 11890
Windows 10, svn C::B (last version or almost!), WxWidgets 3.1.3, Compilers 8.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\MinGW64) or 32 bits (sjlj, posix in C:\MinGW32).