summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2020-09-16 12:51:59 +0100
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2020-09-16 12:51:59 +0100
commitf20b29dcb780333cba4d6e895ceba549ddfbee80 (patch)
tree9e83bae16d427f4c7099573a5170fc99aa9776b8 /scripts
parent713d896d3664c8266a7b08feea480735d2a8b390 (diff)
SL-13705 - language list defaults to the standard supported set of FR, ES, IT, PT, JA, DE. '--lang all' will also use this list
Diffstat (limited to 'scripts')
-rw-r--r--scripts/code_tools/modified_strings.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/code_tools/modified_strings.py b/scripts/code_tools/modified_strings.py
index 1dbd20f1b4..762f1b3845 100644
--- a/scripts/code_tools/modified_strings.py
+++ b/scripts/code_tools/modified_strings.py
@@ -277,7 +277,7 @@ if __name__ == "__main__":
parser.add_argument("--rev", help="revision with modified strings, default HEAD", default="HEAD")
parser.add_argument("--rev_base", help="previous revision to compare against, default master", default="master")
parser.add_argument("--base_lang", help="base language, default en (normally leave unchanged - other values are only useful for testing)", default="en")
- parser.add_argument("--lang", help="target languages, or all", nargs="+")
+ parser.add_argument("--lang", help="target languages, or all", nargs="+", default = ["all"])
args = parser.parse_args()
cwd = os.getcwd()
@@ -305,9 +305,10 @@ if __name__ == "__main__":
# Find target languages
valid_langs = [tree.name.lower() for tree in xui_base_tree if tree.name.lower() != args.base_lang.lower()]
+ supported_langs = ["fr", "es", "it", "pt", "ja", "de"]
langs = [l.lower() for l in args.lang]
if "all" in args.lang:
- langs = valid_langs
+ langs = supported_langs
langs = sorted(langs)
for lang in langs:
if not lang in valid_langs: