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

Offline Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Code::Blocks' translation
« Reply #255 on: November 14, 2022, 01:49:50 pm »
I have just deleted from Launchpad's queue the file es.po I uploaded, it was approved but had an unknown-purpose yellow icon. I hope this unlocks the queue.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Code::Blocks' translation
« Reply #256 on: November 14, 2022, 01:56:34 pm »
Probably not.
I tried the same thing for several days without success.
On their site there are several claims about problems to upload or download files (see https://launchpad.net/launchpad). So, there is a problem obviously on their side.
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 Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Code::Blocks' translation
« Reply #257 on: November 14, 2022, 04:08:11 pm »
Your files have been imported.

Offline sodev

  • Regular
  • ***
  • Posts: 497
Re: Code::Blocks' translation
« Reply #258 on: November 14, 2022, 05:55:37 pm »
If you need to extract translatable string with gettext from xml files, you can use its ITS support to do so https://www.gnu.org/software/gettext/manual/html_node/Preparing-ITS-Rules.html. This might be easier than parsing the XML yourself.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Code::Blocks' translation
« Reply #259 on: November 14, 2022, 06:35:46 pm »
It's better, but launchpad is still not stable: many time-out, transfer failed ...
We have to wait a moment ...
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: 796
Re: Code::Blocks' translation
« Reply #260 on: November 15, 2022, 10:24:51 am »
Launchpad is alive...
New strings introduced. Extracting tool slightly updated (see previous post, same link).

Note 1: it's possible to download a raw .po file (without any translations). You need to be connected to a launchpad account (an Ubuntu one)
Go to Translations, click on codeblocks-gd series under All translatable series, then (eventually on Full list of templates, if you have it) and/or on Download.
In the 1rst case, you can choose which file you want, template alone, .po files... via a checkboxes dialog;
In the second case, you'll have a full download (template + all translations).
Then request a download and wait a mail when your generated file is ready.

Note 2: If you upload an updated translation file, you can follow the import queue. Eventually click on the left on the small ! in a yellow cercle beside the name of your translation, verify that boxes contain correct values (language and template), then approve it. Your file will change it's status form "Need review" to "Approved". Of course, I can do this for you...


« Last Edit: November 15, 2022, 10:45:30 am 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 Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Code::Blocks' translation
« Reply #261 on: November 19, 2022, 01:20:53 pm »
The Note 2 part does not work for me, the file has a Needs Review tag, but I only can change the status to Deleted.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Code::Blocks' translation
« Reply #262 on: November 19, 2022, 02:18:12 pm »
May that's because you need, in the codeblocks-gd import queue, click on the left ! mark, under es.po ... and in the template box choose "all-codeblocks" and not "(nothing selected)".
Then, you can approve it.
I have done this for you.
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: 796
Re: Code::Blocks' translation
« Reply #263 on: November 25, 2022, 04:23:00 pm »
Translation files (template an french translation) on Lanchpad have been updated to svn 13067 (see https://launchpad.net/codeblocks-gd)
I have also created a git repository where my string extraction tools are now deposited. It's https://github.com/gerard-durand/codeblocks_gd_extract_tools
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 Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Code::Blocks' translation
« Reply #264 on: November 29, 2022, 08:57:33 am »
Quote
May that's because you need, in the codeblocks-gd import queue, click on the left ! mark, under es.po
The attached image shows what I see in the import queue, there is no ! mark AFAICS.

Offline gd_on

  • Lives here!
  • ****
  • Posts: 796
Re: Code::Blocks' translation
« Reply #265 on: November 29, 2022, 02:50:45 pm »
I have one. May be because I'm the maintener/driver.
Nevertheless, it seems that your last submission has been imported.
Just to be sure, I have approved it.
« Last Edit: November 29, 2022, 02:54:58 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: 796
Re: Code::Blocks' translation
« Reply #266 on: January 10, 2023, 11:55:46 am »
SVN 13144
In the clangd_client version of codecompletion.cpp some new merged strings are almost identical (restart in uppercase or not, \n not exactly at the same place). They could be stricly the same to avoid to translate 2 times almost the same strings.
See lines 497 and 618
or
lines 1171 and 1209
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 Miguel Gimenez

  • Developer
  • Lives here!
  • *****
  • Posts: 1553
Re: Code::Blocks' translation
« Reply #267 on: January 10, 2023, 12:34:42 pm »
Should be fixed in r13145.

Offline LETARTARE

  • Lives here!
  • ****
  • Posts: 531
  • L'ami de l'homme.The friend of man.
    • LETARTARE
Re: Code::Blocks' translation
« Reply #268 on: February 10, 2023, 05:04:45 pm »
I am looking to translate tags extracted by 'wxrc' in the 'codestat::main_dialog.xrc' plugin:
There are four named fields :
Code
'txt_Gauge_Code' => <label>XXXX% Code only</label>
'txt_Gauge_Code_Comments' => <label>XXXX% Code + comm.</label>
'txt_Gauge_Comments' => <label>XXXX% Comments</label>
'txt_Gauge_Empty' => <label>XXXX% Empty</label>
These fields are extracted in the form :
Code
#line 92 "res/main_dialog.xrc"
_("XXXX% Code only");
#line 105 "res/main_dialog.xrc"
_("XXXX% Code + comm.");
#line 119 "res/main_dialog.xrc"
_("XXXX% Comments");
#line 132 "res/main_dialog.xrc"
_("XXXX% Empty");
The marked strings are extracted by 'xgettext' into a '*.po' file provided to 'poedit'.

If I translate the latter by ""XXXX% Vide" (in French), 'poedit' tells me that 'V' (Vide) is not valid while 'E' Empty) is !

The mark '%' must be written for example '%s'.
What does it mean "XXXX% " ?




« Last Edit: February 10, 2023, 05:12:03 pm by LETARTARE »
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: 1553
Re: Code::Blocks' translation
« Reply #269 on: February 10, 2023, 05:43:38 pm »
POedit is very picky when it finds a % in a string. It thinks the % starts a modifier (like %s) and then complains it is not in the translated string. The same happens with a string containing "%Untitled%s", the message is "Modifier %Untitlled not found in the translation".

You can ignore the message.