1
0
mirror of https://github.com/gryf/pygtktalog.git synced 2025-12-18 20:10:24 +01:00

Added junk stuff, that belongs to 1.x branch. Mostly it is attempt to add i18n

support, rest are files with some temporary ideas.
This commit is contained in:
2009-05-04 15:48:40 +00:00
parent 56c77ae9a4
commit 0e6ed92c53
5 changed files with 732 additions and 0 deletions

23
extract_gettext.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/sh
# Create new messages.pot file
blacklist="EXIF.py no_thumb.py"
rm locale/pygtktalog.pot
xgettext -L Python --keyword=_ -o locale/pygtktalog.pot pygtktalog.py
svn ls | grep '.py$'|grep -v 'pygtktalog.py' |while read file; do
xgettext -j -L Python --keyword=_ -o locale/pygtktalog.pot $file
done
for dir in src/ctrls src/models src/views src/lib; do
svn ls -R $dir| grep '.py$' |grep -v 'EXIF.py'|grep -v 'no_thumb.py'| while read file; do
xgettext -j -L Python --keyword=_ -o locale/pygtktalog.pot $dir/$file
done
done
cd locale
msginit --input=pygtktalog.pot --locale=pl_PL.UTF-8
# now its time to make .mo files:
mkdir -p pl_PL/LC_MESSAGES
#msgfmt --output-file=pl_PL/LC_MESSAGES/pygtktalog.mo pl.po