clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Added Dutch translation to Fantasycore mod engine #860

Closed basdoodeman closed 12 years ago

basdoodeman commented 12 years ago

Added and play tested engine.nl.po. Seems to work for the strings that are in engine.pot.

Since not all strings on e.g. the configuration screen are in engine.pot, some text on the screen will be in English.

I am guessing we either just need an updated engine.pot, or the code needs additional gettext(?) calls and we can subsequently generate(?) an updated engine.po.

I welcome recommendations on how to proceed with that. :-)

clintbellanger commented 12 years ago

The engine.pot file may be out of date. Usually we wait until the next release's string changes are complete before generating the new file, then announce to all translators that it's safe to update/add translations. A couple people have asked for an update now though, so we may do that soon (and check for any untranslated text).

basdoodeman commented 12 years ago

I have plenty to translate still, but I can do that as well.

It has been a while since I programmed in C / C++ but it is like riding a bike I guess. :-)

How do I locally generate a .pot?

I will just grep for untranslated strings to see if they have a gettext call wrapper. (I assume this is how gettext works).

On Fri, Aug 24, 2012 at 9:17 PM, Clint Bellanger notifications@github.comwrote:

The engine.pot file may be out of date. Usually we wait until the next release's string changes are complete before generating the new file, then announce to all translators that it's safe to update/add translations. A couple people have asked for an update now though, so we may do that soon (and check for any untranslated text).

— Reply to this email directly or view it on GitHubhttps://github.com/clintbellanger/flare/pull/860#issuecomment-8012065.

clintbellanger commented 12 years ago

Here's the utility we used to extract strings from our data files: https://github.com/clintbellanger/flare/blob/master/mods/fantasycore/languages/xgettext.py

Someone else usually generates the engine.pot files, I imagine they use some standard GNU tool.