From 717d8ad11de0bf40d6cf03e297c890ae3ac587a9 Mon Sep 17 00:00:00 2001 From: Hugo Posnic Date: Wed, 21 Dec 2016 22:24:30 +0100 Subject: [PATCH] Simplify way to handle en translations --- po/en.po | 127 ------------------------------------------- src/manjaro_hello.py | 2 +- 2 files changed, 1 insertion(+), 128 deletions(-) delete mode 100644 po/en.po diff --git a/po/en.po b/po/en.po deleted file mode 100644 index 37ef9b7..0000000 --- a/po/en.po +++ /dev/null @@ -1,127 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -msgid "" -msgstr "" -"Project-Id-Version: \n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2016-12-18 19:47+0100\n" -"PO-Revision-Date: 2016-12-18 19:50+0100\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Generator: Poedit 1.8.11\n" -"Last-Translator: \n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" -"Language: en\n" - -#: src/manjaro-hello.py:187 -msgid "Can't load page." -msgstr "Can't load page." - -#: ui/manjaro-hello.glade:7 -msgid "About" -msgstr "About" - -#: ui/manjaro-hello.glade:12 -msgid "Welcome screen for Manjaro" -msgstr "Welcome screen for Manjaro" - -#: ui/manjaro-hello.glade:14 -msgid "Github" -msgstr "Github" - -#: ui/manjaro-hello.glade:95 -msgid "Welcome to Manjaro!" -msgstr "Welcome to Manjaro!" - -#: ui/manjaro-hello.glade:112 -msgid "" -"Thank you for joining our community!\n" -"\n" -"We, the Manjaro Developers, hope that you will enjoy using Manjaro as much " -"as we enjoy building it. The links below will help you get started with your " -"new operating system. So enjoy the experience, and don't hesitate to send us " -"your feedback." -msgstr "" -"Thank you for joining our community!\n" -"\n" -"We, the Manjaro Developers, hope that you will enjoy using Manjaro as much " -"as we enjoy building it. The links below will help you get started with your " -"new operating system. So enjoy the experience, and don't hesitate to send us " -"your feedback." - -#: ui/manjaro-hello.glade:129 -msgid "DOCUMENTATION" -msgstr "DOCUMENTATION" - -#: ui/manjaro-hello.glade:143 -msgid "SUPPORT" -msgstr "SUPPORT" - -#: ui/manjaro-hello.glade:157 -msgid "PROJECT" -msgstr "PROJECT" - -#: ui/manjaro-hello.glade:169 -msgid "Read me" -msgstr "Read me" - -#: ui/manjaro-hello.glade:183 -msgid "Release info" -msgstr "Release info" - -#: ui/manjaro-hello.glade:197 -msgid "Wiki" -msgstr "Wiki" - -#: ui/manjaro-hello.glade:211 -msgid "Get involved" -msgstr "Get involved" - -#: ui/manjaro-hello.glade:225 -msgid "Forums" -msgstr "Forums" - -#: ui/manjaro-hello.glade:239 -msgid "Chat room" -msgstr "Chat room" - -#: ui/manjaro-hello.glade:253 -msgid "Mailling lists" -msgstr "Mailling lists" - -#: ui/manjaro-hello.glade:267 -msgid "Build Manjaro" -msgstr "Build Manjaro" - -#: ui/manjaro-hello.glade:281 -msgid "Donate" -msgstr "Donate" - -#: ui/manjaro-hello.glade:393 -msgid "Launch at start" -msgstr "Launch at start" - -#: ui/manjaro-hello.glade:430 -msgid "Use Calamares (Graphic method)" -msgstr "Use Calamares (Graphic method)" - -#: ui/manjaro-hello.glade:444 -msgid "Use CLI-Installer (Command line)" -msgstr "Use CLI-Installer (Command line)" - -#: ui/manjaro-hello.glade:466 -msgid "INSTALLATION" -msgstr "INSTALLATION" - -#: ui/manjaro-hello.glade:485 -msgid "Welcome" -msgstr "Welcome" - -#: ui/manjaro-hello.glade:508 -msgid "Documentation" -msgstr "Documentation" diff --git a/src/manjaro_hello.py b/src/manjaro_hello.py index fb960b2..c42a927 100644 --- a/src/manjaro_hello.py +++ b/src/manjaro_hello.py @@ -116,7 +116,7 @@ class ManjaroHello(): :type locale: str """ try: - tr = gettext.translation(self.app, self.locale_path, [locale]) + tr = gettext.translation(self.app, self.locale_path, [locale], fallback=True) tr.install() except OSError: print("WARNING: No translation file for '{}' locale".format(locale))