Permalink
Browse files

Generate message files

  • Loading branch information...
wombleton committed Feb 21, 2014
1 parent a69df04 commit c22fc841f03fe6146aed5199cbbc73fa6824f531
View
@@ -0,0 +1,18 @@
#!/bin/bash
# Create PO files
for locale in en; do
echo "Creating ${locale} language files"
mkdir -p locale/${locale}/LC_MESSAGES
mkdir -p i18n/${locale}
msginit --input=./locale/templates/LC_MESSAGES/messages.pot \
--output-file=./locale/${locale}/LC_MESSAGES/messages.po \
-l ${locale} --no-translator
echo "You can translate i18n/${locale}/messages.json"
done
# Convert PO files to JSON
./node_modules/i18n-abide/bin/compile-json locale locale
# Make current version of the code happy
./node_modules/i18n-abide/bin/compile-mo.sh locale
View
Binary file not shown.
Oops, something went wrong.

0 comments on commit c22fc84

Please sign in to comment.