Changing Default Language

1,491 views
Skip to first unread message

dgalo9

unread,
Aug 24, 2012, 6:54:02 PM8/24/12
to bigblueb...@googlegroups.com
Hi!

I'm trying to develop my server on a VM, I changed the settings in the --> var localeChain = "en_US"; to var localeChain = "es_ES"; in /bigbluebutton-client/resources/prod/lib/

But nothing happens.

Do I have to build again the client (I mean using ANT)??

Thanks.

Chad Pilkey

unread,
Aug 27, 2012, 12:33:46 PM8/27/12
to bigblueb...@googlegroups.com
Anytime you change a file that isn't in bigbluebutton-client/bin you'll have to build the client again for the changes to take effect.

Chad

dgarcia

unread,
Aug 29, 2012, 4:30:43 PM8/29/12
to bigblueb...@googlegroups.com

you want to change bbb default language interface?

dgalo9

unread,
Sep 1, 2012, 1:59:06 PM9/1/12
to bigblueb...@googlegroups.com
Thanks Chad!

Dgarcia, that's what I want but it doesn't work.

dgarcia

unread,
Sep 3, 2012, 12:28:25 PM9/3/12
to bigblueb...@googlegroups.com
ok lets make that change.. in your bigbluebutton client go to /lib folder and open bbb_localization.js with note pad or notepad++  and put your default languaje 

just copy and paste with this code.. and the only change you need to do.. is  var localeChain = "default_languaje"; 

// Check locale
var localeChain = "en_US";
/*
if (navigator.language)
        localeChain = navigator.language;
else if (navigator.browserLanguage)
        localeChain = navigator.browserLanguage;

if(/^([a-z]+)-([a-z]+)$/i.test(localeChain)){
        var matches = /^([a-z]+)-([a-z]+)$/i.exec(localeChain);
        localeChain = matches[1].toLowerCase() + "_" + matches[2].toUpperCase();
}
else if(/^en$/i.test(localeChain)){
        localeChain = "en_US";
}
else if(/^([a-z]+)$/i.test(localeChain)){
        var matches = /^([a-z]+)$/i.exec(localeChain);
        localeChain = matches[1].toLowerCase() + "_" + matches[1].toUpperCase();
}
else{
        localeChain = "en_US";
}
*/
function getLanguage(){
        return localeChain;

dgalo9

unread,
Sep 5, 2012, 9:38:29 PM9/5/12
to bigblueb...@googlegroups.com
And then I have to make use of "Ant"..

dgarcia

unread,
Sep 6, 2012, 11:13:25 PM9/6/12
to bigblueb...@googlegroups.com
no you dont have to do that because you are not make any change in any language file!!!

dgalo9

unread,
Sep 7, 2012, 2:26:42 AM9/7/12
to bigblueb...@googlegroups.com
Thank you very much dgarcia!!
Reply all
Reply to author
Forward
0 new messages