[Posting] Re: PCC - Language
From:streu
Thread:PCC - Language
Forum:Talk
In reply to:Re: PCC - Language
Date:Wed, 2023-03-15 20:34 GMT

But I'm happy to help with translation (I've done similar things before).

Could you give me some more info on how to do it? Thank you

Right now, the tools I have for that are aimed at programmers familiar with a Linux console, so I don't know whether that would be anything for you:

Download the PCC2 source code. The translations are in directory "po/", Italian is "po/it.po".

Right now, it contains 874 translated strings. You would update it to contain all 2600 texts by running the command "scripts/updatepo po/it.po", then edit it with a text editor to define all the translations, and then convert it into a *.lang file using "perl scripts/msgcompile.pl it".

A translation looks like this

  #: util/cmdline.cc:194
  #, c-format
  msgid "Option `%s' does not take an argument"
  msgstr "L'opzione `%s' non richiede un argomento"

The "#" lines are information, then the English text as msgid, and the translated text as msgstr.

Depending on what you can do, we might be able to find some shortcuts.

If there's more interest, my programmer brain has already used the commute time to think about making a web interface for translations, to turn translation into a distributed team effort :smile: 2600+ strings is quite some work, and then, it's only PCC2, not the others.

--Stefan