Added commented-out method that was added to our Java counterpart.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4302 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -58,6 +58,31 @@ public class MessageBundle
|
||||
return getResourceString(key, false) != null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds all messages whose key starts with the specified prefix to the
|
||||
* supplied array.
|
||||
*
|
||||
* @param includeParent if true, messages from our parent bundle (and its
|
||||
* parent bundle, all the way up the chain will be included).
|
||||
*/
|
||||
/* COMMENTED OUT: pending proper implementation (and need)
|
||||
public function getAll (
|
||||
prefix :String, messages :Array, includeParent :Boolean = true) :void
|
||||
{
|
||||
var key :String;
|
||||
// TODO: possibly patch ResourceBundle to have getKeys()
|
||||
//for (key in _bundle.getKeys()) {
|
||||
// if (StringUtil.startsWith(key, prefix)) {
|
||||
// messages.push(get(key));
|
||||
// }
|
||||
//}
|
||||
|
||||
if (includeParent && _parent != null) {
|
||||
_parent.getAll(prefix, messages, includeParent);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
/**
|
||||
* Get a String from the resource bundle, or null if there was an
|
||||
* error.
|
||||
|
||||
Reference in New Issue
Block a user