News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Code::Blocks' translation

Started by teto, October 06, 2005, 08:55:03 PM

Previous topic - Next topic

gd_on

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 (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

#226
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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

#227
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



Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

#228
Updated on Launchpad to svn 11848
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

Updated on Launchpad to svn 11890
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

Updated on Launchpad to svn 11927
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

jett8998

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.

jett8998

P.S. Sorry, I haven't yet read all the threads.

gd_on

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 (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

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 (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

gd_on

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 (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

LETARTARE

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"
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
QuoteProjectManagerUI::CreateMenu(wxMenuBar* menuBar)
a possibility with 'GetMenuiItemCount ()' and 'Insert(...)' corresponding to the image provided:
Quotemenu->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-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'

Miguel Gimenez

If you debug the devel version (compile the workspace and press F8) and press stop in the popup, the culprit will appear on screen.

gd_on

#238
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
Windows 11 64 bits (25H2), svn C::B (last version or almost!), wxWidgets 3.3.2, Msys2 Compilers 16.1.0, 64 bits (seh, posix : gcc, g++ and gfortran in C:\msys64\mingw64) or 32 bits (dwarf2, posix  in C:\msys64\mingw32).

LETARTARE

CB-13834, plugins-sdk-2.25.0 : Collector-2.6.5, AddOnForQt-5.1.2
1- Win7 Business Pack1 64bits : wx-3.2.8, gcc-15.2.0,
2- OpenSuse::Leap-15.6-64bits : wx-3.2.8;gtk3-u, gcc-15.2.0,
=> !! The messages are translated by 'Deepl'