Add Makefile target to update po files

This is a bit of a hack to make my life easier.

make update-po-files

will extract the translation strings and merge them with the existing
translations - for all existing translations.

For good measure this commit includes the latest update of the po files
(but no new translations should be needed).

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2012-10-18 14:53:27 -07:00
parent 17191f17ce
commit 049f4aa8ac
13 changed files with 42 additions and 36 deletions

View file

@ -194,6 +194,12 @@ install-cross-windows: $(NAME)
$(INSTALL) $$LOC/subsurface.mo $(WINDOWSSTAGING)/$$LOC/subsurface.mo; \ $(INSTALL) $$LOC/subsurface.mo $(WINDOWSSTAGING)/$$LOC/subsurface.mo; \
done done
update-po-files:
xgettext -o subsurface-new.pot -s -k_ -kN_ --keyword=C_:1c,2 --add-comments="++GETTEXT" *.c
for i in po/*.po; do \
msgmerge -s -U $$i subsurface-new.pot ; \
done
file.o: file.c dive.h file.h file.o: file.c dive.h file.h
$(CC) $(CFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) $(XSLT) $(ZIP) -c file.c $(CC) $(CFLAGS) $(GLIB2CFLAGS) $(XML2CFLAGS) $(XSLT) $(ZIP) -c file.c

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-11-10 16:27+0300\n" "PO-Revision-Date: 2012-11-10 16:27+0300\n"
"Last-Translator: Lubomir I. Ivanov <neolit123@gmail.com>>\n" "Last-Translator: Lubomir I. Ivanov <neolit123@gmail.com>>\n"
"Language-Team: Bulgarian\n" "Language-Team: Bulgarian\n"
@ -1008,7 +1008,7 @@ msgstr "фута"
msgid "integrated" msgid "integrated"
msgstr "вградена" msgstr "вградена"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "кг" msgstr "кг"
@ -1016,7 +1016,7 @@ msgstr "кг"
msgid "l" msgid "l"
msgstr "л" msgstr "л"
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "паунда" msgstr "паунда"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-15 14:02+0100\n" "PO-Revision-Date: 2012-10-15 14:02+0100\n"
"Last-Translator: Martin Gysel <me@bearsh.org>\n" "Last-Translator: Martin Gysel <me@bearsh.org>\n"
"Language-Team: German\n" "Language-Team: German\n"
@ -1007,7 +1007,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integriert" msgstr "integriert"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1015,7 +1015,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "US Pfund" msgstr "US Pfund"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-10 16:27+0900\n" "PO-Revision-Date: 2012-10-10 16:27+0900\n"
"Last-Translator: Dirk Hohndel <dirk@hohndel.org>\n" "Last-Translator: Dirk Hohndel <dirk@hohndel.org>\n"
"Language-Team: German\n" "Language-Team: German\n"
@ -1007,7 +1007,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integriert" msgstr "integriert"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1015,7 +1015,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "US Pfund" msgstr "US Pfund"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-16 12:05+0100\n" "PO-Revision-Date: 2012-10-16 12:05+0100\n"
"Last-Translator: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>\n" "Last-Translator: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integrado" msgstr "integrado"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "libra" msgstr "libra"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-15 22:41+0300\n" "PO-Revision-Date: 2012-10-15 22:41+0300\n"
"Last-Translator: Tommi Saviranta <wnd@iki.fi>\n" "Last-Translator: Tommi Saviranta <wnd@iki.fi>\n"
"Language-Team: Finnish\n" "Language-Team: Finnish\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integroitu" msgstr "integroitu"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "pauna" msgstr "pauna"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-12-11 09:58+0200\n" "PO-Revision-Date: 2012-12-11 09:58+0200\n"
"Last-Translator: Pierre-Yves Chibon <pingou@pingoured.fr>\n" "Last-Translator: Pierre-Yves Chibon <pingou@pingoured.fr>\n"
"Language-Team: French\n" "Language-Team: French\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "intégré" msgstr "intégré"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "l" msgstr "l"
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "Livre US" msgstr "Livre US"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-18 15:00+0100\n" "PO-Revision-Date: 2012-10-18 15:00+0100\n"
"Last-Translator: Ivan Habunek <ivan.habunek@gmail.com>\n" "Last-Translator: Ivan Habunek <ivan.habunek@gmail.com>\n"
"Language-Team: Croatian\n" "Language-Team: Croatian\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integrirani" msgstr "integrirani"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "US funte" msgstr "US funte"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-18 14:16+0100\n" "PO-Revision-Date: 2012-10-18 14:16+0100\n"
"Last-Translator: Filippo Moser <filippom@gmail.com>\n" "Last-Translator: Filippo Moser <filippom@gmail.com>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -1010,7 +1010,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integrato" msgstr "integrato"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1018,7 +1018,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "lbs" msgstr "lbs"

View file

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-17 10:41+0100\n" "PO-Revision-Date: 2012-10-17 10:41+0100\n"
"Last-Translator: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>\n" "Last-Translator: Henrik Brautaset Aronsen <subsurface@henrik.synth.no>\n"
"Language-Team: Norwegian Bokmål\n" "Language-Team: Norwegian Bokmål\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integrert" msgstr "integrert"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "pund" msgstr "pund"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-11 13:08+0100\n" "PO-Revision-Date: 2012-10-11 13:08+0100\n"
"Last-Translator: Dirk Hohndel <dirk@hohndel.org>\n" "Last-Translator: Dirk Hohndel <dirk@hohndel.org>\n"
"Language-Team: Dutch\n" "Language-Team: Dutch\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "Geintergreerd" msgstr "Geintergreerd"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "US Pond" msgstr "US Pond"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-16 00:12+0100\n" "PO-Revision-Date: 2012-10-16 00:12+0100\n"
"Last-Translator: Jozef Ivanecký <dodo.sk@gmail.com>\n" "Last-Translator: Jozef Ivanecký <dodo.sk@gmail.com>\n"
"Language-Team: Slovakian\n" "Language-Team: Slovakian\n"
@ -1006,7 +1006,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integrované" msgstr "integrované"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1014,7 +1014,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "US libra" msgstr "US libra"

View file

@ -9,7 +9,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 2.0.1\n" "Project-Id-Version: 2.0.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2012-10-18 09:28-0700\n" "POT-Creation-Date: 2012-10-18 14:52-0700\n"
"PO-Revision-Date: 2012-10-12 11:48+0900\n" "PO-Revision-Date: 2012-10-12 11:48+0900\n"
"Last-Translator: Linus Torvalds <torvalds@linux-foundation.org>\n" "Last-Translator: Linus Torvalds <torvalds@linux-foundation.org>\n"
"Language-Team: Swedish\n" "Language-Team: Swedish\n"
@ -1007,7 +1007,7 @@ msgstr "ft"
msgid "integrated" msgid "integrated"
msgstr "integrerat" msgstr "integrerat"
#: dive.c:136 gtk-gui.c:607 #: dive.c:136 equipment.c:1037 gtk-gui.c:607
msgid "kg" msgid "kg"
msgstr "kg" msgstr "kg"
@ -1015,7 +1015,7 @@ msgstr "kg"
msgid "l" msgid "l"
msgstr "" msgstr ""
#: dive.c:132 divelist.c:1267 gtk-gui.c:608 #: dive.c:132 divelist.c:1267 equipment.c:1039 gtk-gui.c:608
msgid "lbs" msgid "lbs"
msgstr "pund" msgstr "pund"