implement gettext localization

This allows all the text to be localized via Weblate.  This is a quick
overview of all the strings, but there are certainly some that were left
out.

closes #342
This commit is contained in:
Hans-Christoph Steiner 2017-09-13 18:03:57 +02:00
parent e4ca82d80c
commit 278d67d960
24 changed files with 285 additions and 235 deletions

View file

@ -40,9 +40,10 @@ import xml.dom.minidom
import zipfile
from argparse import ArgumentParser
from .exception import FDroidException
from . import _
from . import common
from . import server
from .exception import FDroidException
options = None
@ -151,11 +152,11 @@ def main():
common.setup_global_opts(parser)
parser.add_argument("--git-repo",
default=os.path.join(os.getcwd(), 'binary_transparency'),
help="Path to the git repo to use as the log")
help=_("Path to the git repo to use as the log"))
parser.add_argument("-u", "--url", default='https://f-droid.org',
help="The base URL for the repo to log (default: https://f-droid.org)")
help=_("The base URL for the repo to log (default: https://f-droid.org)"))
parser.add_argument("--git-remote", default=None,
help="Push the log to this git remote repository")
help=_("Push the log to this git remote repository"))
options = parser.parse_args()
if options.verbose: