plint

French poetry validator
git clone https://a3nm.net/git/plint/
Log | Files | Refs | README

commit a99fb86f23f1bfc499c1949bbfb9d4d4e53db70a
parent ccdc213afcf8d5eccac873c41f9be745d9565fb4
Author: Antoine Amarilli <a3nm@a3nm.net>
Date:   Sun, 15 Jul 2012 15:32:19 +0200

fix localization problem

Diffstat:
error.py | 8++++----
res/messages_fr.po | 25+++++++++++++++----------
2 files changed, 19 insertions(+), 14 deletions(-)

diff --git a/error.py b/error.py @@ -70,7 +70,7 @@ class ErrorBadRhyme(Error): # TODO don't indicate more than the minimal required rhyme (in length and # present of a vowel phoneme) return Error.report(self, - _("Bad rhyme %s for type %s (expected %s, inferred \"%s\")") + _("%s for type %s (expected %s, inferred \"%s\")") % (self.kind, self.get_id(), self.fmt(self.expected), self.fmt(self.inferred)), short) @@ -86,7 +86,7 @@ class ErrorBadRhymeGenre(ErrorBadRhyme): @property def kind(self): - return _("genre") + return _("Bad rhyme genre") class ErrorBadRhymeSound(ErrorBadRhyme): def fmt(self, l): @@ -101,12 +101,12 @@ class ErrorBadRhymeSound(ErrorBadRhyme): return self.pattern.myid def report(self, short=False): - return Error.report(self, _("Bad rhyme %s for type %s (expected %s)") + return Error.report(self, _("%s for type %s (expected %s)") % (self.kind, self.pattern.myid, self.fmt(self.expected)), short) @property def kind(self): - return _("value") + return _("Bad rhyme") class ErrorBadMetric(Error): def __init__(self, possible): diff --git a/res/messages_fr.po b/res/messages_fr.po @@ -5,8 +5,8 @@ msgid "" msgstr "" "Project-Id-Version: plint\n" -"POT-Creation-Date: 2012-07-15 15:24+CEST\n" -"PO-Revision-Date: 2012-07-15 15:24+0100\n" +"POT-Creation-Date: 2012-07-15 15:31+CEST\n" +"PO-Revision-Date: 2012-07-15 15:32+0100\n" "Last-Translator: Antoine Amarilli <a3nm@a3nm.net>\n" "Language-Team: \n" "Language: \n" @@ -36,28 +36,28 @@ msgid "Illegal hiatus: %s" msgstr "Hiatus interdit : %s" #: error.py:73 -msgid "Bad rhyme %s for type %s (expected %s, inferred \"%s\")" -msgstr "Mauvaise %s de rime pour le type %s (attendu : %s, lu : \"%s\")" +msgid "%s for type %s (expected %s, inferred \"%s\")" +msgstr "%s pour le type %s (attendu : %s, lu : \"%s\")" #: error.py:79 msgid " or " msgstr " ou " #: error.py:89 -msgid "genre" -msgstr "genre" +msgid "Bad rhyme genre" +msgstr "Mauvais genre de rime" #: error.py:98 msgid " (ending: \"" msgstr " (fin : \"" #: error.py:104 -msgid "Bad rhyme %s for type %s (expected %s)" -msgstr "Mauvaise %s de rime pour le type %s (attendu : %s)" +msgid "%s for type %s (expected %s)" +msgstr "%s pour le type %s (attendu : %s)" #: error.py:109 -msgid "value" -msgstr "valeur" +msgid "Bad rhyme" +msgstr "Mauvaise rime" #: error.py:179 msgid "Bad metric (expected %s, inferred %d illegal option%s)" @@ -79,3 +79,8 @@ msgstr "Usage : %s MODÈLE [OCONTEXTE]" msgid "Check stdin according to TEMPLATE, report errors on stdout" msgstr "Vérifie l'entrée standard suivant MODÈLE, signale les erreurs sur la sortie standard" +#~ msgid "genre" +#~ msgstr "genre" + +#~ msgid "value" +#~ msgstr "valeur"