Use Localazy's langAliases for Indonesian (#4801)
This commit is contained in:
parent
5a8919b6e3
commit
f2abc1799d
2 changed files with 8 additions and 10 deletions
|
|
@ -38,14 +38,6 @@ if [[ $allFiles == 1 ]]; then
|
||||||
find . -name 'translations.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \;
|
find . -name 'translations.xml' -exec ./tools/localazy/formatXmlResourcesFile.py {} \;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
set +e
|
|
||||||
echo "Moving files from values-id to values-in..."
|
|
||||||
find . -type d -name 'values-id' -execdir mv {}/translations.xml {}/../values-in/translations.xml \; 2> /dev/null
|
|
||||||
|
|
||||||
echo "Deleting all the folders values-id..."
|
|
||||||
find . -type d -name 'values-id' -exec rm -rf {} \; 2> /dev/null
|
|
||||||
set -e
|
|
||||||
|
|
||||||
echo "Checking forbidden terms..."
|
echo "Checking forbidden terms..."
|
||||||
find . -name 'localazy.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \;
|
find . -name 'localazy.xml' -exec ./tools/localazy/checkForbiddenTerms.py {} \;
|
||||||
if [[ $allFiles == 1 ]]; then
|
if [[ $allFiles == 1 ]]; then
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,10 @@ for entry in config["modules"]:
|
||||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
"excludeKeys": list(map(lambda i: "REGEX:" + i, excludeRegex)),
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
||||||
]
|
],
|
||||||
|
"langAliases": {
|
||||||
|
"id": "in"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
allActions.append(actionTranslation)
|
allActions.append(actionTranslation)
|
||||||
allRegexToExcludeFromMainModule.extend(entry["includeRegex"])
|
allRegexToExcludeFromMainModule.extend(entry["includeRegex"])
|
||||||
|
|
@ -88,7 +91,10 @@ if allFiles:
|
||||||
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
|
"excludeKeys": list(map(lambda i: "REGEX:" + i, allRegexToExcludeFromMainModule + regexToAlwaysExclude)),
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
"!equals: ${langAndroidResNoScript}, en | equals: ${file}, content.json"
|
||||||
]
|
],
|
||||||
|
"langAliases": {
|
||||||
|
"id": "in"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
allActions.append(mainActionTranslation)
|
allActions.append(mainActionTranslation)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue