【发布时间】:2014-05-25 22:17:29
【问题描述】:
我正在使用 jquery.18n,但在 phonegap 构建后,并在我的设备上安装应用程序后,翻译不起作用...
用谷歌浏览器测试正常,问题是传到phonegap后。
AndroidManifest 或 Config.xml 中是否需要进行任何更改?
我的代码使用示例:
$(document).ready(function(){
jQuery.i18n.properties({
name:'Messages',
path:'language/',
mode:'both',
language: 'pt-BR',
callback: function() {
$("#user").attr('placeholder',Placeholder_User);
$("#pass").attr('placeholder',Placeholder_Pass);
$("#btn-acess").html(Button_Login);
$("#txt-or").html(Txt_Or);
$("#btn-register").html(Button_Register);
}
});
});
就像上面说的代码只能在手机桌面浏览器上工作。
谢谢
【问题讨论】:
标签: android jquery html cordova internationalization