Prechádzať zdrojové kódy

Merge branch 'master' of http://192.168.136.45:3000/SERVER/langer

chanjunkai 5 rokov pred
rodič
commit
08552d542d
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      controller/LangArea.py

+ 2 - 2
controller/LangArea.py

@@ -172,8 +172,8 @@ class LangAreaView(TemplateView):
                 lk = lk.replace('‘', '_')
                 # 正则表达式
                 # re.sub("[a-z]+", "$", "123abc78ab9cdeg00t8")
-                #安卓的把“转为\"
-                content_val = res[l].replace('"', '\\"')
+                content_val = res[l].replace("'", "\\'")
+                content_val = content_val.replace('"', '\\"')
                 content = content + '<string name="' + lk + '">' + content_val + '</string>\n'
         response = StreamingHttpResponse(content)
         response['Content-Type'] = 'application/octet-stream'