Make error translatable

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

View File

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

View File

@ -184,7 +184,7 @@ class ManjaroHello():
with open(filename, "r") as f: with open(filename, "r") as f:
return f.read() return f.read()
except OSError as e: except OSError as e:
return "Can't load page." return _("Can't load page.")
# Handlers # Handlers
def on_languages_changed(self, combobox): 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> </object>
<packing> <packing>
<property name="name">page2</property> <property name="name">page2</property>
<property name="title" translatable="yes">page2</property>
<property name="position">2</property> <property name="position">2</property>
</packing> </packing>
</child> </child>
@ -553,7 +552,6 @@ We, the Manjaro Developers, hope that you will enjoy using Manjaro as much as we
</object> </object>
<packing> <packing>
<property name="name">page3</property> <property name="name">page3</property>
<property name="title" translatable="yes">page3</property>
<property name="position">3</property> <property name="position">3</property>
</packing> </packing>
</child> </child>