Saturday 17 August 2013

Localize popover twitter bootstrap

Localize popover twitter bootstrap

I'm trying to localize information which is displayed in a popover from
Twitter Bootstrap.
Ideally would be showing/hiding divs depending on browser language, and of
course if a certain input field got hovered over with the corresponding
div id.
This is what I got so far:
$(function () {
$("#popOver").popover(
{
trigger: 'hover focus',
placement: 'right',
content: function () {
return $('#sInfo').show();
}
});
});
And some where on the page (mvc view) i got these divs:
<div lang="en" id="sInfo">
Here is some English content.
</div>
<div lang="pt" id="sInfo">
Here is some portugese content.
</div>
Can someone help me out with this?

No comments:

Post a Comment