mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 23:10:29 +03:00
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:
parent
e4ca82d80c
commit
278d67d960
24 changed files with 285 additions and 235 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue