kopia lustrzana https://github.com/OpenDroneMap/WebODM
Update locales, add Greek
rodzic
9064d455a9
commit
6ab49a5c24
2
LOCALES
2
LOCALES
|
@ -1 +1 @@
|
|||
fr es it de tr ru pt_BR pt ko zh_Hant zh_Hans az pl hu id ja th nl kn lt mn nb_NO cs
|
||||
fr es it de tr ru pt_BR pt ko zh_Hant zh_Hans az pl hu id ja th nl kn lt mn nb_NO cs el
|
||||
|
|
|
@ -14,6 +14,7 @@ class Command(BaseCommand):
|
|||
def add_arguments(self, parser):
|
||||
parser.add_argument("action", type=str, choices=['extract', 'build'])
|
||||
parser.add_argument("--safe", action='store_true', required=False, help="Skip invalid languages")
|
||||
parser.add_argument("--skip-extract", action='store_true', required=False, help="Skip extraction of dependencies strings")
|
||||
super(Command, self).add_arguments(parser)
|
||||
|
||||
def handle(self, **options):
|
||||
|
@ -27,19 +28,20 @@ class Command(BaseCommand):
|
|||
locale_dir = os.path.join(root, "locale")
|
||||
if not os.path.exists(locale_dir):
|
||||
os.mkdir(locale_dir)
|
||||
|
||||
extract_potree_strings(
|
||||
os.path.join(root, "app", "static", "app", "js", "vendor", "potree", "build", "potree", "resources", "lang", "en", "translation.json"),
|
||||
os.path.join(root, "app", "static", "app", "js", "translations", "potree_autogenerated.js")
|
||||
)
|
||||
extract_odm_strings(
|
||||
"https://raw.githubusercontent.com/OpenDroneMap/ODM/master/opendm/config.py",
|
||||
os.path.join(root, "app", "static", "app", "js", "translations", "odm_autogenerated.js")
|
||||
)
|
||||
extract_plugin_manifest_strings(
|
||||
os.path.join(root, "coreplugins"),
|
||||
os.path.join(root, "app", "translations", "plugin_manifest_autogenerated.py")
|
||||
)
|
||||
|
||||
if not options.get('skip_extract'):
|
||||
extract_potree_strings(
|
||||
os.path.join(root, "app", "static", "app", "js", "vendor", "potree", "build", "potree", "resources", "lang", "en", "translation.json"),
|
||||
os.path.join(root, "app", "static", "app", "js", "translations", "potree_autogenerated.js")
|
||||
)
|
||||
extract_odm_strings(
|
||||
"https://raw.githubusercontent.com/OpenDroneMap/ODM/master/opendm/config.py",
|
||||
os.path.join(root, "app", "static", "app", "js", "translations", "odm_autogenerated.js")
|
||||
)
|
||||
extract_plugin_manifest_strings(
|
||||
os.path.join(root, "coreplugins"),
|
||||
os.path.join(root, "app", "translations", "plugin_manifest_autogenerated.py")
|
||||
)
|
||||
|
||||
call_command('makemessages', '--keep-pot', *locale_params, '--ignore=build', '--ignore=app/templates/app/registration/*')
|
||||
call_command('makemessages_djangojs', '--keep-pot', *locale_params, '-d=djangojs', '--extension=jsx', '--extension=js', '--ignore=build', '--ignore=app/static/app/js/vendor', '--ignore=app/static/app/bundles', '--ignore=node_modules', '--language=Python')
|
||||
|
|
2
locale
2
locale
|
@ -1 +1 @@
|
|||
Subproject commit 331fb07954dcebc876f0b10c4a9eab8b77e47eab
|
||||
Subproject commit 80b05e9fc7daccbd53d6edf7ad7822ad0157451e
|
Ładowanie…
Reference in New Issue