rework no_argument to be easier to translate
This commit is contained in:
+2
-2
@@ -78,11 +78,11 @@ func main() {
|
||||
|
||||
switch os.Args[1] {
|
||||
case "refresh":
|
||||
argCheck(c.Args(), 0, false, core.TranslateString("'refresh' %s", "errors.no_argument", nil))
|
||||
argCheck(c.Args(), 0, false, localizer.Get("errors.no_argument", &localizations.Replacements{"command": "'refresh'"}))
|
||||
core.Timeout = *refreshTimeoutFlag
|
||||
fetch.RefreshAll(&core.Data, *refreshWorkersFlag)
|
||||
case "regenerate":
|
||||
argCheck(c.Args(), 0, false, core.TranslateString("'regenerate' %s", "errors.no_argument", nil))
|
||||
argCheck(c.Args(), 0, false, localizer.Get("errors.no_argument", &localizations.Replacements{"command": "'regenerate'"}))
|
||||
case "add":
|
||||
argCheck(c.Args(), 1, true, localizer.Get("errors.no_url_add"))
|
||||
|
||||
|
||||
@@ -9,8 +9,7 @@ no_url_remove: Please provide a URL to remove.
|
||||
url_parse: 'Error parsing URL: {{.error}}'
|
||||
url_add: 'Error adding URL: {{.error}}'
|
||||
|
||||
# of the format "'<command>' doesn't take an argument!"
|
||||
no_argument: doesn't take an argument!
|
||||
no_argument: {{.command}} doesn't take an argument!
|
||||
|
||||
## core/core.go
|
||||
read_file_error: 'error reading ''{{.file}}'': {{.error}}'
|
||||
|
||||
@@ -9,8 +9,7 @@ no_url_remove: Merci d'indiquer une URL à supprimer.
|
||||
url_parse: 'Erreur lors de l''analyse de l''URL: {{.error}}'
|
||||
url_add: 'Erreur lors de l''ajout de l''URL: {{.error}}'
|
||||
|
||||
# of the format "'<command>' doesn't take an argument!"
|
||||
no_argument: ne prend pas d'argument!
|
||||
no_argument: {{.command}} ne prend pas d'argument!
|
||||
|
||||
## core/core.go
|
||||
read_file_error: 'erreur lors de la lecture de ''{{.file}}'': {{.error}}'
|
||||
|
||||
Reference in New Issue
Block a user