# HG changeset patch # User Neil Muller # Date 1359290878 -7200 # Node ID cc284445181b8ac7b6552bbc4e2e6167872f4834 # Parent 374d96e0b55ea9eade3b80133e46e0cde10c8d08 Fix install-po.sh to handle module locale correctly diff -r 374d96e0b55e -r cc284445181b pyntnclick/data/locale/README.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pyntnclick/data/locale/README.txt Sun Jan 27 14:47:58 2013 +0200 @@ -0,0 +1,3 @@ +This is for mo files for the pyntnclick tools. + +We don't want to store the mo files in VCS. diff -r 374d96e0b55e -r cc284445181b pyntnclick/data/locales/README.txt --- a/pyntnclick/data/locales/README.txt Sun Jan 27 13:42:58 2013 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,3 +0,0 @@ -This is for mo files for the pyntnclick tools. - -We don't want to store the mo files in VCS. diff -r 374d96e0b55e -r cc284445181b scripts/install-po.sh --- a/scripts/install-po.sh Sun Jan 27 13:42:58 2013 +0200 +++ b/scripts/install-po.sh Sun Jan 27 14:47:58 2013 +0200 @@ -12,8 +12,8 @@ done for pofile in pyntnclick/data/po/*.po; do - molang=`echo $pofile | sed -e 's#data/po/\(.*\)\\.po#\\1#'`; + molang=`echo $pofile | sed -e 's#pyntnclick/data/po/\(.*\)\\.po#\\1#'`; mofile=`echo $pofile | sed -e 's/\\.po/.mo/'`; - mkdir -p data/locale/$molang/LC_MESSAGES + mkdir -p pyntnclick/data/locale/$molang/LC_MESSAGES scripts/msgfmt.py -o pyntnclick/data/locale/$molang/LC_MESSAGES/pyntnclick-tools.mo $pofile done