From 3cca0806d4929151e33c514bfc52c3dc1dd6a816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Sat, 6 Mar 2010 14:42:46 +0100 Subject: Read translators from file --- TRANSLATORS | 1 + portato/gui/templates/AboutWindow.ui | 7 ------- portato/gui/windows/about.py | 8 ++++++-- setup.py | 1 + 4 files changed, 8 insertions(+), 9 deletions(-) create mode 120000 TRANSLATORS diff --git a/TRANSLATORS b/TRANSLATORS new file mode 120000 index 0000000..d2e7d0b --- /dev/null +++ b/TRANSLATORS @@ -0,0 +1 @@ +doc/TRANSLATORS \ No newline at end of file diff --git a/portato/gui/templates/AboutWindow.ui b/portato/gui/templates/AboutWindow.ui index 5590e2b..a3f81cf 100644 --- a/portato/gui/templates/AboutWindow.ui +++ b/portato/gui/templates/AboutWindow.ui @@ -25,13 +25,6 @@ Thanks goto: - The Porthole team, which often inspired me and gave me hints :) - franzf, who often tested and gave comments - the Sabayon-Distro for making Portato the default Portage-GUI - Catalan - Roger Calvó -German - René 'Necoro' Neumann -Italian - Ponsi -Polish - Tomasz Osiński -Portugese (Brazilian) - Alberto Federman Neto -Spanish - Daniel Halens -Turkish - Gürkan 'seqizz' Gür p4r4d0x (inspired by wolfden) 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 -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) diff --git a/setup.py b/setup.py index 1bcbc44..0acf907 100644 --- a/setup.py +++ b/setup.py @@ -36,6 +36,7 @@ packages = [ data_files = [ (TEMPLATE_DIR, [os.path.join("portato/gui/templates",x) for x in os.listdir("portato/gui/templates") if (x.endswith(".ui") or x.endswith(".menu"))]), (ICON_DIR, ["icons/portato-icon.png", "icons/better-package.svg"]), + (DATA_DIR, ["doc/TRANSLATORS"]), (PLUGIN_DIR, plugin_list("gpytage", "notify", "etc_proposals", "reload_portage", "package_details"))] cmdclass = {'build_manpage': build_manpage} -- cgit v1.2.3