You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
FairEmail/tools/Crowdin-Android-Importer.patch

30 lines
770 B

diff --git a/crowdin.py b/crowdin.py
old mode 100755
new mode 100644
diff --git a/helper.py b/helper.py
index d3a57c9..7ef7d14 100644
--- a/helper.py
+++ b/helper.py
@@ -109,8 +109,12 @@ def GetResDirectory(path):
def GetTargetStringsXml(targetResDirectory, langCode):
- country = langCode[0:2]
- variant = langCode[3:]
+ if langCode == 'fil':
+ country = 'fil'
+ variant = ''
+ else:
+ country = langCode[0:2]
+ variant = langCode[3:]
if variant is not None and len(variant) > 0:
variant = "-r" + variant
@@ -127,4 +131,4 @@ def IsSingleFolderUpdate(path):
def IsDefaultStringsXml(path):
if "res/values/strings.xml" in path:
return True
- return False
\ No newline at end of file
+ return False