Make error translatable

This commit is contained in:
Hugo Posnic 2016-12-17 12:15:27 +01:00
parent b3666b9de4
commit 39c5fb75de
5 changed files with 60 additions and 59 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-16 22:11+0100\n"
"POT-Creation-Date: 2016-12-17 12:12+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,23 +17,27 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: manjaro-hello.glade:7
#: src/manjaro-hello.py:187
msgid "Can't load page."
msgstr ""
#: ui/manjaro-hello.glade:7
msgid "About"
msgstr ""
#: manjaro-hello.glade:12
#: ui/manjaro-hello.glade:12
msgid "Welcome screen for Manjaro"
msgstr ""
#: manjaro-hello.glade:14
#: ui/manjaro-hello.glade:14
msgid "Github"
msgstr ""
#: manjaro-hello.glade:94
#: ui/manjaro-hello.glade:95
msgid "Welcome to Manjaro!"
msgstr ""
#: manjaro-hello.glade:111
#: ui/manjaro-hello.glade:112
msgid ""
"Thank you for joining our community!\n"
"\n"
@ -43,78 +47,74 @@ msgid ""
"your feedback."
msgstr ""
#: manjaro-hello.glade:128
#: ui/manjaro-hello.glade:129
msgid "DOCUMENTATION"
msgstr ""
#: manjaro-hello.glade:142
#: ui/manjaro-hello.glade:143
msgid "SUPPORT"
msgstr ""
#: manjaro-hello.glade:156
#: ui/manjaro-hello.glade:157
msgid "PROJECT"
msgstr ""
#: manjaro-hello.glade:168 manjaro-hello.glade:528
#: ui/manjaro-hello.glade:169
msgid "Read me"
msgstr ""
#: manjaro-hello.glade:182 manjaro-hello.glade:568
#: ui/manjaro-hello.glade:183
msgid "Release info"
msgstr ""
#: manjaro-hello.glade:196
#: ui/manjaro-hello.glade:197
msgid "Wiki"
msgstr ""
#: manjaro-hello.glade:210 manjaro-hello.glade:629
#: ui/manjaro-hello.glade:211
msgid "Get involved"
msgstr ""
#: manjaro-hello.glade:224
#: ui/manjaro-hello.glade:225
msgid "Forums"
msgstr ""
#: manjaro-hello.glade:238
#: ui/manjaro-hello.glade:239
msgid "Chat room"
msgstr ""
#: manjaro-hello.glade:252
#: ui/manjaro-hello.glade:253
msgid "Mailling lists"
msgstr ""
#: manjaro-hello.glade:266
#: ui/manjaro-hello.glade:267
msgid "Build Manjaro"
msgstr ""
#: manjaro-hello.glade:280
#: ui/manjaro-hello.glade:281
msgid "Donate"
msgstr ""
#: manjaro-hello.glade:392
#: ui/manjaro-hello.glade:393
msgid "Launch at start"
msgstr ""
#: manjaro-hello.glade:429
#: ui/manjaro-hello.glade:430
msgid "Use Calamares (Graphic method)"
msgstr ""
#: manjaro-hello.glade:443
#: ui/manjaro-hello.glade:444
msgid "Use CLI-Installer (Command line)"
msgstr ""
#: manjaro-hello.glade:465
#: ui/manjaro-hello.glade:466
msgid "INSTALLATION"
msgstr ""
#: manjaro-hello.glade:484
#: ui/manjaro-hello.glade:485
msgid "Welcome"
msgstr ""
#: manjaro-hello.glade:584
#: ui/manjaro-hello.glade:508
msgid "Documentation"
msgstr ""
#: manjaro-hello.glade:650
msgid "Project"
msgstr ""

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-12-16 22:13+0100\n"
"PO-Revision-Date: 2016-12-16 22:13+0100\n"
"POT-Creation-Date: 2016-12-17 12:12+0100\n"
"PO-Revision-Date: 2016-12-17 12:12+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr_FR\n"
@ -18,23 +18,27 @@ msgstr ""
"X-Generator: Poedit 1.8.11\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: manjaro-hello.glade:7
#: src/manjaro-hello.py:187
msgid "Can't load page."
msgstr "Impossible de charger la page."
#: ui/manjaro-hello.glade:7
msgid "About"
msgstr "À propos"
#: manjaro-hello.glade:12
#: ui/manjaro-hello.glade:12
msgid "Welcome screen for Manjaro"
msgstr "Écran de bienvenue pour Manjaro"
#: manjaro-hello.glade:14
#: ui/manjaro-hello.glade:14
msgid "Github"
msgstr "Github"
#: manjaro-hello.glade:94
#: ui/manjaro-hello.glade:95
msgid "Welcome to Manjaro!"
msgstr "Bienvenue sur Manjaro !"
#: manjaro-hello.glade:111
#: ui/manjaro-hello.glade:112
msgid ""
"Thank you for joining our community!\n"
"\n"
@ -51,81 +55,80 @@ msgstr ""
"Alors profitez de l'expérience, et n'hésitez pas à nous faire part de vos "
"commentaires."
#: manjaro-hello.glade:128
#: ui/manjaro-hello.glade:129
msgid "DOCUMENTATION"
msgstr "DOCUMENTATION"
#: manjaro-hello.glade:142
#: ui/manjaro-hello.glade:143
msgid "SUPPORT"
msgstr "SUPPORT"
#: manjaro-hello.glade:156
#: ui/manjaro-hello.glade:157
msgid "PROJECT"
msgstr "PROJET"
#: manjaro-hello.glade:168 manjaro-hello.glade:528
#: ui/manjaro-hello.glade:169
msgid "Read me"
msgstr "Lisez moi"
#: manjaro-hello.glade:182 manjaro-hello.glade:568
#: ui/manjaro-hello.glade:183
msgid "Release info"
msgstr "Informations de version"
#: manjaro-hello.glade:196
#: ui/manjaro-hello.glade:197
msgid "Wiki"
msgstr "Wiki"
#: manjaro-hello.glade:210 manjaro-hello.glade:629
#: ui/manjaro-hello.glade:211
msgid "Get involved"
msgstr "S'investir"
#: manjaro-hello.glade:224
#: ui/manjaro-hello.glade:225
msgid "Forums"
msgstr "Forums"
#: manjaro-hello.glade:238
#: ui/manjaro-hello.glade:239
msgid "Chat room"
msgstr "Salon de chat"
#: manjaro-hello.glade:252
#: ui/manjaro-hello.glade:253
msgid "Mailling lists"
msgstr "Listes de diffusion"
#: manjaro-hello.glade:266
#: ui/manjaro-hello.glade:267
msgid "Build Manjaro"
msgstr "Construire Manjaro"
#: manjaro-hello.glade:280
#: ui/manjaro-hello.glade:281
msgid "Donate"
msgstr "Faire un don"
#: manjaro-hello.glade:392
#: ui/manjaro-hello.glade:393
msgid "Launch at start"
msgstr "Lancer au démarrage"
#: manjaro-hello.glade:429
#: ui/manjaro-hello.glade:430
msgid "Use Calamares (Graphic method)"
msgstr "Utiliser Calamares (Méthode graphique)"
#: manjaro-hello.glade:443
#: ui/manjaro-hello.glade:444
msgid "Use CLI-Installer (Command line)"
msgstr "Utiliser CLI-Installer (Ligne de commande)"
#: manjaro-hello.glade:465
#: ui/manjaro-hello.glade:466
msgid "INSTALLATION"
msgstr "INSTALLATION"
#: manjaro-hello.glade:484
#: ui/manjaro-hello.glade:485
msgid "Welcome"
msgstr "Bienvenue"
#: manjaro-hello.glade:584
#: ui/manjaro-hello.glade:508
msgid "Documentation"
msgstr "Documentation"
#: manjaro-hello.glade:650
msgid "Project"
msgstr "Projet"
#~ msgid "Project"
#~ msgstr "Projet"
#~ msgid "English (United States)"
#~ msgstr "Anglais (États-Unis)"

View File

@ -184,7 +184,7 @@ class ManjaroHello():
with open(filename, "r") as f:
return f.read()
except OSError as e:
return "Can't load page."
return _("Can't load page.")
# Handlers
def on_languages_changed(self, combobox):

View File

@ -529,7 +529,6 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</object>
<packing>
<property name="name">page2</property>
<property name="title" translatable="yes">page2</property>
<property name="position">2</property>
</packing>
</child>
@ -553,7 +552,6 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</object>
<packing>
<property name="name">page3</property>
<property name="title" translatable="yes">page3</property>
<property name="position">3</property>
</packing>
</child>