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

More tweaks

This commit is contained in:
Laurent Cozic 2017-07-28 18:13:07 +00:00
parent f228b48365
commit b81111743f
24 changed files with 96 additions and 250 deletions

View File

@ -119,14 +119,14 @@ class Application {
let nextArg = argv.length >= 2 ? argv[1] : null; let nextArg = argv.length >= 2 ? argv[1] : null;
if (arg == '--profile') { if (arg == '--profile') {
if (!nextArg) throw new Error(_('Usage: --profile <dir-path>')); if (!nextArg) throw new Error(_('Usage: %s', '--profile <dir-path>'));
matched.profileDir = nextArg; matched.profileDir = nextArg;
argv.splice(0, 2); argv.splice(0, 2);
continue; continue;
} }
if (arg == '--env') { if (arg == '--env') {
if (!nextArg) throw new Error(_('Usage: --env <dev|prod>')); if (!nextArg) throw new Error(_('Usage: %s', '--env <dev|prod>'));
matched.env = nextArg; matched.env = nextArg;
argv.splice(0, 2); argv.splice(0, 2);
continue; continue;
@ -151,7 +151,7 @@ class Application {
} }
if (arg == '--log-level') { if (arg == '--log-level') {
if (!nextArg) throw new Error(_('Usage: --log-level <none|error|warn|info|debug>')); if (!nextArg) throw new Error(_('Usage: %s', '--log-level <none|error|warn|info|debug>'));
matched.logLevel = Logger.levelStringToId(nextArg); matched.logLevel = Logger.levelStringToId(nextArg);
argv.splice(0, 2); argv.splice(0, 2);
continue; continue;

View File

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

View File

@ -6,7 +6,7 @@ import { Setting } from 'lib/models/setting.js';
class Command extends BaseCommand { class Command extends BaseCommand {
usage() { usage() {
return _('config [name] [value]'); return 'config [name] [value]';
} }
description() { description() {

View File

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

View File

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

View File

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

View File

@ -9,7 +9,7 @@ import { filename, basename } from 'lib/path-utils.js';
class Command extends BaseCommand { class Command extends BaseCommand {
usage() { usage() {
return _('import-enex <file> [notebook]'); return 'import-enex <file> [notebook]';
} }
description() { description() {

View File

@ -12,7 +12,7 @@ import { vorpalUtils } from './vorpal-utils.js';
class Command extends BaseCommand { class Command extends BaseCommand {
usage() { usage() {
return _('ls [pattern]'); return 'ls [pattern]';
} }
description() { description() {
@ -21,11 +21,11 @@ class Command extends BaseCommand {
options() { options() {
return [ return [
[_('-n, --limit <num>'), _('Displays only the first top <num> notes.')], ['-n, --limit <num>', _('Displays only the first top <num> notes.')],
[_('-s, --sort <field>'), _('Sorts the item by <field> (eg. title, updated_time, created_time).')], ['-s, --sort <field>', _('Sorts the item by <field> (eg. title, updated_time, created_time).')],
['-r, --reverse', _('Reverses the sorting order.')], ['-r, --reverse', _('Reverses the sorting order.')],
[_('-t, --type <type>'), _('Displays only the items of the specific type(s). Can be `n` for notes, `t` for todos, or `nt` for notes and todos (eg. `-tt` would display only the todos, while `-ttd` would display notes and todos.')], ['-t, --type <type>', _('Displays only the items of the specific type(s). Can be `n` for notes, `t` for todos, or `nt` for notes and todos (eg. `-tt` would display only the todos, while `-ttd` would display notes and todos.')],
[_('-f, --format <format>'), _('Either "text" or "json"')], ['-f, --format <format>', _('Either "text" or "json"')],
['-l, --long', _('Use long list format. Format is ID, NOTE_COUNT (for notebook), DATE, TODO_CHECKED (for todos), TITLE')], ['-l, --long', _('Use long list format. Format is ID, NOTE_COUNT (for notebook), DATE, TODO_CHECKED (for todos), TITLE')],
]; ];
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -30,7 +30,7 @@ class Command extends BaseCommand {
options() { options() {
return [ return [
[_('--target <target>'), _('Sync to provided target (defaults to sync.target config value)')], ['--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 { class Command extends BaseCommand {
usage() { usage() {
return _('tag <command> [tag] [note]'); return 'tag <command> [tag] [note]';
} }
description() { description() {

View File

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

View File

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

View File

@ -17,7 +17,7 @@ class OneDriveApiNodeUtils {
} }
possibleOAuthDancePorts() { possibleOAuthDancePorts() {
return [1917, 9917, 8917]; return [9967, 8967, 8867];
} }
makePage(message) { makePage(message) {

View File

@ -21,13 +21,8 @@ msgstr ""
msgid "No notebook has been specified." msgid "No notebook has been specified."
msgstr "" msgstr ""
msgid "Usage: --profile <dir-path>" #, javascript-format
msgstr "" msgid "Usage: %s"
msgid "Usage: --env <dev|prod>"
msgstr ""
msgid "Usage: --log-level <none|error|warn|info|debug>"
msgstr "" msgstr ""
#, javascript-format #, javascript-format
@ -88,9 +83,6 @@ msgstr ""
msgid "USAGE" msgid "USAGE"
msgstr "" msgstr ""
msgid "cat <title>"
msgstr ""
msgid "Displays the given note." msgid "Displays the given note."
msgstr "" msgstr ""
@ -101,9 +93,6 @@ msgstr ""
msgid "Cannot find \"%s\"." msgid "Cannot find \"%s\"."
msgstr "" msgstr ""
msgid "config [name] [value]"
msgstr ""
msgid "" msgid ""
"Gets or sets a config value. If [value] is not provided, it will show the " "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 " "value of [name]. If neither [name] nor [value] is provided, it will list the "
@ -121,17 +110,11 @@ msgstr ""
msgid "%s = %s" msgid "%s = %s"
msgstr "" msgstr ""
msgid "cp <pattern> [notebook]"
msgstr ""
msgid "" msgid ""
"Duplicates the notes matching <pattern> to [notebook]. If no notebook is " "Duplicates the notes matching <pattern> to [notebook]. If no notebook is "
"specified the note is duplicated in the current notebook." "specified the note is duplicated in the current notebook."
msgstr "" msgstr ""
msgid "edit <title>"
msgstr ""
msgid "Edit note." msgid "Edit note."
msgstr "" msgstr ""
@ -152,15 +135,9 @@ msgstr ""
msgid "Starting to edit note. Close the editor to get back to the prompt." msgid "Starting to edit note. Close the editor to get back to the prompt."
msgstr "" msgstr ""
msgid "geoloc <title>"
msgstr ""
msgid "Displays a geolocation URL for the note." msgid "Displays a geolocation URL for the note."
msgstr "" msgstr ""
msgid "import-enex <file> [notebook]"
msgstr ""
msgid "Imports an Evernote notebook file (.enex file)." msgid "Imports an Evernote notebook file (.enex file)."
msgstr "" msgstr ""
@ -202,41 +179,26 @@ msgstr ""
msgid "Importing notes..." msgid "Importing notes..."
msgstr "" msgstr ""
msgid "ls [pattern]"
msgstr ""
msgid "" msgid ""
"Displays the notes in [notebook]. Use `ls /` to display the list of " "Displays the notes in [notebook]. Use `ls /` to display the list of "
"notebooks." "notebooks."
msgstr "" msgstr ""
msgid "-n, --limit <num>"
msgstr ""
msgid "Displays only the first top <num> notes." msgid "Displays only the first top <num> notes."
msgstr "" msgstr ""
msgid "-s, --sort <field>"
msgstr ""
msgid "Sorts the item by <field> (eg. title, updated_time, created_time)." msgid "Sorts the item by <field> (eg. title, updated_time, created_time)."
msgstr "" msgstr ""
msgid "Reverses the sorting order." msgid "Reverses the sorting order."
msgstr "" msgstr ""
msgid "-t, --type <type>"
msgstr ""
msgid "" msgid ""
"Displays only the items of the specific type(s). Can be `n` for notes, `t` " "Displays only the items of the specific type(s). Can be `n` for notes, `t` "
"for todos, or `nt` for notes and todos (eg. `-tt` would display only the " "for todos, or `nt` for notes and todos (eg. `-tt` would display only the "
"todos, while `-ttd` would display notes and todos." "todos, while `-ttd` would display notes and todos."
msgstr "" msgstr ""
msgid "-f, --format <format>"
msgstr ""
msgid "Either \"text\" or \"json\"" msgid "Either \"text\" or \"json\""
msgstr "" msgstr ""
@ -248,33 +210,21 @@ msgstr ""
msgid "Please select a notebook first." msgid "Please select a notebook first."
msgstr "" msgstr ""
msgid "mkbook <notebook>"
msgstr ""
msgid "Creates a new notebook." msgid "Creates a new notebook."
msgstr "" msgstr ""
msgid "mknote <note>"
msgstr ""
msgid "Creates a new note." msgid "Creates a new note."
msgstr "" msgstr ""
msgid "Notes can only be created within a notebook." msgid "Notes can only be created within a notebook."
msgstr "" msgstr ""
msgid "mv <pattern> <destination>"
msgstr ""
msgid "" msgid ""
"Moves the notes matching <pattern> to <destination>. If <pattern> is a note, " "Moves the notes matching <pattern> to <destination>. If <pattern> is a note, "
"it will be moved to the notebook <destination>. If <pattern> is a notebook, " "it will be moved to the notebook <destination>. If <pattern> is a notebook, "
"it will be renamed to <destination>." "it will be renamed to <destination>."
msgstr "" msgstr ""
msgid "rm <pattern>"
msgstr ""
msgid "Deletes the items matching <pattern>." msgid "Deletes the items matching <pattern>."
msgstr "" msgstr ""
@ -292,15 +242,9 @@ msgstr ""
msgid "%d notes match this pattern. Delete them?" msgid "%d notes match this pattern. Delete them?"
msgstr "" msgstr ""
msgid "search <pattern> [notebook]"
msgstr ""
msgid "Searches for the given <pattern> in all the notes." msgid "Searches for the given <pattern> in all the notes."
msgstr "" msgstr ""
msgid "set <note> <name> [value]"
msgstr ""
msgid "Sets the property <name> of the given <note> to the given [value]." msgid "Sets the property <name> of the given <note> to the given [value]."
msgstr "" msgstr ""
@ -310,9 +254,6 @@ msgstr ""
msgid "Synchronises with remote storage." msgid "Synchronises with remote storage."
msgstr "" msgstr ""
msgid "--target <target>"
msgstr ""
msgid "Sync to provided target (defaults to sync.target config value)" msgid "Sync to provided target (defaults to sync.target config value)"
msgstr "" msgstr ""
@ -335,9 +276,6 @@ msgstr ""
msgid "Cancelling..." msgid "Cancelling..."
msgstr "" msgstr ""
msgid "tag <command> [tag] [note]"
msgstr ""
msgid "" msgid ""
"<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] " "<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] "
"from [note], or to list the notes associated with [tag]. The command `tag " "from [note], or to list the notes associated with [tag]. The command `tag "
@ -348,9 +286,6 @@ msgstr ""
msgid "Invalid command: \"%s\"" msgid "Invalid command: \"%s\""
msgstr "" msgstr ""
msgid "todo <action> <pattern>"
msgstr ""
msgid "" msgid ""
"<action> can either be \"toggle\" or \"clear\". Use \"toggle\" to toggle the " "<action> can either be \"toggle\" or \"clear\". Use \"toggle\" to toggle the "
"given todo between completed and uncompleted state (If the target is a " "given todo between completed and uncompleted state (If the target is a "
@ -358,9 +293,6 @@ msgid ""
"todo back to a regular note." "todo back to a regular note."
msgstr "" msgstr ""
msgid "use <notebook>"
msgstr ""
msgid "" msgid ""
"Switches to [notebook] - all further operations will happen within this " "Switches to [notebook] - all further operations will happen within this "
"notebook." "notebook."

View File

@ -21,14 +21,9 @@ msgstr "Aucun carnet n'est sélectionné."
msgid "No notebook has been specified." msgid "No notebook has been specified."
msgstr "Aucun carnet n'est spécifié." msgstr "Aucun carnet n'est spécifié."
msgid "Usage: --profile <dir-path>" #, javascript-format
msgstr "Utilisation: --profile <chemin>" msgid "Usage: %s"
msgstr "Utilisation : %s."
msgid "Usage: --env <dev|prod>"
msgstr "Utilisation : --env <dev|prod>"
msgid "Usage: --log-level <none|error|warn|info|debug>"
msgstr "Utilisation: --log-level <none|error|warn|info|debug>"
#, javascript-format #, javascript-format
msgid "Unknown flag: %s" msgid "Unknown flag: %s"
@ -52,13 +47,13 @@ msgid "No notebook is defined. Create one with `mkbook <notebook>`."
msgstr "Aucun carnet n'est défini. Créez-en un avec `mkbook <carnet>`." msgstr "Aucun carnet n'est défini. Créez-en un avec `mkbook <carnet>`."
msgid "NAME" msgid "NAME"
msgstr "" msgstr "NOM"
msgid "joplin - a note taking and todo app with synchronisation capabilities" msgid "joplin - a note taking and todo app with synchronisation capabilities"
msgstr "" msgstr ""
msgid "DESCRIPTION" msgid "DESCRIPTION"
msgstr "" msgstr "DESCRIPTION"
msgid "" msgid ""
"Joplin is a note taking and todo application, which can handle a large " "Joplin is a note taking and todo application, which can handle a large "
@ -82,16 +77,13 @@ msgid ""
msgstr "" msgstr ""
msgid "WEBSITE" msgid "WEBSITE"
msgstr "" msgstr "SITE INTERNET"
msgid "LICENSE" msgid "LICENSE"
msgstr "" msgstr "LISENSE"
msgid "USAGE" msgid "USAGE"
msgstr "" msgstr "UTILISATION"
msgid "cat <title>"
msgstr "cat <titre>"
msgid "Displays the given note." msgid "Displays the given note."
msgstr "Affiche la note." msgstr "Affiche la note."
@ -103,9 +95,6 @@ msgstr "Affiche tous les détails de la note."
msgid "Cannot find \"%s\"." msgid "Cannot find \"%s\"."
msgstr "Impossible de trouver \"%s\"." msgstr "Impossible de trouver \"%s\"."
msgid "config [name] [value]"
msgstr "config [nom] [valeur]"
msgid "" msgid ""
"Gets or sets a config value. If [value] is not provided, it will show the " "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 " "value of [name]. If neither [name] nor [value] is provided, it will list the "
@ -126,9 +115,6 @@ msgstr "%s = %s (%s)"
msgid "%s = %s" msgid "%s = %s"
msgstr "%s = %s" msgstr "%s = %s"
msgid "cp <pattern> [notebook]"
msgstr "cp <nom> [carnet]"
msgid "" msgid ""
"Duplicates the notes matching <pattern> to [notebook]. If no notebook is " "Duplicates the notes matching <pattern> to [notebook]. If no notebook is "
"specified the note is duplicated in the current notebook." "specified the note is duplicated in the current notebook."
@ -136,9 +122,6 @@ msgstr ""
"Copie les notes correspondant à [nom] vers [carnet]. Si aucun carnet n'est " "Copie les notes correspondant à [nom] vers [carnet]. Si aucun carnet n'est "
"spécifié, la note est dupliqué sur place." "spécifié, la note est dupliqué sur place."
msgid "edit <title>"
msgstr "edit <titre>"
msgid "Edit note." msgid "Edit note."
msgstr "Editer la note." msgstr "Editer la note."
@ -154,7 +137,7 @@ msgstr ""
msgid "No active notebook." msgid "No active notebook."
msgstr "Aucun carnet actif." msgstr "Aucun carnet actif."
#, fuzzy, javascript-format #, javascript-format
msgid "Note does not exist: \"%s\". Create it?" msgid "Note does not exist: \"%s\". Create it?"
msgstr "Ce carnet n'existe pas : \"%s\". Le créer ?" msgstr "Ce carnet n'existe pas : \"%s\". Le créer ?"
@ -163,16 +146,9 @@ msgstr ""
"Edition de la note en cours. Fermez l'éditeur de texte pour retourner à " "Edition de la note en cours. Fermez l'éditeur de texte pour retourner à "
"l'invite de commande." "l'invite de commande."
#, fuzzy
msgid "geoloc <title>"
msgstr "cat <titre>"
msgid "Displays a geolocation URL for the note." msgid "Displays a geolocation URL for the note."
msgstr "Afficher l'URL de l'emplacement de la note." msgstr "Afficher l'URL de l'emplacement de la note."
msgid "import-enex <file> [notebook]"
msgstr "import-enex <fichier> [carnet]"
msgid "Imports an Evernote notebook file (.enex file)." msgid "Imports an Evernote notebook file (.enex file)."
msgstr "Importer un carnet Evernote (fichier .enex)." msgstr "Importer un carnet Evernote (fichier .enex)."
@ -214,9 +190,6 @@ msgstr "Etiquettes : %d."
msgid "Importing notes..." msgid "Importing notes..."
msgstr "Importation des notes..." msgstr "Importation des notes..."
msgid "ls [pattern]"
msgstr "ls [motif]"
msgid "" msgid ""
"Displays the notes in [notebook]. Use `ls /` to display the list of " "Displays the notes in [notebook]. Use `ls /` to display the list of "
"notebooks." "notebooks."
@ -224,15 +197,9 @@ msgstr ""
"Affiche les notes dans le carnet. Utilisez `ls /` pour afficher la liste des " "Affiche les notes dans le carnet. Utilisez `ls /` pour afficher la liste des "
"carnets." "carnets."
msgid "-n, --limit <num>"
msgstr ""
msgid "Displays only the first top <num> notes." msgid "Displays only the first top <num> notes."
msgstr "Affiche uniquement les <num> premières notes." msgstr "Affiche uniquement les <num> premières notes."
msgid "-s, --sort <field>"
msgstr ""
msgid "Sorts the item by <field> (eg. title, updated_time, created_time)." msgid "Sorts the item by <field> (eg. title, updated_time, created_time)."
msgstr "" msgstr ""
"Trier les notes par <field> (par exemple, title, updated_time, created_time)." "Trier les notes par <field> (par exemple, title, updated_time, created_time)."
@ -240,9 +207,6 @@ msgstr ""
msgid "Reverses the sorting order." msgid "Reverses the sorting order."
msgstr "Inverser l'ordre." msgstr "Inverser l'ordre."
msgid "-t, --type <type>"
msgstr ""
msgid "" msgid ""
"Displays only the items of the specific type(s). Can be `n` for notes, `t` " "Displays only the items of the specific type(s). Can be `n` for notes, `t` "
"for todos, or `nt` for notes and todos (eg. `-tt` would display only the " "for todos, or `nt` for notes and todos (eg. `-tt` would display only the "
@ -252,9 +216,6 @@ msgstr ""
"`n` pour les notes, `t` pour les tâches (par exemple, `-tt` affiche " "`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)." "uniquement les tâches, tandis que `-ttd` affiche les notes et les tâches)."
msgid "-f, --format <format>"
msgstr ""
msgid "Either \"text\" or \"json\"" msgid "Either \"text\" or \"json\""
msgstr "Soit \"text\" soit \"json\"" msgstr "Soit \"text\" soit \"json\""
@ -268,24 +229,15 @@ msgstr ""
msgid "Please select a notebook first." msgid "Please select a notebook first."
msgstr "Veuillez d'abord sélectionner un carnet." msgstr "Veuillez d'abord sélectionner un carnet."
msgid "mkbook <notebook>"
msgstr "mkbook <carnet>"
msgid "Creates a new notebook." msgid "Creates a new notebook."
msgstr "Créer un carnet." msgstr "Créer un carnet."
msgid "mknote <note>"
msgstr "mknote <note>"
msgid "Creates a new note." msgid "Creates a new note."
msgstr "Créer une note." msgstr "Créer une note."
msgid "Notes can only be created within a notebook." msgid "Notes can only be created within a notebook."
msgstr "Les notes ne peuvent être créées que dans un carnet." msgstr "Les notes ne peuvent être créées que dans un carnet."
msgid "mv <pattern> <destination>"
msgstr "mv <motif> <destination>"
msgid "" msgid ""
"Moves the notes matching <pattern> to <destination>. If <pattern> is a note, " "Moves the notes matching <pattern> to <destination>. If <pattern> is a note, "
"it will be moved to the notebook <destination>. If <pattern> is a notebook, " "it will be moved to the notebook <destination>. If <pattern> is a notebook, "
@ -295,9 +247,6 @@ msgstr ""
"est une note, elle sera déplacée vers le carnet <destination>. Si <motif> " "est une note, elle sera déplacée vers le carnet <destination>. Si <motif> "
"est un carnet, il sera renommé <destination>." "est un carnet, il sera renommé <destination>."
msgid "rm <pattern>"
msgstr "rm <motif>"
msgid "Deletes the items matching <pattern>." msgid "Deletes the items matching <pattern>."
msgstr "Supprime les objets correspondants à <motif>." msgstr "Supprime les objets correspondants à <motif>."
@ -315,17 +264,9 @@ msgstr "Supprimer le carnet \"%s\" ?"
msgid "%d notes match this pattern. Delete them?" msgid "%d notes match this pattern. Delete them?"
msgstr "%d notes correspondent à ce motif. Les supprimer ?" msgstr "%d notes correspondent à ce motif. Les supprimer ?"
#, fuzzy
msgid "search <pattern> [notebook]"
msgstr "cp <nom> [carnet]"
msgid "Searches for the given <pattern> in all the notes." msgid "Searches for the given <pattern> in all the notes."
msgstr "Chercher le motif <pattern> dans toutes les notes." msgstr "Chercher le motif <pattern> dans toutes les notes."
#, fuzzy
msgid "set <note> <name> [value]"
msgstr "config [nom] [valeur]"
msgid "Sets the property <name> of the given <note> to the given [value]." msgid "Sets the property <name> of the given <note> to the given [value]."
msgstr "Assigner la valeur [value] à la propriété <name> de la <note> donnée." msgstr "Assigner la valeur [value] à la propriété <name> de la <note> donnée."
@ -335,9 +276,6 @@ msgstr "Afficher un résumé des notes et carnets."
msgid "Synchronises with remote storage." msgid "Synchronises with remote storage."
msgstr "Synchroniser les notes et carnets." msgstr "Synchroniser les notes et carnets."
msgid "--target <target>"
msgstr ""
msgid "Sync to provided target (defaults to sync.target config value)" msgid "Sync to provided target (defaults to sync.target config value)"
msgstr "" msgstr ""
"Synchroniser avec la cible donnée (par défaut, la valeur de configuration " "Synchroniser avec la cible donnée (par défaut, la valeur de configuration "
@ -362,9 +300,6 @@ msgstr "Terminé."
msgid "Cancelling..." msgid "Cancelling..."
msgstr "Annulation..." msgstr "Annulation..."
msgid "tag <command> [tag] [note]"
msgstr ""
msgid "" msgid ""
"<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] " "<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] "
"from [note], or to list the notes associated with [tag]. The command `tag " "from [note], or to list the notes associated with [tag]. The command `tag "
@ -379,10 +314,6 @@ msgstr ""
msgid "Invalid command: \"%s\"" msgid "Invalid command: \"%s\""
msgstr "Commande invalide : \"%s\"" msgstr "Commande invalide : \"%s\""
msgid "todo <action> <pattern>"
msgstr ""
#, fuzzy
msgid "" msgid ""
"<action> can either be \"toggle\" or \"clear\". Use \"toggle\" to toggle the " "<action> can either be \"toggle\" or \"clear\". Use \"toggle\" to toggle the "
"given todo between completed and uncompleted state (If the target is a " "given todo between completed and uncompleted state (If the target is a "
@ -394,10 +325,6 @@ msgstr ""
"terminé (Si la cible est une note, elle sera convertie en tâche). Utilisez " "terminé (Si la cible est une note, elle sera convertie en tâche). Utilisez "
"\"clear\" pour convertir la tâche en note." "\"clear\" pour convertir la tâche en note."
#, fuzzy
msgid "use <notebook>"
msgstr "Nouveau carnet"
msgid "" msgid ""
"Switches to [notebook] - all further operations will happen within this " "Switches to [notebook] - all further operations will happen within this "
"notebook." "notebook."
@ -611,7 +538,7 @@ msgid "Edit notebook"
msgstr "Editer le carnet" msgstr "Editer le carnet"
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr "Rafraîchir"
msgid "Untitled" msgid "Untitled"
msgstr "Sans titre" msgstr "Sans titre"
@ -667,6 +594,61 @@ msgstr ""
msgid "Welcome" msgid "Welcome"
msgstr "Bienvenu" msgstr "Bienvenu"
#~ msgid "Usage: --profile <dir-path>"
#~ msgstr "Utilisation: --profile <chemin>"
#~ msgid "Usage: --env <dev|prod>"
#~ msgstr "Utilisation : --env <dev|prod>"
#~ msgid "Usage: --log-level <none|error|warn|info|debug>"
#~ msgstr "Utilisation: --log-level <none|error|warn|info|debug>"
#~ 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>"
#, fuzzy
#~ msgid "geoloc <title>"
#~ msgstr "cat <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>"
#, fuzzy
#~ msgid "search <pattern> [notebook]"
#~ msgstr "cp <nom> [carnet]"
#, fuzzy
#~ msgid "set <note> <name> [value]"
#~ msgstr "config [nom] [valeur]"
#, fuzzy
#~ msgid "use <notebook>"
#~ msgstr "Nouveau carnet"
#~ msgid "Attach file" #~ msgid "Attach file"
#~ msgstr "Attacher un fichier" #~ msgstr "Attacher un fichier"

View File

@ -21,13 +21,8 @@ msgstr ""
msgid "No notebook has been specified." msgid "No notebook has been specified."
msgstr "" msgstr ""
msgid "Usage: --profile <dir-path>" #, javascript-format
msgstr "" msgid "Usage: %s"
msgid "Usage: --env <dev|prod>"
msgstr ""
msgid "Usage: --log-level <none|error|warn|info|debug>"
msgstr "" msgstr ""
#, javascript-format #, javascript-format
@ -88,9 +83,6 @@ msgstr ""
msgid "USAGE" msgid "USAGE"
msgstr "" msgstr ""
msgid "cat <title>"
msgstr ""
msgid "Displays the given note." msgid "Displays the given note."
msgstr "" msgstr ""
@ -101,9 +93,6 @@ msgstr ""
msgid "Cannot find \"%s\"." msgid "Cannot find \"%s\"."
msgstr "" msgstr ""
msgid "config [name] [value]"
msgstr ""
msgid "" msgid ""
"Gets or sets a config value. If [value] is not provided, it will show the " "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 " "value of [name]. If neither [name] nor [value] is provided, it will list the "
@ -121,17 +110,11 @@ msgstr ""
msgid "%s = %s" msgid "%s = %s"
msgstr "" msgstr ""
msgid "cp <pattern> [notebook]"
msgstr ""
msgid "" msgid ""
"Duplicates the notes matching <pattern> to [notebook]. If no notebook is " "Duplicates the notes matching <pattern> to [notebook]. If no notebook is "
"specified the note is duplicated in the current notebook." "specified the note is duplicated in the current notebook."
msgstr "" msgstr ""
msgid "edit <title>"
msgstr ""
msgid "Edit note." msgid "Edit note."
msgstr "" msgstr ""
@ -152,15 +135,9 @@ msgstr ""
msgid "Starting to edit note. Close the editor to get back to the prompt." msgid "Starting to edit note. Close the editor to get back to the prompt."
msgstr "" msgstr ""
msgid "geoloc <title>"
msgstr ""
msgid "Displays a geolocation URL for the note." msgid "Displays a geolocation URL for the note."
msgstr "" msgstr ""
msgid "import-enex <file> [notebook]"
msgstr ""
msgid "Imports an Evernote notebook file (.enex file)." msgid "Imports an Evernote notebook file (.enex file)."
msgstr "" msgstr ""
@ -202,41 +179,26 @@ msgstr ""
msgid "Importing notes..." msgid "Importing notes..."
msgstr "" msgstr ""
msgid "ls [pattern]"
msgstr ""
msgid "" msgid ""
"Displays the notes in [notebook]. Use `ls /` to display the list of " "Displays the notes in [notebook]. Use `ls /` to display the list of "
"notebooks." "notebooks."
msgstr "" msgstr ""
msgid "-n, --limit <num>"
msgstr ""
msgid "Displays only the first top <num> notes." msgid "Displays only the first top <num> notes."
msgstr "" msgstr ""
msgid "-s, --sort <field>"
msgstr ""
msgid "Sorts the item by <field> (eg. title, updated_time, created_time)." msgid "Sorts the item by <field> (eg. title, updated_time, created_time)."
msgstr "" msgstr ""
msgid "Reverses the sorting order." msgid "Reverses the sorting order."
msgstr "" msgstr ""
msgid "-t, --type <type>"
msgstr ""
msgid "" msgid ""
"Displays only the items of the specific type(s). Can be `n` for notes, `t` " "Displays only the items of the specific type(s). Can be `n` for notes, `t` "
"for todos, or `nt` for notes and todos (eg. `-tt` would display only the " "for todos, or `nt` for notes and todos (eg. `-tt` would display only the "
"todos, while `-ttd` would display notes and todos." "todos, while `-ttd` would display notes and todos."
msgstr "" msgstr ""
msgid "-f, --format <format>"
msgstr ""
msgid "Either \"text\" or \"json\"" msgid "Either \"text\" or \"json\""
msgstr "" msgstr ""
@ -248,33 +210,21 @@ msgstr ""
msgid "Please select a notebook first." msgid "Please select a notebook first."
msgstr "" msgstr ""
msgid "mkbook <notebook>"
msgstr ""
msgid "Creates a new notebook." msgid "Creates a new notebook."
msgstr "" msgstr ""
msgid "mknote <note>"
msgstr ""
msgid "Creates a new note." msgid "Creates a new note."
msgstr "" msgstr ""
msgid "Notes can only be created within a notebook." msgid "Notes can only be created within a notebook."
msgstr "" msgstr ""
msgid "mv <pattern> <destination>"
msgstr ""
msgid "" msgid ""
"Moves the notes matching <pattern> to <destination>. If <pattern> is a note, " "Moves the notes matching <pattern> to <destination>. If <pattern> is a note, "
"it will be moved to the notebook <destination>. If <pattern> is a notebook, " "it will be moved to the notebook <destination>. If <pattern> is a notebook, "
"it will be renamed to <destination>." "it will be renamed to <destination>."
msgstr "" msgstr ""
msgid "rm <pattern>"
msgstr ""
msgid "Deletes the items matching <pattern>." msgid "Deletes the items matching <pattern>."
msgstr "" msgstr ""
@ -292,15 +242,9 @@ msgstr ""
msgid "%d notes match this pattern. Delete them?" msgid "%d notes match this pattern. Delete them?"
msgstr "" msgstr ""
msgid "search <pattern> [notebook]"
msgstr ""
msgid "Searches for the given <pattern> in all the notes." msgid "Searches for the given <pattern> in all the notes."
msgstr "" msgstr ""
msgid "set <note> <name> [value]"
msgstr ""
msgid "Sets the property <name> of the given <note> to the given [value]." msgid "Sets the property <name> of the given <note> to the given [value]."
msgstr "" msgstr ""
@ -310,9 +254,6 @@ msgstr ""
msgid "Synchronises with remote storage." msgid "Synchronises with remote storage."
msgstr "" msgstr ""
msgid "--target <target>"
msgstr ""
msgid "Sync to provided target (defaults to sync.target config value)" msgid "Sync to provided target (defaults to sync.target config value)"
msgstr "" msgstr ""
@ -335,9 +276,6 @@ msgstr ""
msgid "Cancelling..." msgid "Cancelling..."
msgstr "" msgstr ""
msgid "tag <command> [tag] [note]"
msgstr ""
msgid "" msgid ""
"<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] " "<command> can be \"add\", \"remove\" or \"list\" to assign or remove [tag] "
"from [note], or to list the notes associated with [tag]. The command `tag " "from [note], or to list the notes associated with [tag]. The command `tag "
@ -348,9 +286,6 @@ msgstr ""
msgid "Invalid command: \"%s\"" msgid "Invalid command: \"%s\""
msgstr "" msgstr ""
msgid "todo <action> <pattern>"
msgstr ""
msgid "" msgid ""
"<action> can either be \"toggle\" or \"clear\". Use \"toggle\" to toggle the " "<action> can either be \"toggle\" or \"clear\". Use \"toggle\" to toggle the "
"given todo between completed and uncompleted state (If the target is a " "given todo between completed and uncompleted state (If the target is a "
@ -358,9 +293,6 @@ msgid ""
"todo back to a regular note." "todo back to a regular note."
msgstr "" msgstr ""
msgid "use <notebook>"
msgstr ""
msgid "" msgid ""
"Switches to [notebook] - all further operations will happen within this " "Switches to [notebook] - all further operations will happen within this "
"notebook." "notebook."

View File

@ -1,4 +1,4 @@
# Joplin # Joplin (BETA)
Joplin is a note taking and todo application, which can handle a large number of notes organised into notebooks. The notes are searchable, can be copied, tagged and modified with your own text editor. The Android application supports markdown rendering. Joplin is a note taking and todo application, which can handle a large number of notes organised into notebooks. The notes are searchable, can be copied, tagged and modified with your own text editor. The Android application supports markdown rendering.

View File

@ -238,7 +238,7 @@ class OneDriveApi {
async refreshAccessToken() { async refreshAccessToken() {
if (!this.auth_ || !this.auth_.refresh_token) { if (!this.auth_ || !this.auth_.refresh_token) {
this.setAuth(null); this.setAuth(null);
throw new Error('Cannot refresh token: authentication data is missing'); throw new Error(_('Cannot refresh token: authentication data is missing. Starting the synchronisation again may fix the problem.'));
} }
let body = new shim.FormData(); let body = new shim.FormData();