소스 검색

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