1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-27 18:27:43 +00:00
FairEmail/tools/Crowdin-Android-Importer.patch
2018-08-02 15:35:52 +00:00

29 lines
770 B
Diff

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