Browse Source

[core] Fix unicode string for KO escaping issue

Enrico Berti 10 years ago
parent
commit
c938a41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/views.py

+ 1 - 1
desktop/core/src/desktop/views.py

@@ -490,4 +490,4 @@ def check_config_ajax(request):
 
 # This is a global non-view for inline KO i18n
 def _ko(str=""):
-  return repr(_(str)).replace("'", "\\'")
+  return _(str).replace("'", "\\'")