From: Hans-Christoph Steiner Date: Fri, 13 Oct 2017 12:50:22 +0000 (+0200) Subject: include all argparse strings in translation template X-Git-Tag: 0.9~56^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6a8152af1546973a9924061489ae5e55d3a36ea7;p=fdroidserver.git include all argparse strings in translation template The Python argparse library has its own strings, which are translatable via gettext. This gets those sources strings from the library, and includes them in this project. Since gettext is invoked and configured in fdroidserver, fdroidserver needs to handle the translations for the libraries it uses. --- diff --git a/locale/Makefile b/locale/Makefile index 15c49d8d..fdfa804c 100644 --- a/locale/Makefile +++ b/locale/Makefile @@ -1,5 +1,8 @@ -FILES = ../fdroid $(wildcard ../fdroidserver/*.py) +FILES = ../fdroid $(wildcard ../fdroidserver/*.py) \ + $(wildcard /usr/lib/python3.*/argparse.py) \ + $(wildcard /usr/lib/python3.*/optparse.py) \ + $(wildcard /usr/lib/python3.*/getopt.py) # these are the supported languages ALL_LINGUAS = de es pt_BR pt_PT tr zh_Hans zh_Hant diff --git a/locale/fdroidserver.pot b/locale/fdroidserver.pot index 89419565..c49eff0c 100644 --- a/locale/fdroidserver.pot +++ b/locale/fdroidserver.pot @@ -5,9 +5,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: fdroidserver 0.8-134-gf4c5c29\n" +"Project-Id-Version: fdroidserver 0.8-135-g16dd6d28\n" "Report-Msgid-Bugs-To: https://gitlab.com/fdroid/fdroidserver/issues\n" -"POT-Creation-Date: 2017-10-13 14:38+0200\n" +"POT-Creation-Date: 2017-10-13 12:47+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -22,16 +22,42 @@ msgstr "" msgid "\"%s/\" has no matching metadata file!" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "%(option)s option requires %(number)d argument" +msgid_plural "%(option)s option requires %(number)d arguments" +msgstr[0] "" +msgstr[1] "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "%(prog)s: error: %(message)s\n" +msgstr "" + #: ../fdroidserver/scanner.py #, python-format msgid "%d problems found" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "%prog [options]" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "%r is not callable" +msgstr "" + #: ../fdroidserver/lint.py #, python-format msgid "%s is not an accepted build field" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "%s option does not take a value" +msgstr "" + #: ../fdroidserver/index.py msgid "'keypass' not found in config.py!" msgstr "" @@ -48,6 +74,10 @@ msgstr "" msgid "'repo_keyalias' not found in config.py!" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "'required' is an invalid argument for positionals" +msgstr "" + #: ../fdroidserver/common.py msgid "'sdk_path' not set in 'config.py'!" msgstr "" @@ -79,6 +109,10 @@ msgstr "" msgid "...checkupdate failed for {appid} : {error}" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid ".__call__() not defined" +msgstr "" + #: ../fdroidserver/lint.py msgid "/issues is missing" msgstr "" @@ -663,6 +697,10 @@ msgstr "" msgid "Only process apps with auto-updates" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "Options" +msgstr "" + #: ../fdroidserver/import.py msgid "Overall license of the project." msgstr "" @@ -1026,6 +1064,15 @@ msgstr "" msgid "Update the wiki" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "Usage" +msgstr "" + +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "Usage: %s\n" +msgstr "" + #: ../fdroidserver/lint.py msgid "Use /HEAD instead of /master to point at a file in the default branch" msgstr "" @@ -1075,6 +1122,16 @@ msgstr "" msgid "You can use ANDROID_HOME to set the path to your SDK, i.e.:" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "ambiguous option: %(option)s could match %(matches)s" +msgstr "" + +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "ambiguous option: %s (%s?)" +msgstr "" + msgid "app-id in the form APPID" msgstr "" @@ -1101,18 +1158,107 @@ msgstr "" msgid "applicationId with optional versionCode in the form APPID[:VERCODE]" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "argument \"-\" with mode %r" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "can't open '%s': %s" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "cannot have multiple subparser arguments" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "cannot merge actions - two groups are named %r" +msgstr "" + #: ../fdroidserver/server.py msgid "command to execute, either 'init' or 'update'" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "complex" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "conflicting option string: %s" +msgid_plural "conflicting option strings: %s" +msgstr[0] "" +msgstr[1] "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "dest= is required for options like %r" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "expected %s argument" +msgid_plural "expected %s arguments" +msgstr[0] "" +msgstr[1] "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "expected at least one argument" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "expected at most one argument" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "expected one argument" +msgstr "" + +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "floating-point" +msgstr "" + #: ../fdroidserver/metadata.py msgid "force errors to be warnings, or ignore" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "ignored explicit argument %r" +msgstr "" + #: ../fdroidserver/index.py msgid "index-v1 must have a signature, use `fdroid signindex` to create it!" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "integer" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "invalid %(type)s value: %(value)r" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "invalid choice: %(value)r (choose from %(choices)s)" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "invalid conflict_resolution value: %r" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "" +"invalid option string %(option)r: must start with a character " +"%(prefix_chars)r" +msgstr "" + #: ../fdroidserver/server.py #, python-brace-format msgid "" @@ -1132,14 +1278,33 @@ msgstr "" msgid "mirror '%s' does not end with 'fdroid'!" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "mutually exclusive arguments must be optional" +msgstr "" + #: ../fdroidserver/signatures.py msgid "no APK supplied" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "no such option: %s" +msgstr "" + #: ../fdroid msgid "no version info found!" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "not allowed with argument %s" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "one of the arguments %s is required" +msgstr "" + #: ../fdroidserver/index.py ../fdroidserver/common.py msgid "only accepts strings, lists, and tuples" msgstr "" @@ -1149,6 +1314,54 @@ msgstr "" msgid "option %s: If you really want to install all the signed apps, use --all" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "option %s: invalid %s value: %r" +msgstr "" + +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +#, python-format +msgid "option %s: invalid choice: %r (choose from %s)" +msgstr "" + +#: /usr/lib/python3.5/getopt.py /usr/lib/python3.6/getopt.py +#, python-format +msgid "option -%s not recognized" +msgstr "" + +#: /usr/lib/python3.5/getopt.py /usr/lib/python3.6/getopt.py +#, python-format +msgid "option -%s requires argument" +msgstr "" + +#: /usr/lib/python3.5/getopt.py /usr/lib/python3.6/getopt.py +#, python-format +msgid "option --%s must not have an argument" +msgstr "" + +#: /usr/lib/python3.5/getopt.py /usr/lib/python3.6/getopt.py +#, python-format +msgid "option --%s not a unique prefix" +msgstr "" + +#: /usr/lib/python3.5/getopt.py /usr/lib/python3.6/getopt.py +#, python-format +msgid "option --%s not recognized" +msgstr "" + +#: /usr/lib/python3.5/getopt.py /usr/lib/python3.6/getopt.py +#, python-format +msgid "option --%s requires argument" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "optional arguments" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "positional arguments" +msgstr "" + #: ../fdroidserver/signatures.py #, python-brace-format msgid "" @@ -1161,15 +1374,48 @@ msgstr "" msgid "s3cmd sync indexes {path} to {url} and delete" msgstr "" +#: /usr/lib/python3.5/optparse.py /usr/lib/python3.6/optparse.py +msgid "show program's version number and exit" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.5/optparse.py +#: /usr/lib/python3.6/argparse.py /usr/lib/python3.6/optparse.py +msgid "show this help message and exit" +msgstr "" + #: ../fdroidserver/signatures.py msgid "signed APK, either a file-path or HTTPS URL." msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "the following arguments are required: %s" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "unexpected option string: %s" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "unknown parser %(parser_name)r (choices: %(choices)s)" +msgstr "" + +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +#, python-format +msgid "unrecognized arguments: %s" +msgstr "" + #: ../fdroidserver/common.py #, python-brace-format msgid "unsafe permissions on '{config_file}' (should be 0600)!" msgstr "" +#: /usr/lib/python3.5/argparse.py /usr/lib/python3.6/argparse.py +msgid "usage: " +msgstr "" + #: ../fdroid msgid "usage: fdroid [-h|--help|--version] []" msgstr ""