1
0
mirror of https://github.com/lise-henry/crowbook synced 2024-09-28 02:59:45 +02:00

Add lformat! to bookoption(s).rs

This commit is contained in:
Elisabeth Henry 2016-10-09 20:32:57 +02:00
parent 7c14e18250
commit 26dde64ae4
3 changed files with 289 additions and 248 deletions

View File

@ -7,92 +7,20 @@
msgid ""
msgstr "Content-Type: text/plain; charset=UTF-8\n"
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:134
msgid "A list of additional files is only valid with the --create option."
msgstr ""
"Une liste de fichiers additionnels n'est valide qu'avec l'option --create."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:587
msgid "Successfully generated LaTeX file: {}"
msgstr "Fichier LaTeX généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:169
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:913
msgid ""
"LaTeX: can't find a tex equivalent for lang '{}', fallbacking on english"
"... but it didn't parse correctly as YAML('{}'), so treating it like "
"Markdown."
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:552
msgid "Successfully generated HTML"
msgstr "HTML généré avec succès"
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:96
msgid "no output pdf file specified '{}' in book config"
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:122
msgid "couldn't interpret LANG: {}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:64
msgid "odt.render_book called while book.output_odt is not set"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:538
msgid "Successfully generated ODT file: {}"
msgstr "Fichier ODT généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:160
msgid "ODT: tables are not currently implemented for this format"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:76
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:83
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:90
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:97
msgid "Could not create file '{}'"
msgstr "Impossible de créer le fichier '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:843
msgid ""
"could not render `{}` for metadata:\n"
"{}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:476
msgid "Successfully generated PDF file: {}"
msgstr "Fichier PDF généré avec succès: {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:659
msgid ""
"Warning: book contains chapter '{}' in a directory above the book file, this "
"might cause problems"
msgstr ""
"Avertissement: le livre contient un chapitre '{}' dans un répertoire au-"
"dessus du fichier du livre, cela risque de causer des problèmes"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:119
msgid "Error initializing book: could not set {} to {}: {}"
msgstr ""
"Erreur à l'initialisation du livre: impossible de positionner {} à {} : {}"
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:66
msgid ""
"No output file specified, and book doesn't specify an output file for {}"
msgstr ""
"Pas de fichier de sortie spécifié, et le livre n'en spécifie pas pour {}"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:156
msgid "ODT: images not currently implemented for this format"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:755
msgid "invalid template '{}'"
msgstr "template invalile '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:348
msgid "ill-formatted line specifying chapter number"
msgstr "line spécifiant un numéro de chapitre mal formattée"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:164
msgid "ODT: footnotes are not yet implemented in this format, ignoring {:?}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:156
msgid ""
"You must pass the file of a book configuration file.\n"
@ -107,89 +35,33 @@ msgstr ""
"\n"
"Pour plus d'informations, essayez --help."
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:46
msgid "Error in setting key {}: {}"
msgstr "Erreur en initialisant la clé {}: {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:659
msgid ""
"Warning: book contains chapter '{}' in a directory above the book file, this "
"might cause problems"
msgstr ""
"Avertissement: le livre contient un chapitre '{}' dans un répertoire au-"
"dessus du fichier du livre, cela risque de causer des problèmes"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:615
#, fuzzy
msgid "Successfully generated LaTeX file {}"
msgstr "Fichier LaTeX généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:527
msgid "Successfully generated PDF file for proofreading: {}"
msgstr "Fichier PDF pour la relecture généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:897
msgid "Inline YAML block replaced {:?} previously set to {:?} to {:?}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:496
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:512
msgid "Successfully generated HTML directory: {}"
msgstr "Répertoire HTML généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:602
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:19
msgid ""
"this version of Crowbook has been compiled without support for proofreading, "
"not generating LaTeX file {}"
"An odd number of arguments was passed to --set, but it takes a list of key "
"value pairs."
msgstr ""
"cette version de Crowbook a été compilée sans le support de la relecture, le "
"fichier LaTeX {} ne sera pas généré"
"Un nombre impair d'arguments a été donné à --set, alors qu'il prend une "
"liste de paires clé-valeur."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:203
msgid "YAML block was not valid Yaml: {}"
msgstr "Le bloc YAML n'était pas valide : {}"
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:147
msgid "{} is not a valid template name."
msgstr "{} n'est pas un nom de template valide."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:632
msgid "Parsing chapter: {}..."
msgstr "Analyse du chapitre: {}..."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:574
#, fuzzy
msgid "Successfully generated HTML file {}"
msgstr "Fichier HTML généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:900
msgid "Inline YAML block set {:?} to {:?}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:404
msgid "Error rendering {}: {}"
msgstr "Erreur dans le rendu de {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:505
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:520
msgid ""
"this version of Crowbook has been compiled without support for proofreading, "
"not generating {}"
msgstr ""
"cette version de Crowbook a été compilée sans le support pour la relecture, "
"{} ne sera pas généré"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:645
msgid "file {} contains invalid UTF-8"
msgstr "le fichier {} contient de l'UTF-8 invalide"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:764
msgid "file '{}' could not be read"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:422
msgid "could not create file '{}'"
msgstr "impossible de créer le fichier '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:240
msgid "no chapter name specified"
msgstr "pas de nom de chapitre spécifié"
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:58
msgid "Could not create file {}: it already exists!"
msgstr "Impossible de créer le fichier {} : il existe déjà !"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:103
msgid "generated content.xml was not utf-8 valid"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:88
msgid "Created {}, now you'll have to complete it!"
msgstr "{} a été crée, maintenant vous n'avez plus qu'à le compléter !"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:565
msgid ""
@ -199,28 +71,104 @@ msgstr ""
"cette version de Crowbook n'a pas été compilée avec le support de la "
"relecture, le fichier HTML {} ne sera pas généré"
#: /home/lise/Progs/rust/crowbook/src/lib/html_dir.rs:110
msgid "image or cover"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:76
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:83
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:90
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:97
msgid "Could not create file '{}'"
msgstr "Impossible de créer le fichier '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:119
msgid "Error initializing book: could not set {} to {}: {}"
msgstr ""
"Erreur à l'initialisation du livre: impossible de positionner {} à {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:755
msgid "invalid template '{}'"
msgstr "template invalile '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:538
msgid "Successfully generated ODT file: {}"
msgstr "Fichier ODT généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:690
msgid "Error running grammar check on {}: {}"
msgstr "Erreur dans la véfirication grammaticale de {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:348
msgid "ill-formatted line specifying chapter number"
msgstr "line spécifiant un numéro de chapitre mal formattée"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:237
msgid "chapter filenames must not contain whitespace"
msgstr "les noms de fichier des chapitres ne doivent pas contenir d'espace"
#: /home/lise/Progs/rust/crowbook/src/lib/html.rs:396
msgid "empty str token, could not find initial"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:645
msgid "file {} contains invalid UTF-8"
msgstr "le fichier {} contient de l'UTF-8 invalide"
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:134
msgid "A list of additional files is only valid with the --create option."
msgstr ""
"Une liste de fichiers additionnels n'est valide qu'avec l'option --create."
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:164
msgid "ODT: footnotes are not yet implemented in this format, ignoring {:?}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:163
msgid ""
"could not parse {} as a book file.\n"
"Maybe you meant to run crowbook with the --single argument?"
msgstr ""
"impossible d'analyser {} comme un ficher de livre.\n"
"Peut-être que vous vouliez lancer crowbook avec l'argument --single ?"
#: /home/lise/Progs/rust/crowbook/src/lib/html.rs:607
msgid ""
"rendering 'html.header' template:\n"
"{}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:215
msgid "YAML part of the book is not a valid hashmap"
msgstr "La partie YAML du livre n'est pas une hashmap valide"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:143
msgid ""
"ODT: ordered list not currently implemented for this format, fallbacking to "
"unordered one"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:150
msgid "ODT: blockquotes and codeblocks are not currently implemented for ODT"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:688
msgid "Trying to run grammar check on {}, this might take a while..."
msgstr ""
"On essaie de vérifier la grammaire de {}, cela peut prendre un moment..."
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:156
msgid "ODT: images not currently implemented for this format"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:237
msgid "chapter filenames must not contain whitespace"
msgstr "les noms de fichier des chapitres ne doivent pas contenir d'espace"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:585
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:614
msgid "problem when writing to LaTeX file: {}"
msgstr "problème en écrivant dans le fichier LaTeX : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:347
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:359
msgid "LaTeX ({}): image '{}' doesn't seem to be local; ignoring it."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:900
msgid "Inline YAML block set {:?} to {:?}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:383
msgid "{}. Proceeding without checking grammar."
msgstr "{}. On poursuit sans vérifier la grammaire."
#: /home/lise/Progs/rust/crowbook/src/lib/html_dir.rs:78
msgid "{} already exists, deleting it"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:550
msgid "Successfully generated HTML file: {}"
@ -232,9 +180,128 @@ msgid ""
"{}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:88
msgid "Created {}, now you'll have to complete it!"
msgstr "{} a été crée, maintenant vous n'avez plus qu'à le compléter !"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:404
msgid "Error rendering {}: {}"
msgstr "Erreur dans le rendu de {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:203
msgid "YAML block was not valid Yaml: {}"
msgstr "Le bloc YAML n'était pas valide : {}"
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:147
msgid "{} is not a valid template name."
msgstr "{} n'est pas un nom de template valide."
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:85
msgid "Parts are not supported yet"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:58
msgid "Could not create file {}: it already exists!"
msgstr "Impossible de créer le fichier {} : il existe déjà !"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:160
msgid "ODT: tables are not currently implemented for this format"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:632
msgid "Parsing chapter: {}..."
msgstr "Analyse du chapitre: {}..."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:907
msgid ""
"Ignoring YAML block:\n"
"---\n"
"{}---"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:589
msgid "Successfully generated LaTeX"
msgstr "LaTeX généré avec succès"
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:150
msgid "ODT: blockquotes and codeblocks are not currently implemented for ODT"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:552
msgid "Successfully generated HTML"
msgstr "HTML généré avec succès"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:602
msgid ""
"this version of Crowbook has been compiled without support for proofreading, "
"not generating LaTeX file {}"
msgstr ""
"cette version de Crowbook a été compilée sans le support de la relecture, le "
"fichier LaTeX {} ne sera pas généré"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:476
msgid "Successfully generated PDF file: {}"
msgstr "Fichier PDF généré avec succès: {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:240
msgid "no chapter name specified"
msgstr "pas de nom de chapitre spécifié"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:496
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:512
msgid "Successfully generated HTML directory: {}"
msgstr "Répertoire HTML généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:169
msgid ""
"LaTeX: can't find a tex equivalent for lang '{}', fallbacking on english"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:46
msgid "Error in setting key {}: {}"
msgstr "Erreur en initialisant la clé {}: {}"
#: /home/lise/Progs/rust/crowbook/src/lib/html.rs:116
#, fuzzy
msgid "could not create caribon parser: {}"
msgstr "impossible de créer le fichier '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/html.rs:583
msgid ""
"rendering 'html.footer' template:\n"
"{}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:419
msgid "rendering {}:{}"
msgstr "dans le rendu de {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:764
msgid "file '{}' could not be read"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:66
msgid ""
"No output file specified, and book doesn't specify an output file for {}"
msgstr ""
"Pas de fichier de sortie spécifié, et le livre n'en spécifie pas pour {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:383
msgid "{}. Proceeding without checking grammar."
msgstr "{}. On poursuit sans vérifier la grammaire."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:505
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:520
msgid ""
"this version of Crowbook has been compiled without support for proofreading, "
"not generating {}"
msgstr ""
"cette version de Crowbook a été compilée sans le support pour la relecture, "
"{} ne sera pas généré"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:422
msgid "could not create file '{}'"
msgstr "impossible de créer le fichier '{}'"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:587
msgid "Successfully generated LaTeX file: {}"
msgstr "Fichier LaTeX généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:548
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:573
@ -247,81 +314,55 @@ msgstr "problème en écrivant dans le fichier LaTeX : {}"
msgid "error while reading image file: {}"
msgstr "problème en écrivant dans le fichier LaTeX : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:215
msgid "YAML part of the book is not a valid hashmap"
msgstr "La partie YAML du livre n'est pas une hashmap valide"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:574
#, fuzzy
msgid "Successfully generated HTML file {}"
msgstr "Fichier HTML généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/bin/real_main.rs:122
msgid "couldn't interpret LANG: {}"
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:96
msgid "no output pdf file specified '{}' in book config"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:688
msgid "Trying to run grammar check on {}, this might take a while..."
msgstr ""
"On essaie de vérifier la grammaire de {}, cela peut prendre un moment..."
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:585
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:614
msgid "problem when writing to LaTeX file: {}"
msgstr "problème en écrivant dans le fichier LaTeX : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:913
msgid ""
"... but it didn't parse correctly as YAML('{}'), so treating it like "
"Markdown."
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:103
msgid "generated content.xml was not utf-8 valid"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:527
msgid "Successfully generated PDF file for proofreading: {}"
msgstr "Fichier PDF pour la relecture généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:615
#, fuzzy
msgid "Successfully generated LaTeX file {}"
msgstr "Fichier LaTeX généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:419
msgid "rendering {}:{}"
msgstr "dans le rendu de {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:163
msgid ""
"could not parse {} as a book file.\n"
"Maybe you meant to run crowbook with the --single argument?"
#: /home/lise/Progs/rust/crowbook/src/lib/html_dir.rs:228
msgid "cover"
msgstr ""
"impossible d'analyser {} comme un ficher de livre.\n"
"Peut-être que vous vouliez lancer crowbook avec l'argument --single ?"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:487
msgid "Successfully generated EPUB file: {}"
msgstr "Fichier EPUB généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:347
#: /home/lise/Progs/rust/crowbook/src/lib/latex.rs:359
msgid "LaTeX ({}): image '{}' doesn't seem to be local; ignoring it."
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/html_dir.rs:127
msgid "additional resource from resources.files"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:356
msgid "found invalid chapter definition in the chapter list"
msgstr "définition de chapitre invalide trouvée dans la liste des chapitres"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:690
msgid "Error running grammar check on {}: {}"
msgstr "Erreur dans la véfirication grammaticale de {} : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:487
msgid "Successfully generated EPUB file: {}"
msgstr "Fichier EPUB généré avec succès : {}"
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:907
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:843
msgid ""
"Ignoring YAML block:\n"
"---\n"
"{}---"
"could not render `{}` for metadata:\n"
"{}"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/odt.rs:85
msgid "Parts are not supported yet"
#: /home/lise/Progs/rust/crowbook/src/lib/html_dir.rs:76
msgid "{} already exists and is not a directory"
msgstr ""
#: /home/lise/Progs/rust/crowbook/src/lib/book.rs:589
msgid "Successfully generated LaTeX"
msgstr "LaTeX généré avec succès"
#: /home/lise/Progs/rust/crowbook/src/bin/helpers.rs:19
msgid ""
"An odd number of arguments was passed to --set, but it takes a list of key "
"value pairs."
msgstr ""
"Un nombre impair d'arguments a été donné à --set, alors qu'il prend une "
"liste de paires clé-valeur."
#, fuzzy
#~ msgid "Inline YAML block could not set {:?} to {:?}: {}"
#~ msgstr ""

View File

@ -48,7 +48,7 @@ impl BookOption {
pub fn as_str(&self) -> Result<&str> {
match *self {
BookOption::String(ref s) => Ok(s),
_ => Err(Error::book_option(Source::empty(), format!("{:?} is not a string", self)))
_ => Err(Error::book_option(Source::empty(), lformat!("{:?} is not a string", self)))
}
}
@ -56,7 +56,7 @@ impl BookOption {
pub fn as_path(&self) -> Result<&str> {
match *self {
BookOption::Path(ref s) => Ok(s),
_ => Err(Error::book_option(Source::empty(), format!("{:?} is not a path", self)))
_ => Err(Error::book_option(Source::empty(), lformat!("{:?} is not a path", self)))
}
}
@ -64,7 +64,7 @@ impl BookOption {
pub fn as_bool(&self) -> Result<bool> {
match *self {
BookOption::Bool(b) => Ok(b),
_ => Err(Error::book_option(Source::empty(), format!("{:?} is not a bool", self)))
_ => Err(Error::book_option(Source::empty(), lformat!("{:?} is not a bool", self)))
}
}
@ -72,7 +72,7 @@ impl BookOption {
pub fn as_char(&self) -> Result<char> {
match *self {
BookOption::Char(c) => Ok(c),
_ => Err(Error::book_option(Source::empty(), format!("{:?} is not a char", self)))
_ => Err(Error::book_option(Source::empty(), lformat!("{:?} is not a char", self)))
}
}
@ -80,7 +80,7 @@ impl BookOption {
pub fn as_i32(&self) -> Result<i32> {
match *self {
BookOption::Int(i) => Ok(i),
_ => Err(Error::book_option(Source::empty(), format!("{:?} is not an i32", self)))
_ => Err(Error::book_option(Source::empty(), lformat!("{:?} is not an i32", self)))
}
}
@ -89,7 +89,7 @@ impl BookOption {
pub fn as_f32(&self) -> Result<f32> {
match *self {
BookOption::Float(f) => Ok(f),
_ => Err(Error::book_option(Source::empty(), format!("{:?} is not a f32", self)))
_ => Err(Error::book_option(Source::empty(), lformat!("{:?} is not a f32", self)))
}
}
}

View File

@ -88,7 +88,7 @@ impl BookOptions {
options.deprecated.insert(key.to_owned(), default_value.map(|s| s.to_owned()));
continue;
}
_ => panic!(format!("Ill-formatted OPTIONS string: unrecognized type '{}'", option_type.unwrap())),
_ => panic!(lformat!("Ill-formatted OPTIONS string: unrecognized type '{}'", option_type.unwrap())),
}
if key == "crowbook.temp_dir" {
// "temp_dir" has a special default value that depends on the environment
@ -122,7 +122,7 @@ impl BookOptions {
key
} else {
return Err(Error::book_option(&self.source,
format!("Expected a String as a key, found {:?}", key)));
lformat!("Expected a String as a key, found {:?}", key)));
};
if self.valid_strings.contains(&key.as_ref()) {
@ -131,7 +131,7 @@ impl BookOptions {
Ok(self.options.insert(key, BookOption::String(value)))
} else {
Err(Error::book_option(&self.source,
format!("Expected a string as value for key {}, found {:?}", &key, &value)))
lformat!("Expected a string as value for key {}, found {:?}", &key, &value)))
}
} else if self.valid_paths.contains(&key.as_ref()) {
// value is a path
@ -141,7 +141,7 @@ impl BookOptions {
let book = try!(Book::new_from_file(try!(self.root.join(&value)
.to_str()
.ok_or(Error::book_option(&self.source,
format!("'{}''s path contains invalid UTF-8 code", &value)))),
lformat!("'{}''s path contains invalid UTF-8 code", &value)))),
InfoLevel::Info, &[]));
try!(self.merge(book.options));
Ok(None)
@ -150,7 +150,7 @@ impl BookOptions {
}
} else {
Err(Error::book_option(&self.source,
format!("expected a string as value for key '{}', found {:?}", &key, &value)))
lformat!("expected a string as value for key '{}', found {:?}", &key, &value)))
}
} else if self.valid_chars.contains(&key.as_ref()) {
// value is a char
@ -158,12 +158,12 @@ impl BookOptions {
let chars: Vec<_> = value.chars().collect();
if chars.len() != 1 {
return Err(Error::book_option(&self.source,
format!("could not parse '{}' as a char: does not contain exactly one char", &value)));
lformat!("could not parse '{}' as a char: does not contain exactly one char", &value)));
}
Ok(self.options.insert(key.to_owned(), BookOption::Char(chars[0])))
} else {
Err(Error::book_option(&self.source,
format!("expected a string as value containing a char for key '{}', found {:?}", &key, &value)))
lformat!("expected a string as value containing a char for key '{}', found {:?}", &key, &value)))
}
} else if self.valid_bools.contains(&key.as_ref()) {
// value is a bool
@ -171,7 +171,7 @@ impl BookOptions {
Ok(self.options.insert(key, BookOption::Bool(value)))
} else {
Err(Error::book_option(&self.source,
format!("expected a boolean as value for key '{}', found {:?}", &key, &value)))
lformat!("expected a boolean as value for key '{}', found {:?}", &key, &value)))
}
} else if self.valid_ints.contains(&key.as_ref()) {
// value is an int
@ -179,7 +179,7 @@ impl BookOptions {
Ok(self.options.insert(key, BookOption::Int(value as i32)))
} else {
Err(Error::book_option(&self.source,
format!("expected an integer as value for key '{}', found {:?}", &key, &value)))
lformat!("expected an integer as value for key '{}', found {:?}", &key, &value)))
}
} else if self.valid_floats.contains(&key.as_ref()) {
// value is a float
@ -187,20 +187,20 @@ impl BookOptions {
match value.parse::<f32>() {
Ok(value) => Ok(self.options.insert(key, BookOption::Float(value))),
Err(_) => Err(Error::book_option(&self.source,
format!("could not parse '{}' as a float for key '{}'", &value, &key)))
lformat!("could not parse '{}' as a float for key '{}'", &value, &key)))
}
} else {
Err(Error::book_option(&self.source,
format!("expected a float as value for key '{}', found {:?}", &key, &value)))
lformat!("expected a float as value for key '{}', found {:?}", &key, &value)))
}
} else if self.deprecated.contains_key(&key) {
let opt = self.deprecated.get(&key).unwrap().clone();
if let Some(new_key) = opt {
Logger::display_warning(format!("'{}' has been deprecated, you should now use '{}'", &key, &new_key));
Logger::display_warning(lformat!("'{}' has been deprecated, you should now use '{}'", &key, &new_key));
self.set_yaml(Yaml::String(new_key), value)
} else {
Err(Error::book_option(self.source.clone(),
format!("key '{}' has been deprecated.", &key)))
lformat!("key '{}' has been deprecated.", &key)))
}
} else if key.starts_with("metadata.") {
// key is a custom metadata
@ -210,12 +210,12 @@ impl BookOptions {
Ok(self.options.insert(key, BookOption::String(value)))
} else {
Err(Error::book_option(&self.source,
format!("expected a string as value for key '{}', found {:?}", &key, &value)))
lformat!("expected a string as value for key '{}', found {:?}", &key, &value)))
}
} else {
// key not recognized
Err(Error::book_option(self.source.clone(),
format!("unrecognized key '{}'", &key)))
lformat!("unrecognized key '{}'", &key)))
}
}
@ -251,11 +251,11 @@ impl BookOptions {
self.set_yaml(Yaml::String(key.to_owned()), yaml_value)
} else {
Err(Error::book_option(&self.source,
format!("value '{}' for key '{}' does not contain one and only one YAML value", value, key)))
lformat!("value '{}' for key '{}' does not contain one and only one YAML value", value, key)))
}
} else {
Err(Error::book_option(&self.source,
format!("could not parse '{}' as a valid YAML value", value)))
lformat!("could not parse '{}' as a valid YAML value", value)))
}
}
@ -269,7 +269,7 @@ impl BookOptions {
#[doc(hidden)]
pub fn get(&self, key: &str) -> Result<&BookOption> {
self.options.get(key).ok_or_else(|| Error::invalid_option(&self.source,
format!("option '{}' is not present", key)))
lformat!("option '{}' is not present", key)))
}
/// Gets a list of path. Only used for resources.files.
@ -277,7 +277,7 @@ impl BookOptions {
pub fn get_paths_list(&self, key: &str) -> Result<Vec<String>> {
if key != "resources.files" {
return Err(Error::book_option(&self.source,
format!("can't get '{}' as a list of files, only valid if key is resources.files", key)));
lformat!("can't get '{}' as a list of files, only valid if key is resources.files", key)));
}
let list = try!(try!(self.get(key))
@ -359,7 +359,7 @@ impl BookOptions {
Ok(path.to_owned())
} else {
Err(Error::book_option(&self.source,
format!("'{}''s path contains invalid UTF-8 code", key)))
lformat!("'{}''s path contains invalid UTF-8 code", key)))
}
}
@ -434,7 +434,7 @@ impl BookOptions {
path.to_owned()
} else {
return Err(Error::book_option(Source::new(other.root.to_str().unwrap()),
format!("'{}''s path contains invalid UTF-8 code", key)));
lformat!("'{}''s path contains invalid UTF-8 code", key)));
};
self.options.insert(key.clone(), BookOption::Path(new_path));
} else {