Check to see if the message key is tainted and don't translate if it is.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1383 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: MessageManager.java,v 1.9 2003/12/11 06:41:50 mdb Exp $
|
// $Id: MessageManager.java,v 1.10 2004/01/28 00:45:05 ray Exp $
|
||||||
//
|
//
|
||||||
// samskivert library - useful routines for java programs
|
// samskivert library - useful routines for java programs
|
||||||
// Copyright (C) 2001 Michael Bayne
|
// Copyright (C) 2001 Michael Bayne
|
||||||
@@ -86,6 +86,11 @@ public class MessageManager
|
|||||||
return "[null message key]";
|
return "[null message key]";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// if the key is tainted, just strip the taint character
|
||||||
|
if (path.startsWith(MessageUtil.TAINT_CHAR)) {
|
||||||
|
return path.substring(1);
|
||||||
|
}
|
||||||
|
|
||||||
// attempt to determine whether or not this is a compound key
|
// attempt to determine whether or not this is a compound key
|
||||||
int tidx = path.indexOf("|");
|
int tidx = path.indexOf("|");
|
||||||
if (tidx != -1) {
|
if (tidx != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user