News:

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

Main Menu

Patch to translate 2 scripts

Started by gd_on, December 27, 2019, 09:49:14 AM

Previous topic - Next topic

gd_on

Here is a patch to allow the translation of two distributed scripts : plugin_find_broken_files.script and wx_help.script

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).

oBFusCATed

Could you rework dynamically created strings to be done with some kind of formatting string?
"A " + something + " B" might not have the same form in another language, so it is better to be something like format("A %s B", something).
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

gd_on

#2
I am not the author of these scripts. I simply replaced the some _T by _.
I understand your remark, but at least, for French translations it's not a problem (my work is already in launchpad).
I don't know if the script engine is clever enough to support %d or %s to format numbers and strings, and more, how this engine works.
Finally, I think that your remark concerns only 2 strings (line 88 and 116 in plugin_find_broken_files.script).
So, I'm certainly not the best guy to do such a work. May be the original author ? (who knows how to test that also deeply : at least, for French translation looks OK, but I don't know for other languages)

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).