Fix removal of some empty translation files
Change-Id: I07714f7d92c88dab8eb7245da402148e21fe496e
diff --git a/cm_crowdin_aosp_sync.py b/cm_crowdin_aosp_sync.py
index 3c40b42..e779e64 100755
--- a/cm_crowdin_aosp_sync.py
+++ b/cm_crowdin_aosp_sync.py
@@ -242,6 +242,9 @@
elif '<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"/>' in open(xml_file).read():
print ('Removing ' + xml_file)
os.remove(xml_file)
+ elif '<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"/>' in open(xml_file).read():
+ print ('Removing ' + xml_file)
+ os.remove(xml_file)
print('\nSTEP 5: Push translations to Git')
# Get all files that Crowdin pushed