Skip to content

Commit

Permalink
Merge pull request bigbluebutton#291 from SenecaCDOT-BigBlueButton/ad…
Browse files Browse the repository at this point in the history
…d-another-string

created a new locale string for the chat module
  • Loading branch information
ritzalam committed Nov 1, 2013
2 parents 032f10b + 336c8f7 commit 329d2b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions bigbluebutton-client/locale/en_US/bbbResources.properties
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ bbb.chat.input.accessibilityName = Chat Message Editing Field
bbb.chat.sendBtn = Send
bbb.chat.sendBtn.toolTip = Send Message
bbb.chat.sendBtn.accessibilityName = Send chat message
bbb.chat.contextmenu.copyalltext = Copy All Text
bbb.chat.publicChatUsername = Public
bbb.chat.optionsTabName = Options
bbb.chat.privateChatSelect = Select a person to chat with privately
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,6 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
import org.bigbluebutton.modules.chat.views.ChatMessageRenderer;
import org.bigbluebutton.modules.chat.vo.ChatMessageVO;
import org.bigbluebutton.util.i18n.ResourceUtil;
public static const COPY_ALL_BUTTON:String = "Copy All Text";
public var publicChat:Boolean = false;
public var chatWithUserID:String;
Expand Down Expand Up @@ -325,15 +322,15 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
var contextMenu:ContextMenu = new ContextMenu();
contextMenu.hideBuiltInItems();
var copyAllButton:ContextMenuItem = new ContextMenuItem(COPY_ALL_BUTTON);
var copyAllButton:ContextMenuItem = new ContextMenuItem(ResourceUtil.getInstance().getString("bbb.chat.contextmenu.copyalltext"));
copyAllButton.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, menuItemHandler);
contextMenu.customItems.push(copyAllButton);
this.contextMenu = contextMenu;
}
private function menuItemHandler(e:ContextMenuEvent):void{
if (e.target.caption == COPY_ALL_BUTTON){
if (e.target.caption == ResourceUtil.getInstance().getString("bbb.chat.contextmenu.copyalltext")){
System.setClipboard(chatMessages.getAllMessageAsString());
}
}
Expand All @@ -359,6 +356,8 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
private function localeChanged(e:Event):void {
var modifier:String = ExternalInterface.call("determineModifier");
loadKeyCombos(modifier);
addContextMenuItems();
}
private function loadKeyCombos(modifier:String):void {
Expand Down

0 comments on commit 329d2b9

Please sign in to comment.