Skip to content

Commit

Permalink
Added create_mo.sh and create_pot_template.sh, plus generated pot in …
Browse files Browse the repository at this point in the history
…lang/linstaller/.
  • Loading branch information
g7 committed Aug 31, 2011
1 parent e6f6541 commit faf7035
Show file tree
Hide file tree
Showing 3 changed files with 869 additions and 0 deletions.
16 changes: 16 additions & 0 deletions create_mo.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash

#
# Simple script that creates .mo for every .po found in lang/template
# Copyright (C) 2011 Eugenio "g7" Paolantonio. All rights reserved.
# Work released under the GNU GPL License, version 3 or later.
#

APP_NAME="linstaller"

cd ./lang/$APP_NAME

for name in `find . -name "*.po"`; do
lang=${name/".po"/""}
msgfmt --output-file=$lang.mo $name
done
11 changes: 11 additions & 0 deletions create_pot_template.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

#
# Simple script that creates an appropriate .pot template into lang/
# Copyright (C) 2011 Eugenio "g7" Paolantonio. All rights reserved.
# Work released under the GNU GPL License, version 3 or later.
#

APP_NAME="linstaller"

find . -name "*.py" | xgettext --language=Python --keyword=_ --output=lang/$APP_NAME/$APP_NAME.pot -f -
Loading

0 comments on commit faf7035

Please sign in to comment.