Package: berusky Version: 1.1-6 0 Severity: wishlist Tags: patch upstream l10n
Berusky is almost i18n, there are just a very few bits missing. The
following steps make it possible to l10n for languages, which only use
the ACSII character set:
a) Actually enable i18n
Add the following lines after line 292 in src/main.cpp:
/* Set locale via LC_ALL. */
setlocale (LC_ALL, "");
#if ENABLE_NLS
/* Set the text message domain. */
// bbindtextdomain (PACKAGE, LOCALEDIR);
bindtextdomain (PACKAGE, "/usr/share/locale");
textdomain (PACKAGE);
#endif
The commented out line should work, however, for some reason the configure
script does not provide LOCALEDIR, so providing the path explicitly is
a hack. Better would be to teach configure LOCALEDIR.
b) Actually generate the translated message catalogue
Add the languages in line 5997 in configure in the variable
ALL_LINGUAS, e.g. if you have a file po/de.po, this line would look
ALL_LINGUAS="de"
Better would be to teach configure to look for some external file
located in po/, which could be easily updated anytime a new language
is provided.
c) Actually install the translated file
Add the appropriate entry for each translation, i.e. if you have a
file po/de.po, then add the following line to this file:
po/de.gmo /usr/share/local/de/LC_MESSAGES/berusky.mo
Better would be to automatically install all files, unfortunately I
don't know CDBS so I cannot provide you with a better patch.
After these modifications, all languages using only ASCII characters
can provide a suitable xx.po file and get the game localized.
--
Dr. Helge Kreutzmann [email protected]
Dipl.-Phys. http://www.helgefjell.de/debian.php
64bit GNU powered gpg signed mail preferred
Help keep free software "libre": http://www.ffii.de/
signature.asc
Description: Digital signature

