- externalize texts for localization

This commit is contained in:
Richard Alam 2011-09-12 13:55:00 +00:00
parent c4eb418bca
commit 9332f09844
2 changed files with 31 additions and 17 deletions

View File

@ -15,6 +15,20 @@ bbb.oldlocalewindow.reminder1=You may have an old language translations of BigBl
bbb.oldlocalewindow.reminder2=Please clear your browser's cache and try again.
bbb.oldlocalewindow.windowTitle=Warning: Old Language Translations
# MicSettings.mxml
bbb.micSettings.audioSetup=Audio Setup
bbb.micSettings.needHeadset=You need to use a headset with BigBlueButton.
bbb.micSettings.listen=1. Listen
bbb.micSettings.clickToPlaySound=Click to play sound.
bbb.micSettings.playSound=Play Sound
bbb.micSettings.hearFromHeadset=You should hear audio in your headset (not your computer speakers).
bbb.micSettings.speak=2. Speak
bbb.micSettings.speakIntoMic=Speak into the microphone.
bbb.micSettings.micActivity=Microphone Activity
bbb.micSettings.changeMic=Change Microphone
bbb.micSettings.ready=3. Ready
bbb.micSettings.join=Join
# MainToolbar.mxml
bbb.mainToolbar.helpBtn = Help
bbb.mainToolbar.logoutBtn = Logout

View File

@ -8,6 +8,7 @@
import org.bigbluebutton.common.LogUtil;
import org.bigbluebutton.main.events.BBBEvent;
import org.bigbluebutton.util.i18n.ResourceUtil;
private var url:String = "assets/audio-test.mp3";
private var channel:SoundChannel;
@ -15,7 +16,7 @@
private var timer:Timer;
private var mic:Microphone;
private var playingAudio:Boolean = false;
private function initDefaultMic():void {
mic = Microphone.getMicrophone(-1);
mic.setLoopBack(true);
@ -97,52 +98,51 @@
event.payload['useMicrophone'] = true;
dispatchEvent(event);
PopUpManager.removePopUp(this);
}
}
]]>
</mx:Script>
<mx:VBox width="100%" height="100%">
<mx:HBox width="100%">
<mx:Spacer width="50%"/>
<mx:Label fontSize="20" text="Audio Setup"/>
<mx:Label fontSize="20" text="{ResourceUtil.getInstance().getString('bbb.micSettings.audioSetup')}"/>
<mx:Spacer width="50%"/>
</mx:HBox>
<mx:HBox width="100%">
<mx:Spacer width="50%"/>
<mx:Label fontSize="16" color="red" text="You need to use a headset with BigBlueButton."/>
<mx:Label fontSize="16" color="red" text="{ResourceUtil.getInstance().getString('bbb.micSettings.needHeadset')}"/>
<mx:Spacer width="50%"/>
</mx:HBox>
<mx:HBox width="100%" height="50%">
<mx:VBox width="45%" height="100%">
<mx:Label fontSize="18" text="1. Listen"/>
<mx:Label text="Click Play Sound."/>
<mx:Text text="You should hear audio in your headset (not your computer speakers)."/>
<mx:Label fontSize="18" text="{ResourceUtil.getInstance().getString('bbb.micSettings.listen')}"/>
<mx:Label text="{ResourceUtil.getInstance().getString('bbb.micSettings.clickToPlaySound')}"/>
<mx:Text text="{ResourceUtil.getInstance().getString('bbb.micSettings.hearFromHeadset')}"/>
<mx:Text text="Click here for help."/>
</mx:VBox>
<mx:Spacer width="10%"/>
<mx:VBox width="45%" height="100%">
<mx:Button id="playButton" label="Play Sound" click="playButtonClickHandler()" toggle="true"/>
<mx:Button id="playButton" label="{ResourceUtil.getInstance().getString('bbb.micSettings.playSound')}" click="playButtonClickHandler()" toggle="true"/>
</mx:VBox>
</mx:HBox>
<mx:HBox width="100%" height="50%">
<mx:VBox width="45%" height="100%">
<mx:Label fontSize="18" text="2. Speak"/>
<mx:Label text="Speak into the microphone."/>
<mx:Text text="You should hear audio in your headset (not your computer speakers)."/>
<mx:Label fontSize="18" text="{ResourceUtil.getInstance().getString('bbb.micSettings.speak')}"/>
<mx:Label text="{ResourceUtil.getInstance().getString('bbb.micSettings.speakIntoMic')}"/>
<mx:Text text="{ResourceUtil.getInstance().getString('bbb.micSettings.hearFromHeadset')}"/>
<mx:Text text="Click here for help."/>
</mx:VBox>
<mx:Spacer width="10%"/>
<mx:VBox width="45%" height="100%">
<mx:ProgressBar id="micLevel1" minimum="0" maximum="100" label="Activity" labelPlacement="left"
<mx:ProgressBar id="micLevel1" minimum="0" maximum="100" label="{ResourceUtil.getInstance().getString('bbb.micSettings.micActivity')}" labelPlacement="left"
direction="right" mode="manual" visible="true" width="120"/>
<mx:Label id="mic1Label" text="Microphone Volume" />
<mx:Button id="settingBtn" label="Change Microphone" click="showMicSettingsPanel()"/>
<mx:Label id="mic1Label" text="Microphone Name" />
<mx:Button id="settingBtn" label="{ResourceUtil.getInstance().getString('bbb.micSettings.changeMic')}" click="showMicSettingsPanel()"/>
</mx:VBox>
</mx:HBox>
<mx:Label fontSize="18" text="3. Ready"/>
<mx:Label fontSize="18" text="{ResourceUtil.getInstance().getString('bbb.micSettings.ready')}"/>
<mx:HBox width="100%">
<mx:Spacer width="50%"/>
<mx:Button id="okBtn" label="Join" click="closeWindow()"/>
<mx:Button id="okBtn" label="{ResourceUtil.getInstance().getString('bbb.micSettings.join')}" click="closeWindow()"/>
<mx:Spacer width="50%"/>
</mx:HBox>
<mx:HBox width="100%">