浏览代码

Add script to update translations

Miraty 2 年之前
父节点
当前提交
f8aced3894
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      locales/update.sh

+ 9 - 0
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