From e28f419b220fcb2f02bc53e1d1ef122b59a3f03a Mon Sep 17 00:00:00 2001 From: Ray Greenwell Date: Wed, 6 Dec 2006 21:19:52 +0000 Subject: [PATCH] escape() has nothing to do with the unescape() just below it, it's used to prepare messages before handing them off to a MessageFormat. We don't have those in actionscript, so we don't need to prepare. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4471 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/as/com/threerings/util/MessageBundle.as | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/as/com/threerings/util/MessageBundle.as b/src/as/com/threerings/util/MessageBundle.as index 73b80b9a3..7faadecf0 100644 --- a/src/as/com/threerings/util/MessageBundle.as +++ b/src/as/com/threerings/util/MessageBundle.as @@ -180,7 +180,7 @@ public class MessageBundle return (key + args); } - return mx.utils.StringUtil.substitute(escape(msg), args); + return mx.utils.StringUtil.substitute(msg, args); } /** @@ -355,19 +355,6 @@ public class MessageBundle return qualifiedKey.substring(qsidx + 1); } - /** - * Used to escape single quotes so that they are not interpreted by - * {@link MessageFormat}. As we assume all single quotes are to be - * escaped, we cannot use the characters { and - * } in our translation strings, but this is a small - * price to pay to have to differentiate between messages that will - * and won't eventually be parsed by a {@link MessageFormat} instance. - */ - public static function escape (val :String) :String - { - return val.replace("'", "''"); - } - /** * Unescapes characters that are escaped in a call to compose. */