Mise à jour des traductions.
[photoprint.git] / update_i18n.sh
diff --git a/update_i18n.sh b/update_i18n.sh
new file mode 100755 (executable)
index 0000000..d7f9001
--- /dev/null
@@ -0,0 +1,9 @@
+#! /bin/sh
+
+i18nextract --path . --site_zcml ../../etc/site.zcml --domain photoprint -o locales
+
+cat locales/photoprint.pot locales/photoprint-manual.pot > locales/photoprint-all.pot
+mv locales/photoprint-all.pot locales/photoprint.pot
+
+msgmerge --update --no-fuzzy-matching locales/fr/LC_MESSAGES/photoprint.po locales/photoprint.pot
+msgmerge --update --no-fuzzy-matching locales/en/LC_MESSAGES/photoprint.po locales/photoprint.pot