Closed GoogleCodeExporter closed 9 years ago
[deleted comment]
should be:
Vosao.changeLanguage = function(lang) {
var url = location.href.replace('#','');
var langIndex = url.indexOf('language=');
var sign = location.search.indexOf('?') == -1 ? '?' : '&';
if (langIndex > 0) {
var langAfter=url.substr(langIndex+1);
var langAndIndex=langAfter.indexOf('&');
url = url.substr(0, langIndex)+'language=' + lang;
if(langAndIndex>0){
url=url+langAfter.substr(langAndIndex+1);
}
if(url.indexOf('&')<0){
sign='';
}
}else{
url = url + sign + 'language=' + lang;
}
location.href = url;
};
Original comment by akand...@gmail.com
on 10 Oct 2010 at 2:31
Fixed r931.
Original comment by kinyelo@gmail.com
on 26 Nov 2010 at 5:26
Original issue reported on code.google.com by
akand...@gmail.com
on 10 Oct 2010 at 2:04