Some bits and bobs: there are ResourceBundle and Locale classes in the mx

package, use those. The ResourceBundle stuff is not quite working now due
to bugs in beta3, but I'll loop back to it later.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4126 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2006-05-18 22:39:01 +00:00
parent 8de54d537c
commit 0ac15b0e3c
6 changed files with 32 additions and 34 deletions
@@ -186,8 +186,8 @@ public class ChatDirector extends BasicDirector
var key :String = "c." + command;
if (msg.exists(key)) {
var tokens :Array = msg.get(key).split(/\s+/);
for (var ii :int = 0; ii < tokens.length; ii++) {
_handlers.put(tokens[ii], handler);
for each (var cmd :Object in tokens) {
_handlers.put(cmd, handler);
}
} else {
// fall back to just using the English command
@@ -276,8 +276,8 @@ public class ChatDirector extends BasicDirector
*/
public function dispatchMessage (message :ChatMessage) :void
{
for (var ii :int = 0; ii < _displays.length; ii++) {
(_displays.getItemAt(ii) as ChatDisplay).displayMessage(message);
for each (var display :ChatDisplay in _displays) {
display.displayMessage(message);
}
}
@@ -49,7 +49,7 @@ public class HelpHandler extends CommandHandler
var cmds :Array = possibleCmds.keys();
cmds.sort();
var cmdList :String = "";
for (var skey :String in cmds) {
for each (var skey :String in cmds) {
cmdList += " /" + skey;
}
return MessageBundle.tcompose("m.usage_help", cmdList);