summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbig biff <bigbiff@teamw.in>2019-04-17 02:20:04 +0200
committerGerrit Code Review <gerrit2@gerrit.omnirom.org>2019-04-17 02:20:04 +0200
commit7af226083a3bf497828d0bc32287b6c835bb879f (patch)
treed43e75827b4604d59fe970d90bc279d93bd460a7
parentUpdated Russian localization, bugs fixed (letter Ё, cities in time zones are correct, correct checksum, and other minor fixes). (diff)
parentlanguages: encode for utf-8 in the appropriate places. (diff)
downloadandroid_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.tar
android_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.tar.gz
android_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.tar.bz2
android_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.tar.lz
android_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.tar.xz
android_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.tar.zst
android_bootable_recovery-7af226083a3bf497828d0bc32287b6c835bb879f.zip
Diffstat (limited to '')
-rw-r--r--scripts/language_helper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/language_helper.py b/scripts/language_helper.py
index ae08363cc..9fa956b2d 100644
--- a/scripts/language_helper.py
+++ b/scripts/language_helper.py
@@ -78,7 +78,7 @@ otherdisplay = otherdoc.getElementsByTagName('display')
for disnode in otherdisplay:
if disnode.nodeType == disnode.ELEMENT_NODE:
language.appendChild(disnode)
- otherlang = disnode.firstChild.data
+ otherlang = disnode.firstChild.data.encode("utf-8")
print otherlang
# resources
@@ -128,7 +128,7 @@ for resnode in enres:
resources.appendChild(others)
break
if found == False:
- print "'%s' present in English and not in %s" % (child.attributes['name'].value, otherlang)
+ print "'%s' present in English and not in %s" % (child.attributes['name'].value.encode("utf-8"), otherlang)
notfound_err = "NOT FOUND " + child.toxml()
notfound_comment = doc.createComment(notfound_err)
resources.appendChild(notfound_comment)