This wiki has been moved to https://github.com/SuperTux/wiki into the mediawiki branch.

Translation

From SuperTux
Revision as of 01:21, 13 April 2006 by Andersersej (Talk | contribs)

Jump to: navigation, search

How to Translate

  • Check at the end of this site if someone else is already working on the translation for your language. If there is someone contact him/her!
  • Install gettext
  • Get an SVN snapshot of SuperTux and do the usual autogen.sh, configure. Make sure configure can find the xgettext application. (i.e. "checking for xgettext... xgettext" and "checking if xgettext supports Lisp... yes")
  • Run jam, let it compile SuperTux and create all the messages.pot files
  • Go into data/locale and data/levels/*/ and in each of those directories:
    • In case you want to create a new translation, run:
msginit -i messages.pot -o $LANG.po
(where $LANG is the two-character handle of your language)
    • In case you want to update an existing translation, issue the following command:
msgmerge -U $LANG.po messages.pot
  • Edit the .po files with your favourite editor or with one of the GUI tools below.
  • Send the translated .po files to the supertux-devel mailing list.
  • You should also edit the supertux.desktop file and add a comment entry for your language.

Notes for Translators

  • If there isn't a good translation for some term (i.e. fullscreen), you might consider to simply keep it in English. It's better than confusing the user.
  • In English, there is only one singular second person form (you). If your language has more than one - a personal and impersonal - remember that this is a game, so you should use the personal one. Note that if it can be omitted your language, you should probably do so.
  • Names like SuperTux, Tux, Penny or Nolok should not be translated. If you really think one of these is too strange for your language, first inform us on our mailing list. Names of minor characters like Mr. Ice Block can (and should) be translated.
  • If somewhere in the game, after translating a string, it doesn't look well (bad aligment, overlaps other text...), let us know and we will fix it.

Tools

There's a number of tools you can use to edit the .po files:

  • KBabel - matured KDE translation program
  • poEdit - multi-platform po editor (runs on Windows and Unix/Linux)
  • QTranslator - comes with Qt, also multi-platform
  • (X)Emacs - commonly used for translation with the respective plugin
  • Any text editor - of course you can also simply use a text editor. Just make sure the file encoding really matches the stuff stated in the .po header.

Translations

Please add yourself to this list if you are working on a new translation, so that others can contact you.

Catalan (ca)

  • Translated by Antoni Villalonga <frikimaster@gmail.com>
  • Status: ? included in svn

Czech (cs)

  • Translated by Ondra Hosek <ondra.hosek@gmail.com>
  • Status: complete, included in svn

Danish (da)

  • Translated by Anders <anders § ersej.dk>
  • Status: 100% (except of test.po, but it's so strange anyway), included in svn

German (de)

  • Translated by Matthias Braun <matze@braunis.de>
  • Additional translation by Marek Möckel
  • Status: 99% complete, included in svn

French (fr)

  • Translated by Frederic Rodrigo <f.rodrigo@tuxfamily.org>
  • Status: ? included in svn

Italian (it)

  • Translated by Iknos <ze4lot@email.it>
  • Status: ? included in svn

Dutch (nl)

  • Translated by Frank van der Loo <frank_l@linuxmail.org>
  • Status: ? included in svn

Norwegian Nynorsk (nn)

  • Translated by Karl Ove Hufthammer <karl@huftis.org>
  • Status: ? included in svn

(European) Portuguese (pt)

  • Translated by Ricardo Cruz <rick2@aeiou.pt>
  • Status: ? included in svn

(Brazilian) Portuguese (pt_BR)

  • Translated by Herval Ribeiro <heraze § gmail.com>
  • Status: work in progress

Polish (pl)

  • Translated by Tomasz Boczkowski <tboczkowski@onet.pl>
  • Status: work in progress