summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-03-06 14:42:46 +0100
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-03-06 14:42:46 +0100
commit3cca0806d4929151e33c514bfc52c3dc1dd6a816 (patch)
tree4afcaecbbad706f350c87946ed035234d9179742 /portato/gui/windows
parent731baff8ab0f6c5ea7fd9cbfc8cb0564bd303dc6 (diff)
downloadportato-3cca0806d4929151e33c514bfc52c3dc1dd6a816.tar.gz
portato-3cca0806d4929151e33c514bfc52c3dc1dd6a816.tar.bz2
portato-3cca0806d4929151e33c514bfc52c3dc1dd6a816.zip
Read translators from file
Diffstat (limited to 'portato/gui/windows')
-rw-r--r--portato/gui/windows/about.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/portato/gui/windows/about.py b/portato/gui/windows/about.py
index a15fd24..0d2ce1a 100644
--- a/portato/gui/windows/about.py
+++ b/portato/gui/windows/about.py
@@ -10,12 +10,13 @@
#
# Written by René 'Necoro' Neumann <necoro@necoro.net>
-from __future__ import absolute_import
+from __future__ import absolute_import, with_statement
+import os
import gtk
from .basic import AbstractDialog
-from ...constants import VERSION, REVISION
+from ...constants import VERSION, REVISION, DATA_DIR
class AboutWindow (AbstractDialog):
"""A window showing the "about"-informations."""
@@ -27,6 +28,9 @@ class AboutWindow (AbstractDialog):
self.window.set_version(VERSION)
self.window.set_logo(None)
+ with open(os.path.join(DATA_DIR, "TRANSLATORS")) as f:
+ self.window.set_translator_credits("".join(f.readlines()))
+
if REVISION:
gitlabel = self.tree.get_widget("gitLabel")
gitlabel.set_label(REVISION)