Added missing locale string to ToolBar, Listener module and Presentation module

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@3288 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
DJP 2010-01-13 01:55:10 +00:00
parent 7cee06975b
commit f4a40ed80c
10 changed files with 74 additions and 47 deletions

View File

@ -53,12 +53,15 @@ bbb.viewers.raiseHandBtn.toolTip = Click to raise hand.
# Presentation
## PresentationWindow.mxml
bbb.presentation.title = Presentation
bbb.presentation.uploadPresBtn.toolTip = Upload PDF document for presentation.
bbb.presentation.uploadPresBtn = Upload a document for presentation.
bbb.presentation.uploadPresBtn.toolTip = Upload a document for presentation.
bbb.presentation.backBtn.toolTip = Previous slide.
bbb.presentation.slideNumLbl =
bbb.presentation.forwardBtn.toolTip = Next slide
bbb.presentation.resetZoomBtn.toolTip = Reset Zoom
bbb.presentation.presenterNameLbl = {0} is currently presenting.
bbb.presentation.maximizeRestoreBtn.toolTip = Maximize this window
bbb.presentation.maximizeRestoreBtn.toolTip2 = Restore to previous size
## PresentationWindowMediator.as
bbb.presentation.presenting = {0} is currently presenting.
@ -82,7 +85,7 @@ bbb.presentation.error.convert.thumbnail = Error When Creating Thumbnail. Please
bbb.presentation.converted = Converted {0} of {1} slides.
bbb.presentation.extracting = Extracting slide {0} of {1} slides.
bbb.presentation.ok = OK
bbb.presentation.uploadwindow.presentationfile = PRESENTATION FILE
bbb.presentation.uploadwindow.presentationfile = Presentation file
bbb.presentation.uploadwindow.pdf = PDF
bbb.presentation.uploadwindow.word = WORD
bbb.presentation.uploadwindow.excel = EXCEL
@ -123,6 +126,8 @@ bbb.listeners.title = Voice Participants
bbb.listeners.muteAllBtn.toolTip = Mute all
bbb.listeners.unmuteAllBtn.toolTip = Unmute all
bbb.listeners.ejectBtn.toolTip = Select voice participant to eject.
bbb.listeners.nameLabel.toolTip = Select this user and click button to mute or unmute.
bbb.listeners.ejectTooltip = Click to eject user.
# ListenerItem.mxml
bbb.listenerItem.nameLbl.toolTip = Select this user and click button to mute or unmute.
@ -135,3 +140,8 @@ bbb.publishVideo.startPublishBtn.toolTip = start streaming
# DesktopPublishWindow.mxml
bbb.desktopPublish.title = Desktop Sharing
# ToolbarButton.mxml
bbb.toolbar.phone.toolTip = Start My Microphone
bbb.toolbar.deskshare.toolTip = Share your desktop
bbb.toolbar.video.toolTip = Start My Camera

View File

@ -53,12 +53,15 @@ bbb.viewers.raiseHandBtn.toolTip = Cliquez-ici pour lever la main et demander la
# Presentation
## PresentationWindow.mxml
bbb.presentation.title = Présentation
bbb.presentation.uploadPresBtn.toolTip = Envoyez un document pour présentation.
bbb.presentation.uploadPresBtn = Envoyez un document à présenter
bbb.presentation.uploadPresBtn.toolTip = Envoyez un document à présenter
bbb.presentation.backBtn.toolTip = Slide précédent.
bbb.presentation.slideNumLbl =
bbb.presentation.forwardBtn.toolTip = Slide suivant
bbb.presentation.resetZoomBtn.toolTip = Zoom par défaut
bbb.presentation.presenterNameLbl = {0} est actuellement présentateur.
bbb.presentation.maximizeRestoreBtn.toolTip = Agrandir cette fenêtre
bbb.presentation.maximizeRestoreBtn.toolTip2 = Restaurer à sa taille précédente
## PresentationWindowMediator.as
bbb.presentation.presenting = {0} est en ce moment présentateur.
@ -123,6 +126,8 @@ bbb.listeners.title = Participants conférence voix
bbb.listeners.muteAllBtn.toolTip = Rendre tout le monde muet
bbb.listeners.unmuteAllBtn.toolTip = Rendre la parole à tout le monde
bbb.listeners.ejectBtn.toolTip = Selectionnez un participant à expulser.
bbb.listeners.nameLabel.toolTip = Select this user and click button to mute or unmute.
bbb.listeners.ejectTooltip = Cliquer pour ejecter ce participant.
# ListenerItem.mxml
bbb.listenerItem.nameLbl.toolTip = Selectionnez un utilisateur et cliquez sur le bouton Select this user and click button to mute or unmute.
@ -130,8 +135,13 @@ bbb.listenerItem.talkImg.toolTip = Parler
# PublishWindow.mxml
bbb.publishVideo.title = Webcam / Visio conférence
bbb.publishVideo.startPublishBtn.toolTip = Démarrer ma caméra
bbb.publishVideo.startPublishBtn.toolTip = Activer ma webcam
# DesktopPublishWindow.mxml
bbb.desktopPublish.title = Partage de bureau
# ToolbarButton.mxml
bbb.toolbar.phone.toolTip = Activer mon microphone
bbb.toolbar.deskshare.toolTip = Partager votre bureau
bbb.toolbar.video.toolTip = Activer ma webcam

View File

@ -26,13 +26,14 @@
<mx:Button xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mate="http://mate.asfusion.com/"
icon="{deskShareIcon}"
toolTip="Share your desktop"
toolTip="{ResourceUtil.getInstance().getString('bbb.toolbar.deskshare.toolTip')}"
click="startDeskShare()">
<mx:Script>
<![CDATA[
import org.bigbluebutton.modules.deskShare.events.ShareEvent;
import org.bigbluebutton.common.Images;
import org.bigbluebutton.main.events.MadePresenterEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
private var images:Images = new Images();

View File

@ -29,6 +29,7 @@ package org.bigbluebutton.modules.listeners.view
import org.bigbluebutton.modules.listeners.view.events.ListenerSelectedEvent;
import org.bigbluebutton.modules.listeners.view.events.UserMuteEvent;
import org.bigbluebutton.modules.listeners.view.events.UserTalkEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
import org.puremvc.as3.multicore.interfaces.IMediator;
import org.puremvc.as3.multicore.interfaces.INotification;
import org.puremvc.as3.multicore.patterns.mediator.Mediator;
@ -144,7 +145,7 @@ package org.bigbluebutton.modules.listeners.view
private function handleOpenListenersWindow():void {
_listenersWindow.listeners = proxy.listeners;
_listenersWindow.moderator = proxy.isModerator();
_listenersWindow.title = "Voice Participants";
_listenersWindow.title = ResourceUtil.getInstance().getString('bbb.listeners.title');
_listenersWindow.showCloseButton = false;
_listenersWindow.xPosition = 0;
_listenersWindow.yPosition = 225;

View File

@ -30,11 +30,12 @@
import org.bigbluebutton.modules.listeners.view.events.UserMuteEvent;
import org.bigbluebutton.modules.listeners.ListenersModuleConstants;
import org.bigbluebutton.modules.listeners.view.components.Images;
import org.bigbluebutton.util.i18n.ResourceUtil;
import mx.controls.Image;
import flash.events.MouseEvent;
import mx.controls.Label;
import mx.collections.ArrayCollection;
import mx.controls.TileList;
import flash.events.MouseEvent;
import mx.controls.Label;
import mx.collections.ArrayCollection;
import mx.controls.TileList;
private var images:Images = new Images();
@ -43,7 +44,7 @@
[Bindable] private var talkIcon:Object = images.sound;
[Bindable] private var ejectIcon:Object = images.eject_user;
[Bindable] private var statusTooltip : String = "";
[Bindable] private var ejectTooltip : String = "Click to eject user.";
[Bindable] private var ejectTooltip : String = ResourceUtil.getInstance().getString('bbb.listeners.ejectTooltip');
[Bindable] private var isModerator:Boolean = false;
private function init():void
@ -72,6 +73,6 @@
]]>
</mx:Script>
<mx:Button id="muteBtn" width="18" height="16" icon="{data.muted ? muteIcon : unmuteIcon}" click="muteUser()"/>
<mx:Label id="nameLabel" textAlign="left" text="{data.callerName}" width="147" toolTip="Select this user and click button to mute or unmute."/>
<mx:Label id="nameLabel" textAlign="left" text="{data.callerName}" width="147" toolTip="{ResourceUtil.getInstance().getString('bbb.listeners.nameLabel.toolTip')}"/>
<mx:Image id="talkImg" source="{talkIcon}" visible="{data.talking}" toolTip="Talking"/>
</mx:HBox>

View File

@ -32,6 +32,7 @@
import mx.events.ListEvent;
import org.bigbluebutton.modules.listeners.ListenersModuleConstants;
import org.bigbluebutton.modules.listeners.view.components.Images;
import org.bigbluebutton.util.i18n.ResourceUtil;
import flash.events.MouseEvent;
import mx.controls.Label;
import mx.collections.ArrayCollection;
@ -128,14 +129,14 @@
<mx:ControlBar width="100%">
<mx:Button id="muteAllBtn" icon="{muteAllIcon}"
toolTip="Mute all" click="dispatchEvent(new Event(ListenersModuleConstants.MUTE_ALL))"
toolTip="{ResourceUtil.getInstance().getString('bbb.listeners.muteAllBtn.toolTip')}" click="dispatchEvent(new Event(ListenersModuleConstants.MUTE_ALL))"
visible="{moderator}" width="18" height="18"/>
<mx:Button id="unmuteAllBtn" icon="{unmuteAllIcon}"
toolTip="Unmute all" click="dispatchEvent(new Event(ListenersModuleConstants.UNMUTE_ALL))"
toolTip="{ResourceUtil.getInstance().getString('bbb.listeners.unmuteAllBtn.toolTip')}" click="dispatchEvent(new Event(ListenersModuleConstants.UNMUTE_ALL))"
visible="{moderator}" width="18" height="18"/>
<mx:Spacer width="100%"/>
<mx:Button id="ejectBtn" icon="{ejectIcon}"
toolTip="Select voice participant to eject." click="dispatchEvent(new Event(ListenersModuleConstants.EJECT_LISTENER_EVENT))"
toolTip="{ResourceUtil.getInstance().getString('bbb.listeners.ejectBtn.toolTip')}" click="dispatchEvent(new Event(ListenersModuleConstants.EJECT_LISTENER_EVENT))"
visible="{moderator}" enabled="false" width="18" height="18"/>
</mx:ControlBar>

View File

@ -23,7 +23,7 @@
<mx:Button xmlns:mx="http://www.adobe.com/2006/mxml"
icon="{phoneIcon}" click="startPhone()"
xmlns:mate="http://mate.asfusion.com/"
toolTip="Start My Microphone">
toolTip="{ResourceUtil.getInstance().getString('bbb.toolbar.phone.toolTip')}">
<mate:Listener type="{CallConnectedEvent.CALL_CONNECTED_EVENT}" method="handleCallConnectedEvent"/>
<mate:Listener type="{CallDisconnectedEvent.CALL_DISCONNECTED_EVENT}" method="handleCallDisconnectedEvent"/>
@ -34,6 +34,7 @@
import org.bigbluebutton.modules.phone.events.CallConnectedEvent;
import org.bigbluebutton.modules.phone.events.JoinVoiceConferenceEvent;
import org.bigbluebutton.modules.phone.views.assets.Images;
import org.bigbluebutton.util.i18n.ResourceUtil;
private var images:Images = new Images();
private var localDispatcher:IEventDispatcher;

View File

@ -22,8 +22,8 @@
-->
<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml"
xmlns:mate="http://mate.asfusion.com/"
title="Upload Presentation"
x="168" y="86" layout="absolute" width="600" height="200"
title="{ResourceUtil.getInstance().getString('bbb.fileupload.title')}"
x="168" y="86" layout="absolute" width="600" height="200"
initialize="initData();">
<mate:Dispatcher id="globalDispatch" />
@ -46,9 +46,10 @@
import mx.managers.PopUpManager;
import org.bigbluebutton.common.Images;
import mx.collections.*
import mx.events.ValidationResultEvent;
import mx.validators.*;
import mx.events.FlexEvent;
import mx.events.ValidationResultEvent;
import mx.validators.*;
import mx.events.FlexEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
public var presentationNames:Array = new Array();
[Bindable] public var presentationNamesAC:ArrayCollection;
@ -59,7 +60,7 @@
[Bindable] private var deleteIcon : Class = images.delete_icon;
private var thumbnailTimer:Timer = new Timer(5000);
private var genThumbText:String = "Generating thumbnails..";
private var genThumbText:String = ResourceUtil.getInstance().getString('bbb.fileupload.genThumbText');
private var genThumbDots:String = ".";
private var fileToUpload:FileReference = new FileReference();
@ -119,12 +120,12 @@
private function selectFile():void{
fileToUpload.addEventListener(Event.SELECT, onSelectFile);
fileToUpload.browse([
new FileFilter("Presentation file", "*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx;*.txt;*.rtf;*.odt;*.ods;*.odp;*.odg;*.odc;*.odi;*.jpg;*.png"),
new FileFilter("PDF", "*.pdf"),
new FileFilter("WORD", "*.doc;*.docx;*.odt;*.rtf;*.txt"),
new FileFilter("EXCEL", "*.xls;*.xlsx;*.ods"),
new FileFilter("POWERPOINT", "*.ppt;*.pptx;*.odp"),
new FileFilter("IMAGE", "*.jpg;*.jpeg;*.png")]);
new FileFilter(ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.presentationfile'), "*.pdf;*.doc;*.docx;*.xls;*.xlsx;*.ppt;*.pptx;*.txt;*.rtf;*.odt;*.ods;*.odp;*.odg;*.odc;*.odi;*.jpg;*.png"),
new FileFilter(ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.pdf'), "*.pdf"),
new FileFilter(ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.word'), "*.doc;*.docx;*.odt;*.rtf;*.txt"),
new FileFilter(ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.excel'), "*.xls;*.xlsx;*.ods"),
new FileFilter(ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.powerpoint'), "*.ppt;*.pptx;*.odp"),
new FileFilter(ResourceUtil.getInstance().getString('bbb.presentation.uploadwindow.image'), "*.jpg;*.jpeg;*.png")]);
}
private function onSelectFile(e:Event):void{
@ -239,26 +240,26 @@
</mx:Script>
<mx:Spacer height="100%" x="0" y="0"/>
<mx:Label id="fileLbl" text="File:" x="50" y="11"/>
<mx:Label id="fileLbl" text="{ResourceUtil.getInstance().getString('bbb.fileupload.fileLbl')}" x="50" y="11"/>
<mx:TextInput id="fileTxtInput" width="328" x="87" y="9"/>
<mx:Button id="selectBtn" toolTip="Browse file" click="selectFile()" icon="{addIcon}" width="26" x="432" y="9"/>
<mx:Button id="uploadBtn" label="Upload" toolTip="Upload file" click="startUpload()"
<mx:Button id="selectBtn" toolTip="{ResourceUtil.getInstance().getString('bbb.fileupload.selectBtn.toolTip')}" click="selectFile()" icon="{addIcon}" width="26" x="432" y="9"/>
<mx:Button id="uploadBtn" label="{ResourceUtil.getInstance().getString('bbb.fileupload.uploadBtn')}" toolTip="{ResourceUtil.getInstance().getString('bbb.fileupload.uploadBtn.toolTip')}" click="startUpload()"
enabled="false" icon="{bulletGoIcon}" x="466" y="9"/>
<mx:Label id="progBarLbl" text="Progress:" x="21" y="75" visible="false"/>
<mx:Label id="progBarLbl" text="{ResourceUtil.getInstance().getString('bbb.fileupload.progBarLbl')}" x="21" y="75" visible="false"/>
<mx:ProgressBar id="progressBar" mode="manual" label="" labelPlacement="center" width="460" y="75" x="87" visible="false"/>
<mx:Label id="presentationNamesLb" text="Uploaded Presentations:" x="50" y="40"/>
<mx:Label id="presentationNamesLb" text="{ResourceUtil.getInstance().getString('bbb.fileupload.presentationNamesLbl')}" x="50" y="40"/>
<mx:ComboBox id="presentationNamesCombobox" width="365" x="50" y="66" dataProvider="{presentationNamesAC}"/>
<mx:Button id="deleteBtn" label="" toolTip="Delete Presentation"
<mx:Button id="deleteBtn" label="" toolTip="{ResourceUtil.getInstance().getString('bbb.fileupload.deleteBtn.toolTip')}"
click="deletePresentation()" enabled="true" icon="{deleteIcon}" width="26" x="432" y="66"/>
<mx:Button id="showBtn" label="Show" toolTip="Show Presentation"
<mx:Button id="showBtn" label="{ResourceUtil.getInstance().getString('bbb.fileupload.showBtn')}" toolTip="{ResourceUtil.getInstance().getString('bbb.fileupload.showBtn.toolTip')}"
click="showPresentation()" enabled="true" icon="{bulletGoIcon}" x="466" y="66"/>
<mx:ControlBar horizontalAlign="center" verticalAlign="middle" x="0" y="106">
<mx:Label id="progressLbl" text="" width="100%"/>
<mx:Spacer width="100%"/>
<mx:Button id="okCancelBtn" label="Cancel"
<mx:Button id="okCancelBtn" label="{ResourceUtil.getInstance().getString('bbb.fileupload.okCancelBtn')}"
click="globalDispatch.dispatchEvent(new UploadEvent(UploadEvent.CLOSE_UPLOAD_WINDOW))"/>
</mx:ControlBar>
</mx:TitleWindow>

View File

@ -102,7 +102,7 @@
private var mouseDown:Boolean = false;
[Bindable] private var isPresenter:Boolean = false;
[Bindable] private var presentationLoaded:Boolean = false;
[Bindable] private var currentPresentation:String = "Presentation";
[Bindable] private var currentPresentation:String = ResourceUtil.getInstance().getString('bbb.presentation.title');
// The following code block is to deal with a bug in FLexLib
// with MDI windows not responding well to being maximized
@ -119,15 +119,15 @@
savedX = this.x;
savedY = this.y;
dispatchEvent(new MDIWindowEvent(MDIWindowEvent.MAXIMIZE, this));
isMaximized = true;
windowControls.maximizeRestoreBtn.toolTip = "Restore to previous size";
isMaximized = true;
windowControls.maximizeRestoreBtn.toolTip = ResourceUtil.getInstance().getString('bbb.presentation.maximizeRestoreBtn.toolTip2');
} else{
this.width = savedWindowWidth;
this.height = savedWindowHeight;
this.x = savedX;
this.y = savedY;
isMaximized = false;
windowControls.maximizeRestoreBtn.toolTip = "Maximize this window";
windowControls.maximizeRestoreBtn.toolTip = ResourceUtil.getInstance().getString('bbb.presentation.maximizeRestoreBtn.toolTip');
}
}
@ -241,13 +241,13 @@
thumbnailWindow.y = this.height - 270;
thumbnailWindow.visible = true;
} else if (slideView.slides != null){
slideNumLbl.text = "" + (slideView.selectedSlide + 1) + " of " + slideView.slides.length;
slideNumLbl.text = "" + ResourceUtil.getInstance().getString('bbb.presentation.pages', [(slideView.selectedSlide + 1), slideView.slides.length]);
}
}
private function onSlideHighlighted(e:Event):void{
if (slideView.visible)
slideNumLbl.text = "" + (thumbnailWindow.slideNumber+1) + " of " + slideView.slides.length;
slideNumLbl.text = "" + ResourceUtil.getInstance().getString('bbb.presentation.pages', [(thumbnailWindow.slideNumber + 1), slideView.slides.length]);
}
/**
@ -255,7 +255,7 @@
*/
private function hideThumbs():void{
if (slideView.slides != null)
slideNumLbl.text = "" + (slideView.selectedSlide + 1) + " of " + slideView.slides.length;
slideNumLbl.text = "" + ResourceUtil.getInstance().getString('bbb.presentation.pages', [(slideView.selectedSlide + 1), slideView.slides.length]);
thumbnailWindow.visible = false;
}
@ -298,7 +298,7 @@
this.isPresenter = true;
if (presentationLoaded) {
slideNumLbl.text = (slideView.selectedSlide + 1) + " of " + slideView.slides.length;
slideNumLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.pages', [(slideView.selectedSlide + 1), slideView.slides.length]);
backButton.visible = true;
forwardButton.visible = true;
zoomSlider.visible = true;
@ -317,7 +317,7 @@
this.isPresenter = false;
uploadPres.visible = false;
if (presentationLoaded) {
slideNumLbl.text = (slideView.selectedSlide + 1) + " of " + slideView.slides.length;
slideNumLbl.text = ResourceUtil.getInstance().getString('bbb.presentation.pages', [(slideView.selectedSlide + 1), slideView.slides.length]);
backButton.visible = false;
forwardButton.visible = false;
zoomSlider.visible = false;
@ -409,7 +409,7 @@
<mx:ApplicationControlBar id="presCtrlBar" width="100%" height="{CONTROL_BAR_HEIGHT}">
<mx:Button id="uploadPres" icon="{uploadIcon}" visible="false" width="20" height="20"
toolTip="Upload a document for presentation." click="dispatchEvent(new UploadEvent(UploadEvent.OPEN_UPLOAD_WINDOW))"/>
toolTip="{ResourceUtil.getInstance().getString('bbb.presentation.uploadPresBtn')}" click="dispatchEvent(new UploadEvent(UploadEvent.OPEN_UPLOAD_WINDOW))"/>
<mx:Label id="presenterNameLabel" visible="false" text=""/>
<mx:Spacer width="10%" id="spacer1"/>
<mx:Button id="backButton" icon="{backwardIcon}" visible="false" width="30" height="20"

View File

@ -20,12 +20,13 @@
$Id: $
-->
<mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" icon="{camIcon}" click="openPublishWindow()" creationComplete="init()" toolTip="Start My Camera">
<mx:Button xmlns:mx="http://www.adobe.com/2006/mxml" icon="{camIcon}" click="openPublishWindow()" creationComplete="init()" toolTip="{ResourceUtil.getInstance().getString('bbb.toolbar.video.toolTip')}">
<mx:Script>
<![CDATA[
import org.bigbluebutton.common.Images;
import org.bigbluebutton.modules.videoconf.events.OpenPublishWindowEvent;
import com.asfusion.mate.events.Dispatcher;
import org.bigbluebutton.util.i18n.ResourceUtil;
private var images:Images = new Images();
[Bindable] public var camIcon:Class = images.webcam;