Update locales, add Greek

pull/1636/head
Piero Toffanin 2025-03-30 15:50:36 -04:00
rodzic 9064d455a9
commit 6ab49a5c24
3 zmienionych plików z 17 dodań i 15 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -14,6 +14,7 @@ class Command(BaseCommand):
def add_arguments(self, parser): def add_arguments(self, parser):
parser.add_argument("action", type=str, choices=['extract', 'build']) 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("--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) super(Command, self).add_arguments(parser)
def handle(self, **options): def handle(self, **options):
@ -28,6 +29,7 @@ class Command(BaseCommand):
if not os.path.exists(locale_dir): if not os.path.exists(locale_dir):
os.mkdir(locale_dir) os.mkdir(locale_dir)
if not options.get('skip_extract'):
extract_potree_strings( 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", "vendor", "potree", "build", "potree", "resources", "lang", "en", "translation.json"),
os.path.join(root, "app", "static", "app", "js", "translations", "potree_autogenerated.js") os.path.join(root, "app", "static", "app", "js", "translations", "potree_autogenerated.js")

2
locale

@ -1 +1 @@
Subproject commit 331fb07954dcebc876f0b10c4a9eab8b77e47eab Subproject commit 80b05e9fc7daccbd53d6edf7ad7822ad0157451e