ページを翻訳するためにこのプラグインを使用しています。IE8 ではすべてが正常に機能していますが、IE9 では のタグh:outputLabel
が翻訳されていません。
私のコードの例:
<h:body>
<script type="text/javascript">
$().ready(function () {
window.lang = new jquery_lang_js();
window.lang.run();
window.lang.change(language);
$('*').each(function()
{
var attr = $(this).attr('lang');
if (typeof attr !== 'undefined' && attr !== false)
{
$(this).attr("lang", language);
}
});
});
</script>
<h:form id="testForm" dir="#{bean.dir}" >
<h:panelGrid id="testTable" columns="2" dir="#{bean.dir}" rowClasses="rowTop,rowBottom" columnClasses="column1,column2">
<h:outputLabel value="User Code:" for="userCode" lang="en"/>
<h:outputLabel/>
<h:inputText id="userCode" value="#{bean.userCode}"/>
<h:message id="userCodeMSG" for="userCode" showDetail="false" showSummary="true" styleClass="message"/>
</h:panelGrid>
</h:form>
</h:body>
助けてください!!前もって感謝します。