Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: rechtsanwaltsteyer on July 24, 2022, 04:40:38 pm

Title: Code::Blocks IDE translation to German language
Post by: rechtsanwaltsteyer on July 24, 2022, 04:40:38 pm
If somebody needs translation files for the Code::Blocks IDE to German language, feel free to follow this link an download the needed files:
https://www.dropbox.com/sh/bjuy411x4vv7ehm/AABgOFckrY5MklvvdLSLIAmHa?dl=0 
Title: Re: Code::Blocks IDE translation to German language
Post by: rechtsanwaltsteyer on November 04, 2022, 01:56:55 pm
Hi out there,
I was updating the german translation. It is enlarged a lot since last time.
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 04, 2022, 02:28:58 pm
Thank you for your effort.

If you detect untranslatable strings please report here or create a ticket.
Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 04, 2022, 06:23:48 pm
May be you could update on launchpad, https://launchpad.net/codeblocks-gd
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 04, 2022, 06:54:45 pm
I have downloaded the spanish PO file, where is the template file (POT)?

Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 04, 2022, 07:17:15 pm
I update the template from time to time (and of course the french translation).
On the forum, it's possible to find my last extracting tools. They are not totally up to date, but they should work.
I'm not sure that you can download the raw .pot file on launchpad. May be you can try to download some .po languages files with very few translated strings!

gd_on
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 04, 2022, 07:20:16 pm
Can you attach the POT, so I can update the downloaded es.po?
Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 04, 2022, 07:42:05 pm
here it is ...
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 04, 2022, 07:43:12 pm
Thanks
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 08, 2022, 11:21:06 am
@gd_on, [r13003] has removed most fragmented translations and strings that should not be translated at all like "(" or "%d"

I know this implies translating again some strings (specially in french because it is mostly complete), but I think the final result will be better.

Please, can you generate a POT of 13003 and attach it here?

Thank you in advance.
Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 08, 2022, 12:35:54 pm
Here it is ...
I have also updated the template on launchpad, updated the french translation.
I had globally approved your own work on spanish language before my update, so there will be probably also some new work for you Miguel. ;D
Nevertheless, the effect of my updates are not immediately applied on launchpad. Need some time (1 hour or 1 day, it depends ...)

gd_on
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 08, 2022, 12:47:18 pm
Thank you for the file.

I do not have experience with Launchpad. The way I am doing the translation is:
  - downloaded the spanish PO
  - update it with your POT from r13000
  - translate
  - upload the PO to Launchpad
  - update my local PO with the r13003 POT
10:
  - translate
  - upload
  goto 10

Is this OK?
Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 08, 2022, 01:22:10 pm
It should be.
Normally, after my own update of the template on launchpad, there are two ways to work :
I prefer the second solution, because working directly on launchpad is quite tedious (but it works well !), especially if you have a lot of translations to update.
Sometimes, on launchpad, you have to review one by one your own translations, particularly when some conflicts are detected by launchpad or some double translations (if somebody else has worked on the translation). Then you have to review them and choose the best one. Of course, such a job must be done by someone who knows well the translation language, not me. :-[

gd_on
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 08, 2022, 07:18:46 pm
Do your batch files extract translatable strings from scripts (like wizard.script)?

If yes, would they accept something like this?
Code
local intro_msg = _("Welcome to the wxWidgets project wizard!\n\n" +
                               "This wizard will guide you to create a new project using\n" +
                               "the wxWidgets cross-platform GUI library.\n\n" +
                               "When you 're ready to proceed, please click \"Next\"...");
(note the plus sign).
Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 09, 2022, 09:45:41 am
It does not work like that, if the string is split in several parts (with +). But it works if the whole string is on one line like that :
Code
local intro_msg = _("Welcome to the wxWidgets project wizard!\n\nThis wizard will guide you to create a new project using\nthe wxWidgets cross-platform GUI library.\n\nWhen you 're ready to proceed, please click \"Next\"...");
You can also split into 2 full sentences (or 3) :
Code
local intro_msg1 = _("Welcome to the wxWidgets project wizard!\n\nThis wizard will guide you to create a new project using\nthe wxWidgets cross-platform GUI library.\n\n");
local intro_msg2 = _("When you 're ready to proceed, please click \"Next\"...");
Title: Re: Code::Blocks IDE translation to German language
Post by: gd_on on November 10, 2022, 01:40:51 pm
Neverthess, something like :
Code
local intro_msg = _("Welcome to the wxWidgets project wizard!\n\n") +
                            _("This wizard will guide you to create a new project using\n") +
                            _("the wxWidgets cross-platform GUI library.\n\n") +
                            _("When you 're ready to proceed, please click \"Next\"...");
with _(...) on each line, is correctly detected but as you have partial sentences it may be difficult to translate without the context. A better approach is
Code
local intro_msg = _("Welcome to the wxWidgets project wizard!\n\n") +
                            _("This wizard will guide you to create a new project using\nthe wxWidgets cross-platform GUI library.\n\n") +
                            _("When you 're ready to proceed, please click \"Next\"...");
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 10, 2022, 02:11:40 pm
OK
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 10, 2022, 05:45:35 pm
Most string are fixed in [r13010].

There are still about three strings using concatenated fragments, but I do not know how to fix them in Squirrel.
Title: Re: Code::Blocks IDE translation to German language
Post by: Miguel Gimenez on November 11, 2022, 08:13:10 am
Fixed in [r13011] using macro-style replacements:
Code
local msg = _("$1 was not found on drive $2, try again...");
msg.Replace(_T("$1"), filename);
msg.Replace(_T("$2"), drivename);