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

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
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 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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
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 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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
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 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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
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 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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: Code::Blocks' translation
« Reply #229 on: October 31, 2019, 04:46:14 pm »
Updated on Launchpad to svn 11890
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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: Code::Blocks' translation
« Reply #230 on: December 15, 2019, 11:44:55 am »
Updated on Launchpad to svn 11927
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).

Offline jett8998

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code::Blocks' translation
« Reply #231 on: March 05, 2020, 06:50:49 am »
Do you have a Chinese translation in progress? If so, I would like to participate, I'm really excited to translate it into my home language. If not, I would like to start one.

Offline jett8998

  • Single posting newcomer
  • *
  • Posts: 3
Re: Code::Blocks' translation
« Reply #232 on: March 05, 2020, 06:51:46 am »
P.S. Sorry, I haven't yet read all the threads.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: Code::Blocks' translation
« Reply #233 on: December 29, 2020, 04:26:23 pm »
A new English template and a new translation file in French, adapted to svn 12281 is available on https://launchpad.net/codeblocks-gd.
The specific translation page is https://translations.launchpad.net/codeblocks-gd : choose "View All languages", at the bottom, right.
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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: Code::Blocks' translation
« Reply #234 on: July 02, 2021, 03:20:31 pm »
A new English template and a new translation file in French, adapted to svn 12481 is available on https://launchpad.net/codeblocks-gd.
The specific translation page is https://translations.launchpad.net/codeblocks-gd : choose "View All languages", at the bottom, right.
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).

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: Code::Blocks' translation
« Reply #235 on: October 07, 2021, 07:39:19 pm »
A new English template and a new translation file in French, adapted to svn 12535 is available on https://launchpad.net/codeblocks-gd.
The specific translation page is https://translations.launchpad.net/codeblocks-gd : choose "View All languages", at the bottom, right.
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).

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Code::Blocks' translation
« Reply #236 on: January 15, 2022, 05:40:24 pm »
Hello,
I just loaded the file 'All_codeblocks_All_codeblocks-fr.po' to test it on 'CB-12467-wx315'.
Under Win7 with "Poedit-3.0.1', I got ''All_codeblocks_All_codeblocks-fr.mo' that I renamed 'codeblocks-fr.po', then dropped in "$(APP_PATH)\share\CodeBlocks\locale\fr_FR"

At the start of "cb-12647"
  - without this file: no problem
  - with this file and choice 'French' in Settings : an argument window appears twice (see attachment)

This message is provided in "wx-3.1.5\src\common\menucmn.cpp" during the second "wxCHECK_MSG"
Code
wxMenuItem* wxMenuBase::Insert(size_t pos, wxMenuItem *item)
{
    wxCHECK_MSG( item, NULL, wxT("invalid item in wxMenu::Insert") );

    if ( pos == GetMenuItemCount() )
    {
        return DoAppend(item);
    }
    else
    {
        wxCHECK_MSG( pos < GetMenuItemCount(), NULL,
                     wxT("invalid index in wxMenu::Insert") );

        return DoInsert(pos, item);
    }

I looked for the deadlines of code, and the tracks are numerous, I found in
Quote
ProjectManagerUI::CreateMenu(wxMenuBar* menuBar)
a possibility with 'GetMenuiItemCount ()' and 'Insert(...)' corresponding to the image provided:
Quote
menu->Insert(menu->GetMenuItemCount() - 1, idMenuFileProperties, _("Properties..."));

I then deleted the translation of "Properties ..." into the * .mo file, but the result is unchanged, so it must be elsewhere ...

If you have tracks ?


CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1549
Re: Code::Blocks' translation
« Reply #237 on: January 15, 2022, 06:17:57 pm »
If you debug the devel version (compile the workspace and press F8) and press stop in the popup, the culprit will appear on screen.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 795
Re: Code::Blocks' translation
« Reply #238 on: January 15, 2022, 06:56:46 pm »
Quote
''All_codeblocks_All_codeblocks-fr.mo' that I renamed 'codeblocks-fr.po'
Are you sure ? The extension should stay .mo (a compiled form), not .po (a text form).

More, on launchpad (https://translations.launchpad.net/codeblocks-gd) you can download a .po file, but you can also download a .mo file which should be directly usable in Code::Blocks
« Last Edit: January 15, 2022, 07:33:35 pm by 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).

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Code::Blocks' translation
« Reply #239 on: January 15, 2022, 11:03:44 pm »
yes, it's a typo error !
CB-13483, plugins-sdk-2.25.0 : Collector-2.0.0, AddOnForQt-3.9.1
1-Win7 Business Pack1 64bits : wx-3.2.4, gcc-8.1.0,
2-OpenSuse::Leap-15.4-64bits : wx-3.2.4;gtk3, gcc-8.2.1,
=> !! The messages are translated by Deepl