src/i18n_phase: there's no need to unescape
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 20 Jun 2015 11:44:01 +0000 (07:44 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Sun, 21 Jun 2015 21:09:20 +0000 (17:09 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

src/frontend/i18n_phase.nit

index dc550af..fac760c 100644 (file)
@@ -131,7 +131,7 @@ redef class AStringExpr
 
        redef fun accept_string_finder(v) do
                var str = value.as(not null).escape_to_gettext
-               var code = "\"{str}\".get_translation(\"{v.domain}\", \"{v.languages_location}\").unescape_nit"
+               var code = "\"{str}\".get_translation(\"{v.domain}\", \"{v.languages_location}\")"
                var parse = v.toolcontext.parse_expr(code)
                replace_with(parse)
                v.add_string(str, location)
@@ -155,7 +155,7 @@ redef class ASuperstringExpr
                end
                fmt = fmt.escape_to_gettext
                v.add_string(fmt, location)
-               var code = "\"{fmt}\".get_translation(\"{v.domain}\", \"{v.languages_location}\").unescape_nit.format()"
+               var code = "\"{fmt}\".get_translation(\"{v.domain}\", \"{v.languages_location}\").format()"
                var parse = v.toolcontext.parse_expr(code)
                if not parse isa ACallExpr then
                        v.toolcontext.error(location, "Fatal error in i18n annotation, the parsed superstring could not be generated properly")