1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Translated to French

This commit is contained in:
Laurent Cozic 2017-07-18 18:49:47 +00:00
parent 0a560a79a7
commit 6c75345435
21 changed files with 218 additions and 310 deletions

View File

@ -195,7 +195,23 @@ class Application {
return output.join(' ');
}
onLocaleChanged() {
let currentCommands = this.vorpal().commands;
for (let i = 0; i < currentCommands.length; i++) {
let cmd = currentCommands[i];
if (cmd._name == 'help') {
cmd.description(_('Provides help for a given command.'));
} else if (cmd._name == 'exit') {
cmd.description(_('Exits the application.'));
} else if (cmd.__commandObject) {
cmd.description(cmd.__commandObject.description());
}
}
}
loadCommands_() {
this.onLocaleChanged(); // Ensures that help and exit commands are translated
fs.readdirSync(__dirname).forEach((path) => {
if (path.indexOf('command-') !== 0) return;
const ext = fileExtension(path)
@ -204,6 +220,7 @@ class Application {
let CommandClass = require('./' + path);
let cmd = new CommandClass();
let vorpalCmd = this.vorpal().command(cmd.usage(), cmd.description());
vorpalCmd.__commandObject = cmd;
// TODO: maybe remove if the PR is not merged
if ('disableTypeCasting' in vorpalCmd) vorpalCmd.disableTypeCasting();
@ -222,8 +239,6 @@ class Application {
if (cmd.autocomplete()) vorpalCmd.autocomplete(cmd.autocomplete());
let actionFn = async function(args, end) {
setLocale(Setting.value('locale'));
try {
const fn = cmd.action.bind(this);
await fn(args);
@ -294,8 +309,6 @@ class Application {
this.vorpal_ = require('vorpal')();
vorpalUtils.initialize(this.vorpal());
this.loadCommands_();
let argv = process.argv;
let startFlags = await this.handleStartFlags_(argv);
argv = startFlags.argv;
@ -338,6 +351,8 @@ class Application {
setLocale(Setting.value('locale'));
this.loadCommands_();
let currentFolderId = Setting.value('activeFolderId');
this.currentFolder_ = null;
if (currentFolderId) this.currentFolder_ = await Folder.load(currentFolderId);

View File

@ -9,7 +9,7 @@ import { autocompleteItems } from './autocomplete.js';
class Command extends BaseCommand {
usage() {
return _('cat <title>');
return 'cat <title>';
}
description() {

View File

@ -1,11 +1,12 @@
import { BaseCommand } from './base-command.js';
import { _ } from 'lib/locale.js';
import { _, setLocale } from 'lib/locale.js';
import { app } from './app.js';
import { Setting } from 'lib/models/setting.js';
class Command extends BaseCommand {
usage() {
return _('config [name] [value]');
return 'config [name] [value]';
}
description() {
@ -27,6 +28,12 @@ class Command extends BaseCommand {
}
Setting.setValue(args.name, args.value);
if (args.name == 'locale') {
setLocale(Setting.value('locale'));
app().onLocaleChanged();
}
await Setting.saveAll();
}

View File

@ -9,7 +9,7 @@ import { autocompleteItems } from './autocomplete.js';
class Command extends BaseCommand {
usage() {
return _('cp <pattern> [notebook]');
return 'cp <pattern> [notebook]';
}
description() {

View File

@ -11,7 +11,7 @@ import { autocompleteItems } from './autocomplete.js';
class Command extends BaseCommand {
usage() {
return _('edit <title>');
return 'edit <title>';
}
description() {

View File

@ -9,7 +9,7 @@ import { filename, basename } from 'lib/path-utils.js';
class Command extends BaseCommand {
usage() {
return _('import-enex <file> [notebook]');
return 'import-enex <file> [notebook]';
}
description() {
@ -19,7 +19,7 @@ class Command extends BaseCommand {
options() {
return [
['-f, --force', _('Do not ask for confirmation.')],
['--fuzzy-matching', _('For debugging purposes. Do not use.')],
['--fuzzy-matching', 'For debugging purposes. Do not use.'],
];
}

View File

@ -12,7 +12,7 @@ import { vorpalUtils } from './vorpal-utils.js';
class Command extends BaseCommand {
usage() {
return _('ls [pattern]');
return 'ls [pattern]';
}
description() {

View File

@ -6,7 +6,7 @@ import { Folder } from 'lib/models/folder.js';
class Command extends BaseCommand {
usage() {
return _('mkbook <notebook>');
return 'mkbook <notebook>';
}
description() {

View File

@ -6,7 +6,7 @@ import { Note } from 'lib/models/note.js';
class Command extends BaseCommand {
usage() {
return _('mknote <note>');
return 'mknote <note>';
}
description() {

View File

@ -9,7 +9,7 @@ import { autocompleteItems } from './autocomplete.js';
class Command extends BaseCommand {
usage() {
return _('mv <pattern> <destination>');
return 'mv <pattern> <destination>';
}
description() {

View File

@ -11,7 +11,7 @@ import { vorpalUtils } from './vorpal-utils.js';
class Command extends BaseCommand {
usage() {
return _('rm <pattern>');
return 'rm <pattern>';
}
description() {

View File

@ -12,7 +12,7 @@ import { vorpalUtils } from './vorpal-utils.js';
class Command extends BaseCommand {
usage() {
return _('search <pattern> [notebook]');
return 'search <pattern> [notebook]';
}
description() {

View File

@ -10,7 +10,7 @@ import { autocompleteItems } from './autocomplete.js';
class Command extends BaseCommand {
usage() {
return _('set <note> <name> [value]');
return 'set <note> <name> [value]';
}
description() {

View File

@ -27,7 +27,7 @@ class Command extends BaseCommand {
options() {
return [
['--target <target>', _('Sync to provided target (defaults to sync.target config value)')],
['--random-failures', _('For debugging purposes. Do not use.')],
['--random-failures', 'For debugging purposes. Do not use.'],
];
}

View File

@ -7,7 +7,7 @@ import { BaseModel } from 'lib/base-model.js';
class Command extends BaseCommand {
usage() {
return _('tag <command> [tag] [note]');
return 'tag <command> [tag] [note]';
}
description() {

View File

@ -8,7 +8,7 @@ import { autocompleteFolders } from './autocomplete.js';
class Command extends BaseCommand {
usage() {
return _('use <notebook>');
return 'use <notebook>';
}
description() {

View File

@ -35,7 +35,7 @@ class OneDriveApiNodeUtils {
}
}
if (!port) throw new Error(_('All potential ports are in use - please report the issue at https://github.com/laurent22/joplin'));
if (!port) throw new Error(_('All potential ports are in use - please report the issue at %s', 'https://github.com/laurent22/joplin'));
let authCodeUrl = this.api().authCodeUrl('http://localhost:' + port);

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Joplin-CLI 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-18 12:21+0100\n"
"POT-Creation-Date: 2017-07-18 13:36+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"
@ -49,19 +49,23 @@ msgid ""
"aborting."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:279
#: /media/veracrypt22/src/notes/CliClient/app/app.js:203
msgid "Provides help for a given command."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:205
msgid "Exits the application."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:294
#, javascript-format
msgid "Synchronizing with directory \"%s\""
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:358
#: /media/veracrypt22/src/notes/CliClient/app/app.js:373
msgid "No notebook is defined. Create one with `mkbook <notebook>`."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:12
msgid "cat <title>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:16
msgid "Displays the given note."
msgstr ""
@ -89,31 +93,19 @@ msgstr ""
msgid "Cannot find \"%s\"."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:8
msgid "config [name] [value]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:12
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:13
msgid ""
"Gets or sets a config value. If [value] is not provided, it will show the "
"value of [name]. If neither [name] nor [value] is provided, it will list the "
"current configuration."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:12
msgid "cp <pattern> [notebook]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:16
msgid ""
"Duplicates the notes matching <pattern> to [notebook]. If no notebook is "
"specified the note is duplicated in the current notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:14
msgid "edit <title>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:18
msgid "Edit note."
msgstr ""
@ -135,10 +127,6 @@ msgstr ""
msgid "Starting to edit note. Close the editor to get back to the prompt."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:12
msgid "import-enex <file> [notebook]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:16
msgid "Imports an Evernote notebook file (.enex file)."
msgstr ""
@ -147,11 +135,6 @@ msgstr ""
msgid "Do not ask for confirmation."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:22
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:30
msgid "For debugging purposes. Do not use."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:35
#, javascript-format
msgid "Folder does not exists: \"%s\". Create it?"
@ -201,10 +184,6 @@ msgstr ""
msgid "Importing notes..."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:15
msgid "ls [pattern]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:19
msgid ""
"Displays the notes in [notebook]. Use `ls /` to display the list of "
@ -244,18 +223,10 @@ msgstr ""
msgid "Please select a notebook first."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mkbook.js:9
msgid "mkbook <notebook>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mkbook.js:13
msgid "Creates a new notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:9
msgid "mknote <note>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:13
msgid "Creates a new note."
msgstr ""
@ -264,10 +235,6 @@ msgstr ""
msgid "Notes can only be created within a notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mv.js:12
msgid "mv <pattern> <destination>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mv.js:16
msgid ""
"Moves the notes matching <pattern> to <destination>. If <pattern> is a note, "
@ -275,10 +242,6 @@ msgid ""
"it will be renamed to <destination>."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:14
msgid "rm <pattern>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:18
msgid "Deletes the items matching <pattern>."
msgstr ""
@ -301,18 +264,10 @@ msgstr ""
msgid "%d notes match this pattern. Delete them?"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-search.js:15
msgid "search <pattern> [notebook]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-search.js:19
msgid "Searches for the given <pattern> in all the notes."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-set.js:13
msgid "set <note> <name> [value]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-set.js:17
msgid "Sets the property <name> of the given <note> to the given [value]."
msgstr ""
@ -355,10 +310,6 @@ msgstr ""
msgid "Cancelling..."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:10
msgid "tag <command> [tag] [note]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:14
msgid ""
"<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] "
@ -371,10 +322,6 @@ msgstr ""
msgid "Invalid command: \"%s\""
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:11
msgid "use <notebook>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:15
msgid ""
"Switches to [notebook] - all further operations will happen within this "
@ -395,9 +342,8 @@ msgid "Fatal error:"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:38
msgid ""
"All potential ports are in use - please report the issue at https://github."
"com/laurent22/joplin"
#, javascript-format
msgid "All potential ports are in use - please report the issue at %s"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:58
@ -413,11 +359,6 @@ msgstr ""
msgid "Please open this URL in your browser to authentify the application:"
msgstr ""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/logger.js:147
#, javascript-format
msgid "Unknown log level: %s"
msgstr ""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:52
#, javascript-format
msgid "Created local items: %d."

View File

@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: Joplin-CLI 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-18 12:21+0100\n"
"PO-Revision-Date: 2017-07-18 12:23+0100\n"
"POT-Creation-Date: 2017-07-18 13:36+0100\n"
"PO-Revision-Date: 2017-07-18 13:27+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr_FR\n"
@ -48,27 +48,33 @@ msgid ""
"Command line argument \"%s\" contains both quotes and double-quotes - "
"aborting."
msgstr ""
"Paramètre de ligne de command \"%s\" contient à la fois des guillemets "
"simples et doubles - impossible de continuer."
#: /media/veracrypt22/src/notes/CliClient/app/app.js:279
#: /media/veracrypt22/src/notes/CliClient/app/app.js:203
msgid "Provides help for a given command."
msgstr "Affiche l'aide pour la commande donnée."
#: /media/veracrypt22/src/notes/CliClient/app/app.js:205
msgid "Exits the application."
msgstr "Quitter le logiciel."
#: /media/veracrypt22/src/notes/CliClient/app/app.js:294
#, javascript-format
msgid "Synchronizing with directory \"%s\""
msgstr ""
msgstr "Synchronisation avec dossier \"%s\""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:358
#: /media/veracrypt22/src/notes/CliClient/app/app.js:373
msgid "No notebook is defined. Create one with `mkbook <notebook>`."
msgstr "Aucun carnet n'est défini. Créez-en un avec `mkbook <carnet>`."
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:12
msgid "cat <title>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:16
msgid "Displays the given note."
msgstr ""
msgstr "Affiche la note."
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:21
msgid "Displays the complete information about note."
msgstr ""
msgstr "Affiche tous les détails de la note."
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:33
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:31
@ -87,141 +93,128 @@ msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:28
#, javascript-format
msgid "Cannot find \"%s\"."
msgstr ""
msgstr "Impossible de trouver \"%s\"."
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:8
msgid "config [name] [value]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:12
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:13
msgid ""
"Gets or sets a config value. If [value] is not provided, it will show the "
"value of [name]. If neither [name] nor [value] is provided, it will list the "
"current configuration."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:12
msgid "cp <pattern> [notebook]"
msgstr ""
"Obtient ou modifie une valeur de configuration. Si la [valeur] n'est pas "
"fournie, la valeur de [nom] est affichée. Si ni le [nom] ni la [valeur] ne "
"sont fournies, la configuration complète est affichée."
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:16
msgid ""
"Duplicates the notes matching <pattern> to [notebook]. If no notebook is "
"specified the note is duplicated in the current notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:14
msgid "edit <title>"
msgstr ""
"Copie les notes correspondant à [nom] vers [carnet]. Si aucun carnet n'est "
"spécifié, la note est dupliqué sur place."
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:18
msgid "Edit note."
msgstr ""
msgstr "Editer la note."
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:33
msgid "Done editing."
msgstr ""
msgstr "Edition terminée."
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:39
msgid ""
"No text editor is defined. Please set it using `config editor <editor-path>`"
msgstr ""
"Aucun éditeur de texte n'est défini. Veuillez le définir en utilisant la "
"commande `config editor <chemin-editeur>`"
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:45
msgid "No active notebook."
msgstr ""
msgstr "Aucun carnet actif."
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:66
msgid "Starting to edit note. Close the editor to get back to the prompt."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:12
msgid "import-enex <file> [notebook]"
msgstr ""
"Edition de la note en cours. Fermez l'éditeur de texte pour retourner à "
"l'invite de commande."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:16
msgid "Imports an Evernote notebook file (.enex file)."
msgstr ""
msgstr "Importer un carnet Evernote (fichier .enex)."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:21
msgid "Do not ask for confirmation."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:22
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:30
msgid "For debugging purposes. Do not use."
msgstr ""
msgstr "Ne pas demander de confirmation."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:35
#, javascript-format
msgid "Folder does not exists: \"%s\". Create it?"
msgstr ""
msgstr "Ce carnet n'existe pas : \"%s\". Le créer ?"
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:42
#, javascript-format
msgid "Imported - %s"
msgstr ""
msgstr "Importé - %s"
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:55
#, javascript-format
msgid "File \"%s\" will be imported into notebook \"%s\". Continue?"
msgstr ""
msgstr "Le fichier \"%s\" va être importé dans le carnet \"%s\". Continuer ?"
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:62
#, javascript-format
msgid "Found: %d."
msgstr ""
msgstr "Trouvés : %d."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:63
#, javascript-format
msgid "Created: %d."
msgstr ""
msgstr "Créés : %d."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:64
#, javascript-format
msgid "Updated: %d."
msgstr ""
msgstr "Mise à jour : %d."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:65
#, javascript-format
msgid "Skipped: %d."
msgstr ""
msgstr "Ignorés : %d."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:66
#, javascript-format
msgid "Resources: %d."
msgstr ""
msgstr "Ressources : %d."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:67
#, javascript-format
msgid "Tagged: %d."
msgstr ""
msgstr "Etiquettes : %d."
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:78
msgid "Importing notes..."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:15
msgid "ls [pattern]"
msgstr ""
msgstr "Importation des notes..."
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:19
msgid ""
"Displays the notes in [notebook]. Use `ls /` to display the list of "
"notebooks."
msgstr ""
"Affiche les notes dans le carnet. Utilisez `ls /` pour afficher la liste des "
"carnets."
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:24
msgid "Displays only the first top <num> notes."
msgstr ""
msgstr "Affiche uniquement les <num> premières notes."
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:25
msgid "Sorts the item by <field> (eg. title, updated_time, created_time)."
msgstr ""
"Trier les notes par <field> (par exemple, title, updated_time, created_time)."
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:26
msgid "Reverses the sorting order."
msgstr ""
msgstr "Inverser l'ordre."
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:27
msgid ""
@ -229,44 +222,37 @@ msgid ""
"for todos, or `nt` for notes and todos (eg. `-tt` would display only the "
"todos, while `-ttd` would display notes and todos."
msgstr ""
"Affiche uniquement les notes du ou des types spécifiés. Le type peut-être "
"`n` pour les notes, `t` pour les tâches (par exemple, `-tt` affiche "
"uniquement les tâches, tandis que `-ttd` affiche les notes et les tâches)."
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:28
msgid "Either \"text\" or \"json\""
msgstr ""
msgstr "Soit \"text\" soit \"json\""
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:29
msgid ""
"Use long list format. Format is ID, NOTE_COUNT (for notebook), DATE, "
"TODO_CHECKED (for todos), TITLE"
msgstr ""
"Utilise le format de liste longue. Le format est ID, NOMBRE_DE_NOTES (pour "
"les carnets), DATE, TACHE_TERMINE (pour les tâches), TITRE"
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:65
msgid "Please select a notebook first."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mkbook.js:9
msgid "mkbook <notebook>"
msgstr ""
msgstr "Veuillez sélectionner un carnet d'abord."
#: /media/veracrypt22/src/notes/CliClient/app/command-mkbook.js:13
msgid "Creates a new notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:9
msgid "mknote <note>"
msgstr ""
msgstr "Créer un carnet."
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:13
msgid "Creates a new note."
msgstr ""
msgstr "Créer une note."
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:17
msgid "Notes can only be created within a notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mv.js:12
msgid "mv <pattern> <destination>"
msgstr ""
msgstr "Les notes ne peuvent être créées que dans un carnet."
#: /media/veracrypt22/src/notes/CliClient/app/command-mv.js:16
msgid ""
@ -274,90 +260,79 @@ msgid ""
"it will be moved to the notebook <destination>. If <pattern> is a notebook, "
"it will be renamed to <destination>."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:14
msgid "rm <pattern>"
msgstr ""
"Déplacer les notes correspondantes à <motif> vers <destination>. Si <motif> "
"est une note, elle sera déplacée vers le carnet <destination>. Si <motif> "
"est un carnet, il sera renommé <destination>."
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:18
msgid "Deletes the items matching <pattern>."
msgstr ""
msgstr "Supprime les objets correspondants à <motif>."
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:27
msgid "Deletes the items without asking for confirmation."
msgstr ""
msgstr "Supprime les objets sans demander la confirmation."
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:28
msgid "Deletes a notebook."
msgstr ""
msgstr "Supprime le carnet."
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:40
#, javascript-format
msgid "Delete notebook \"%s\"?"
msgstr ""
msgstr "Supprimer le carnet \"%s\" ?"
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:47
#, javascript-format
msgid "%d notes match this pattern. Delete them?"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-search.js:15
msgid "search <pattern> [notebook]"
msgstr ""
msgstr "%d notes correspondent à ce motif. Les supprimer ?"
#: /media/veracrypt22/src/notes/CliClient/app/command-search.js:19
msgid "Searches for the given <pattern> in all the notes."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-set.js:13
msgid "set <note> <name> [value]"
msgstr ""
msgstr "Chercher le motif <pattern> dans toutes les notes."
#: /media/veracrypt22/src/notes/CliClient/app/command-set.js:17
msgid "Sets the property <name> of the given <note> to the given [value]."
msgstr ""
msgstr "Assigner la valeur [value] à la propriété <name> de la <note> donnée."
#: /media/veracrypt22/src/notes/CliClient/app/command-status.js:14
msgid "Displays summary about the notes and notebooks."
msgstr ""
msgstr "Afficher un résumé des notes et carnets."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:24
msgid "Synchronizes with remote storage."
msgstr ""
msgstr "Synchroniser les notes et carnets."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:29
msgid "Sync to provided target (defaults to sync.target config value)"
msgstr ""
"Synchroniser avec la cible donnée (par défaut, la valeur de configuration "
"`sync.target`)."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:66
msgid "Synchronisation is already in progress."
msgstr ""
msgstr "Synchronisation est déjà en cours."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:88
#, javascript-format
msgid "Synchronization target: %s"
msgstr ""
msgstr "Cible de la synchronisation : %s"
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:90
msgid "Cannot initialize synchronizer."
msgstr ""
msgstr "Impossible d'initialiser le synchroniseur."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:92
msgid "Starting synchronization..."
msgstr ""
msgstr "Commencement de la synchronisation..."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:99
msgid "Done."
msgstr ""
msgstr "Terminé."
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:114
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:60
msgid "Cancelling..."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:10
msgid "tag <command> [tag] [note]"
msgstr ""
msgstr "Annulation..."
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:14
msgid ""
@ -365,107 +340,106 @@ msgid ""
"from [note], or to list the notes associated with [tag]. The command `tag "
"list` can be used to list all the tags."
msgstr ""
"<command> peut être \"add\", \"remove\" ou \"list\" pour assigner ou enlever "
"l'étiquette [tag] de la [note], our pour lister les notes associées avec "
"l'étiquette [tag]. La commande `tag list` peut être utilisée pour lister les "
"étiquettes."
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:48
#, javascript-format
msgid "Invalid command: \"%s\""
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:11
msgid "use <notebook>"
msgstr ""
msgstr "Commande invalie : \"%s\""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:15
msgid ""
"Switches to [notebook] - all further operations will happen within this "
"notebook."
msgstr ""
"Changer de carnet - toutes les opérations à venir se feront dans ce carnet."
#: /media/veracrypt22/src/notes/CliClient/app/command-version.js:12
msgid "Displays version information"
msgstr ""
msgstr "Affiche les informations de version."
#: /media/veracrypt22/src/notes/CliClient/app/command-version.js:17
#, javascript-format
msgid "%s %s (%s)"
msgstr ""
msgstr "%s %s (%s)"
#: /media/veracrypt22/src/notes/CliClient/app/main.js:53
msgid "Fatal error:"
msgstr ""
msgstr "Erreur fatale :"
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:38
msgid ""
"All potential ports are in use - please report the issue at https://github."
"com/laurent22/joplin"
#, javascript-format
msgid "All potential ports are in use - please report the issue at %s"
msgstr ""
"Tous les ports sont en cours d'utilisation. Veuillez signaler ce problème "
"sur %s"
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:58
msgid ""
"The application has been authorised - you may now close this browser tab."
msgstr ""
msgstr "Le logiciel a été autorisé. Vous pouvez maintenant fermer cet onglet."
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:60
msgid "The application has been successfully authorised."
msgstr ""
msgstr "Le logiciel a été autorisé."
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:82
msgid "Please open this URL in your browser to authentify the application:"
msgstr ""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/logger.js:147
#, javascript-format
msgid "Unknown log level: %s"
msgstr ""
"Veuillez ouvrir cette URL dans votre navigateur internet pour autentifier le "
"logiciel :"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:52
#, javascript-format
msgid "Created local items: %d."
msgstr ""
msgstr "Objets créés localement : %d."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:53
#, javascript-format
msgid "Updated local items: %d."
msgstr ""
msgstr "Objets mis à jour localement : %d."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:54
#, javascript-format
msgid "Created remote items: %d."
msgstr ""
msgstr "Objets distants créés : %d."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:55
#, javascript-format
msgid "Updated remote items: %d."
msgstr ""
msgstr "Objets distants mis à jour : %d."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:56
#, javascript-format
msgid "Deleted local items: %d."
msgstr ""
msgstr "Objets supprimés localement : %d."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:57
#, javascript-format
msgid "Deleted remote items: %d."
msgstr ""
msgstr "Objets distants supprimés : %d."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:58
#, javascript-format
msgid "State: %s."
msgstr ""
msgstr "Etat : %s."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:59
#, javascript-format
msgid "Last error: %s (stacktrace in log)."
msgstr ""
msgstr "Dernière erreur : %s (Plus d'information dans le journal d'erreurs)"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:61
#, javascript-format
msgid "Completed: %s"
msgstr ""
msgstr "Terminé : %s"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/models/folder.js:81
msgid "Conflicts"
msgstr ""
msgstr "Conflits"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/models/folder.js:136
#, javascript-format
@ -475,47 +449,77 @@ msgstr "Un carnet avec ce titre existe déjà : \"%s\""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/models/folder.js:140
#, javascript-format
msgid "Notebooks cannot be named \"%s\", which is a reserved title."
msgstr ""
msgstr "Les carnets ne peuvent être nommés \"%s\" car c'est un nom réservé."
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/models/note.js:194
#, javascript-format
msgid "Cannot copy note to \"%s\" notebook"
msgstr ""
msgstr "Impossible de copier la note dans le carnet \"%s\""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/models/note.js:205
#, javascript-format
msgid "Cannot move note to \"%s\" notebook"
msgstr ""
msgstr "Impossible de déplacer la note vers le carnet \"%s\""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:54
msgid "Sync status (synced items / total items)"
msgstr ""
msgstr "Status de la synchronisation (objets synchro. / total)"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:59
#, javascript-format
msgid "%s: %d/%d"
msgstr ""
msgstr "%s: %d/%d"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:62
#, javascript-format
msgid "Total: %d/%d"
msgstr ""
msgstr "Total : %d/%d"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:64
#, javascript-format
msgid "Conflicted: %d"
msgstr ""
msgstr "Conflits : %d"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:65
#, javascript-format
msgid "To delete: %d"
msgstr ""
msgstr "A supprimer : %d"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:70
msgid "Folders"
msgstr ""
msgstr "Carnets"
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/services/report.js:80
#, javascript-format
msgid "%s: %d notes"
msgstr ""
msgstr "%s : %d notes"
#~ msgid "cat <title>"
#~ msgstr "cat <titre>"
#~ msgid "config [name] [value]"
#~ msgstr "config [nom] [valeur]"
#~ msgid "cp <pattern> [notebook]"
#~ msgstr "cp <nom> [carnet]"
#~ msgid "edit <title>"
#~ msgstr "edit <titre>"
#~ msgid "import-enex <file> [notebook]"
#~ msgstr "import-enex <fichier> [carnet]"
#~ msgid "ls [pattern]"
#~ msgstr "ls [motif]"
#~ msgid "mkbook <notebook>"
#~ msgstr "mkbook <carnet>"
#~ msgid "mknote <note>"
#~ msgstr "mknote <note>"
#~ msgid "mv <pattern> <destination>"
#~ msgstr "mv <motif> <destination>"
#~ msgid "rm <pattern>"
#~ msgstr "rm <motif>"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: Joplin-CLI 1.0.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-18 12:21+0100\n"
"POT-Creation-Date: 2017-07-18 13:36+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"
@ -49,19 +49,23 @@ msgid ""
"aborting."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:279
#: /media/veracrypt22/src/notes/CliClient/app/app.js:203
msgid "Provides help for a given command."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:205
msgid "Exits the application."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:294
#, javascript-format
msgid "Synchronizing with directory \"%s\""
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/app.js:358
#: /media/veracrypt22/src/notes/CliClient/app/app.js:373
msgid "No notebook is defined. Create one with `mkbook <notebook>`."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:12
msgid "cat <title>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cat.js:16
msgid "Displays the given note."
msgstr ""
@ -89,31 +93,19 @@ msgstr ""
msgid "Cannot find \"%s\"."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:8
msgid "config [name] [value]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:12
#: /media/veracrypt22/src/notes/CliClient/app/command-config.js:13
msgid ""
"Gets or sets a config value. If [value] is not provided, it will show the "
"value of [name]. If neither [name] nor [value] is provided, it will list the "
"current configuration."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:12
msgid "cp <pattern> [notebook]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-cp.js:16
msgid ""
"Duplicates the notes matching <pattern> to [notebook]. If no notebook is "
"specified the note is duplicated in the current notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:14
msgid "edit <title>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-edit.js:18
msgid "Edit note."
msgstr ""
@ -135,10 +127,6 @@ msgstr ""
msgid "Starting to edit note. Close the editor to get back to the prompt."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:12
msgid "import-enex <file> [notebook]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:16
msgid "Imports an Evernote notebook file (.enex file)."
msgstr ""
@ -147,11 +135,6 @@ msgstr ""
msgid "Do not ask for confirmation."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:22
#: /media/veracrypt22/src/notes/CliClient/app/command-sync.js:30
msgid "For debugging purposes. Do not use."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-import-enex.js:35
#, javascript-format
msgid "Folder does not exists: \"%s\". Create it?"
@ -201,10 +184,6 @@ msgstr ""
msgid "Importing notes..."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:15
msgid "ls [pattern]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-ls.js:19
msgid ""
"Displays the notes in [notebook]. Use `ls /` to display the list of "
@ -244,18 +223,10 @@ msgstr ""
msgid "Please select a notebook first."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mkbook.js:9
msgid "mkbook <notebook>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mkbook.js:13
msgid "Creates a new notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:9
msgid "mknote <note>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mknote.js:13
msgid "Creates a new note."
msgstr ""
@ -264,10 +235,6 @@ msgstr ""
msgid "Notes can only be created within a notebook."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mv.js:12
msgid "mv <pattern> <destination>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-mv.js:16
msgid ""
"Moves the notes matching <pattern> to <destination>. If <pattern> is a note, "
@ -275,10 +242,6 @@ msgid ""
"it will be renamed to <destination>."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:14
msgid "rm <pattern>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-rm.js:18
msgid "Deletes the items matching <pattern>."
msgstr ""
@ -301,18 +264,10 @@ msgstr ""
msgid "%d notes match this pattern. Delete them?"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-search.js:15
msgid "search <pattern> [notebook]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-search.js:19
msgid "Searches for the given <pattern> in all the notes."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-set.js:13
msgid "set <note> <name> [value]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-set.js:17
msgid "Sets the property <name> of the given <note> to the given [value]."
msgstr ""
@ -355,10 +310,6 @@ msgstr ""
msgid "Cancelling..."
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:10
msgid "tag <command> [tag] [note]"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-tag.js:14
msgid ""
"<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] "
@ -371,10 +322,6 @@ msgstr ""
msgid "Invalid command: \"%s\""
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:11
msgid "use <notebook>"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/command-use.js:15
msgid ""
"Switches to [notebook] - all further operations will happen within this "
@ -395,9 +342,8 @@ msgid "Fatal error:"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:38
msgid ""
"All potential ports are in use - please report the issue at https://github."
"com/laurent22/joplin"
#, javascript-format
msgid "All potential ports are in use - please report the issue at %s"
msgstr ""
#: /media/veracrypt22/src/notes/CliClient/app/onedrive-api-node-utils.js:58
@ -413,11 +359,6 @@ msgstr ""
msgid "Please open this URL in your browser to authentify the application:"
msgstr ""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/logger.js:147
#, javascript-format
msgid "Unknown log level: %s"
msgstr ""
#: /media/veracrypt22/src/notes/ReactNativeClient/lib/synchronizer.js:52
#, javascript-format
msgid "Created local items: %d."

View File

@ -144,7 +144,7 @@ class Logger {
if (s == 'warn') return Logger.LEVEL_WARN;
if (s == 'info') return Logger.LEVEL_INFO;
if (s == 'debug') return Logger.LEVEL_DEBUG;
throw new Error(_('Unknown log level: %s', s));
throw new Error('Unknown log level: %s', s);
}
}