layout and language changer

This commit is contained in:
2012-12-11 17:04:45 +01:00
parent 754806b61f
commit 63cb3593ed
7 changed files with 16 additions and 2 deletions
@@ -187,6 +187,9 @@ function Qupdate(selector){
setTranslations(selector);
}
function setTranslations(selector){
var list = $('#top-navigation-list');
list.find('.locale').show();
list.find('.locale-'+$locale).hide();
if(selector){
$(selector).find('[data-t]').each(function(){$(this).text(t($(this).attr('data-t')))})
}else{