1
0
Fork 0
mirror of https://github.com/M66B/NetGuard.git synced 2024-12-22 07:43:15 +00:00
NetGuard/tools/Crowdin-Android-Importer.patch
2018-02-02 17:59:06 +01: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