Fix translation

merge-requests/64/head
Hugo Posnic 2016-12-18 19:51:28 +01:00
parent 0046c87aac
commit 8e3f01103d
2 changed files with 129 additions and 5 deletions

127
po/en.po 100644
View File

@ -0,0 +1,127 @@
# 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 <EMAIL@ADDRESS>, 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"

View File

@ -113,11 +113,8 @@ class ManjaroHello():
:param locale: locale to use
:type locale: str
"""
if self.preferences["locale"] != self.default_locale:
tr = gettext.translation(self.app, self.locale_path, [locale])
tr.install()
else:
gettext.install(self.app)
tr = gettext.translation(self.app, self.locale_path, [locale])
tr.install()
# Dirty code to fix an issue with gettext that can't translate strings from glade files
# Redfining all translatables strings