diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/update-translation.sh b/update-translation.sh index 1a2138b..5a73f73 100755 --- a/update-translation.sh +++ b/update-translation.sh @@ -1,3 +1,3 @@ #!/bin/bash -xgettext -o locale/le-chat-php.pot `find . -iname '*.php'` +xgettext --from-code UTF-8 -o locale/le-chat-php.pot `find . -iname '*.php'` for translation in `find locale -iname '*.po'`; do msgmerge -U "$translation" locale/le-chat-php.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done