From c70994cda8a46b20b8585190ae06d98f4a4256db Mon Sep 17 00:00:00 2001 From: Austin King Date: Fri, 14 Jan 2011 14:06:14 -0800 Subject: [PATCH] Whoops locale doesn't belong in Playdoh directly --- locale/README.txt | 19 ------------------- locale/compile-mo.sh | 19 ------------------- 2 files changed, 38 deletions(-) delete mode 100644 locale/README.txt delete mode 100755 locale/compile-mo.sh diff --git a/locale/README.txt b/locale/README.txt deleted file mode 100644 index 19001a2..0000000 --- a/locale/README.txt +++ /dev/null @@ -1,19 +0,0 @@ -We are using English strings for gettext message ids. - -Instructions: -1) ./manage.py extract -2) ./manage.py verbatimize --rename - This will copy the POT files created in step 1 to templates/LC_MESSAGES -3) ./manage.py merge - -Optional: -4) locale/compile-mo.sh locale - -New Locales: -Assuming you want to add 'fr': -1) mkdir -p locale/fr/LC_MESSAGES -2) ./manage.py merge - -or -1) msginit --no-translator -l fr -i templates/LC_MESSAGES/messages.pot -o fr/LC_MESSAGES/messages.po -2) repeat for other POT files diff --git a/locale/compile-mo.sh b/locale/compile-mo.sh deleted file mode 100755 index 8330cac..0000000 --- a/locale/compile-mo.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/bash - -# syntax: -# compile-mo.sh locale-dir/ - -function usage() { - echo "syntax:" - echo "compile.sh locale-dir/" - exit 1 -} - -# check if file and dir are there -if [[ ($# -ne 1) || (! -d "$1") ]]; then usage; fi - -for lang in `find $1 -type f -name "*.po"`; do - dir=`dirname $lang` - stem=`basename $lang .po` - msgfmt -o ${dir}/${stem}.mo $lang -done