Skip to content

Commit

Permalink
Synced translations.
Browse files Browse the repository at this point in the history
services/glade: added translation support.

modules/userhost: ensure we disable *password_initial if module is not virgin
  • Loading branch information
g7 committed Dec 16, 2012
1 parent 3c9b77f commit 80a59f4
Show file tree
Hide file tree
Showing 14 changed files with 5,895 additions and 1,888 deletions.
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[main]
host = https://www.transifex.net
host = https://www.transifex.com

[linstaller.master]
file_filter = lang/linstaller/<lang>.po
Expand Down
7 changes: 7 additions & 0 deletions crash/crash_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
import threading
import subprocess

import locale, t9n.library

locale.setlocale(locale.LC_ALL, '')
locale.bindtextdomain("linstaller", "/usr/share/locale")
_ = t9n.library.translation_init("linstaller")

GObject.threads_init()

UIPATH = "/usr/share/linstaller/crash/ui.glade"
Expand Down Expand Up @@ -70,6 +76,7 @@ def hide_error(self, obj):
def __init__(self):

self.builder = Gtk.Builder()
self.builder.set_translation_domain("linstaller")
self.builder.add_from_file(UIPATH)

self.crashwindow = self.builder.get_object("crash")
Expand Down
9 changes: 9 additions & 0 deletions create_pot_template.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,12 @@
APP_NAME="linstaller"

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

# Find and extract from glade files
files=$(find . -name "*.glade")
for glade in $files; do
if [ `dirname $glade` = "./config" ]; then continue; fi
intltool-extract --type=gettext/glade $glade
xgettext --language="C" --keyword=N_ -j --output=lang/$APP_NAME/$APP_NAME.pot -j ${glade}.h
rm ${glade}.h
done
Binary file modified lang/linstaller/et.mo
Binary file not shown.
Loading

0 comments on commit 80a59f4

Please sign in to comment.