From d15d58f6d19af2363328e775a13dd2e8bfeaf3dc Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Thu, 24 Jul 2014 16:50:44 -0400 Subject: [PATCH] Fix translation script, make it read UTF-8 source files correctly --- dev_tools/update_po_files.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev_tools/update_po_files.sh b/dev_tools/update_po_files.sh index 524721420..a921fd660 100755 --- a/dev_tools/update_po_files.sh +++ b/dev_tools/update_po_files.sh @@ -4,7 +4,7 @@ cd .. #generate a new .po file #this will generate a file called messages.po -find . -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php +find . -iname "*.phtml" -o -name "*.php" | xargs xgettext -L php --from-code=UTF-8 #merge the new messages from messages.po into each existing .po file #this will generate new .po files