From f8aced389413286c9e40fc4c89f8824a47b7f220 Mon Sep 17 00:00:00 2001 From: Miraty Date: Tue, 2 May 2023 19:14:16 +0200 Subject: [PATCH] Add script to update translations --- locales/update.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 locales/update.sh diff --git a/locales/update.sh b/locales/update.sh new file mode 100755 index 0000000..b965598 --- /dev/null +++ b/locales/update.sh @@ -0,0 +1,9 @@ +#!/usr/bin/bash + +xgettext --from-code=UTF-8 --no-wrap -d messages -p locales/ *.php */*.php */*/*.php + +mv locales/messages.po locales/messages.pot + +msgmerge --no-wrap locales/fr/C/LC_MESSAGES/messages.po locales/messages.pot -o locales/fr/C/LC_MESSAGES/messages.po + +msgfmt locales/fr/C/LC_MESSAGES/messages.po -o locales/fr/C/LC_MESSAGES/messages.mo