Added getAll().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4946 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2008-02-24 02:58:26 +00:00
parent da02f02777
commit 8823d592fd
+7 -11
View File
@@ -71,23 +71,19 @@ public class MessageBundle
* @param includeParent if true, messages from our parent bundle (and its * @param includeParent if true, messages from our parent bundle (and its
* parent bundle, all the way up the chain will be included). * parent bundle, all the way up the chain will be included).
*/ */
/* COMMENTED OUT: pending proper implementation (and need) public function getAll (
public function getAll ( prefix :String, messages :Array, includeParent :Boolean = true) :void
prefix :String, messages :Array, includeParent :Boolean = true) :void
{ {
var key :String; for (var key :String in _bundle.content) {
// TODO: possibly patch ResourceBundle to have getKeys() if (StringUtil.startsWith(key, prefix)) {
//for (key in _bundle.getKeys()) { messages.push(get(key));
// if (StringUtil.startsWith(key, prefix)) { }
// messages.push(get(key)); }
// }
//}
if (includeParent && _parent != null) { if (includeParent && _parent != null) {
_parent.getAll(prefix, messages, includeParent); _parent.getAll(prefix, messages, includeParent);
} }
} }
*/
/** /**
* Get a String from the resource bundle, or null if there was an * Get a String from the resource bundle, or null if there was an