-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added create_mo.sh and create_pot_template.sh, plus generated pot in …
…lang/linstaller/.
- Loading branch information
Showing
3 changed files
with
869 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 - |
Oops, something went wrong.