We need these for binary compatibility with existing Game Gardens games. We may
need the two argument versions as well, but I'll wait and see. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4378 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -52,6 +52,15 @@ public class MessageBundle
|
||||
return MessageUtil.taint(text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Composes a message key with a single argument. The message can
|
||||
* subsequently be translated in a single call using {@link #xlate}.
|
||||
*/
|
||||
public static String compose (String key, Object arg)
|
||||
{
|
||||
return MessageUtil.compose(key, new Object[] { arg });
|
||||
}
|
||||
|
||||
/**
|
||||
* Composes a message key with an array of arguments. The message can
|
||||
* subsequently be translated in a single call using {@link #xlate}.
|
||||
@@ -70,6 +79,16 @@ public class MessageBundle
|
||||
return MessageUtil.compose(key, args);
|
||||
}
|
||||
|
||||
/**
|
||||
* A convenience method for calling {@link #compose(String,Object[])}
|
||||
* with an array of arguments that will be automatically tainted (see
|
||||
* {@link #taint}).
|
||||
*/
|
||||
public static String tcompose (String key, Object arg)
|
||||
{
|
||||
return MessageUtil.tcompose(key, new Object[] { arg });
|
||||
}
|
||||
|
||||
/**
|
||||
* A convenience method for calling {@link #compose(String,Object[])}
|
||||
* with an array of arguments that will be automatically tainted (see
|
||||
|
||||
Reference in New Issue
Block a user