Bug#437338: hex-a-hop: Minor i18n changes to get a further help screen translated

Jens Seidel jensseidel at users.sf.net
Sat Aug 11 22:28:52 UTC 2007


Package: hex-a-hop
Version: 0.0.20070315-2
Tags: l10n patch

Hi,

I noticed that the first help screen is not translatable by default as
xgettext has trouble extracting _("Welcome to " GAMENAME "!"). It doesn't
extract anything behind the macro. That's why I suggest to apply xgettext
on preprocessed files and attached a patch for it (apply it after applying
all patches from debian/patches/, I hope it is OK so).

(I had really a lot of trouble, often the package could not build
because of my changes as the previous patches could not be reverted.
I also created first a backup copy of the source directory with suffix
.orig (to patch later against it) which was always deleted by
dpkg-buildpackage!!!)

Since the preprocessed file hex_puzzzle.cpp (shouldn't is be renamed to
hex_puzzle.cpp?) includes not only the affected menus.h but also
level_list.h I merged both POT files (messages and levels) into one.
That's why I assume you merge your translations levels.es.po and
messages.es.po into es.po. I think this is better than maintaining two
files.

Please note that I now also update all translations during package build
(in the clean target which is called at the beginning of a new build).
Translations will never be outdated again!

The file debian/i18n/files.list should now be deleted, it is no longer
used.

PS: It is not obvious that the game (at least the help) insert explicit
linebreaks once it finds "  " in a message and starts a new paragraph on
"    ". If the POT file is distributed as well (and not only generated)
I suggest to document this at the beginning of this file so that these
comments are merged automatically into all <lang>.po files. I also
suggest to document other messages for translators in C++ files (just
prepend a /* TRANSLATORS: A hint for translators*/ before
difficult gettext messages as this is copied into PO files as well).

Jens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hex-a-hop-0.0.20070315.diff
Type: text/x-diff
Size: 4233 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20070812/3a6c8074/attachment.diff 


More information about the Pkg-games-devel mailing list