[Super-tux-commit] supertux Jamfile,1.6,1.7
Brought to you by:
wkendrick
From: Matze B. <mat...@us...> - 2004-12-02 01:42:45
|
Update of /cvsroot/super-tux/supertux In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv539 Modified Files: Jamfile Log Message: Made lispfiles translatable. This time the translations are stored externally in .po files in the same directory as the lisp files. So you can have translation files for complete level subsets now. Because Ricardo added a hacked solution before and because people already used that, someone has to go over all the maps now, extract the translations and put them into separate files, I'm too lazy to do that now, I just translated some files for testing. Translation-Patches are always welcome ;-) Index: Jamfile =================================================================== RCS file: /cvsroot/super-tux/supertux/Jamfile,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- Jamfile 27 Nov 2004 14:48:10 -0000 1.6 +++ Jamfile 2 Dec 2004 01:41:54 -0000 1.7 @@ -1,5 +1,24 @@ SubDir TOP ; +if $(XGETTEXT) != "" +{ + actions XGetText + { + $(XGETTEXT) $(XGETTEXT_FLAGS) --keyword='_:1' -o $(<) $(>) + } + rule MakePot + { + if $(>) { + XGetText $(<) : $(>) ; + Depends $(<) : $(>) ; + Depends all : $(<) ; + } + } +} else { + rule MakePot + { } +} + # Decend into subdirs SubInclude TOP lib ; SubInclude TOP src ; @@ -10,15 +29,5 @@ # add some additional files to package Package INSTALL NEWS README COPYING AUTHORS ChangeLog ; -if $(XGETTEXT) != "" -{ - - actions MakePot - { - $(XGETTEXT) --keyword='_:1' --c++ -o $(<) $(>) - } - MakePot supertux.pot : $(TRANSLATABLE_SOURCES) ; - Depends supertux.pot : $(TRANSLATABLE_SOURCES) ; - MakeLocate supertux.pot : data/locale ; - Depends all : supertux.pot ; -} +MakePot data/locale/supertux.pot : $(TRANSLATABLE_SOURCES) ; +XGETTEXT_FLAGS on data/locale/supertux.pot += --language=C++ ; |