No reason that embedded translation strings can't also be qualified (it's
quite necessary in fact). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2594 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MessageBundle.java,v 1.19 2003/03/05 23:27:39 mdb Exp $
|
// $Id: MessageBundle.java,v 1.20 2003/05/20 20:58:31 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.util;
|
package com.threerings.util;
|
||||||
|
|
||||||
@@ -399,11 +399,10 @@ public class MessageBundle
|
|||||||
{
|
{
|
||||||
// sanity check
|
// sanity check
|
||||||
if (bundle.indexOf(QUAL_PREFIX) != -1 ||
|
if (bundle.indexOf(QUAL_PREFIX) != -1 ||
|
||||||
bundle.indexOf(QUAL_SEP) != -1 ||
|
bundle.indexOf(QUAL_SEP) != -1) {
|
||||||
key.indexOf(QUAL_PREFIX) != -1) {
|
|
||||||
String errmsg = "Message bundle may not contain '" + QUAL_PREFIX +
|
String errmsg = "Message bundle may not contain '" + QUAL_PREFIX +
|
||||||
"' or '" + QUAL_SEP + "' and message key may not contain '" +
|
"' or '" + QUAL_SEP + "' [bundle=" + bundle +
|
||||||
QUAL_PREFIX + "' [bundle=" + bundle + ", key=" + key + "]";
|
", key=" + key + "]";
|
||||||
throw new IllegalArgumentException(errmsg);
|
throw new IllegalArgumentException(errmsg);
|
||||||
}
|
}
|
||||||
return QUAL_PREFIX + bundle + QUAL_SEP + key;
|
return QUAL_PREFIX + bundle + QUAL_SEP + key;
|
||||||
|
|||||||
Reference in New Issue
Block a user