还有如people模块中的模板文件item.html中的
<script>
$(function () {
$('#upgrade_' + '{$vo.uid}').tooltip({
html: true,
title: '{:L("current_stage")}:{$vo.title} <br/>{:L("next_stage")}:{$vo.level.next}<br/>{:L("now")}:{$vo.score}<br/>{:L("need")}:{$vo.level.upgrade_require}<br/>{:L("remainneed")}:{$vo.level.left}<br/>{:L("lv_up_progress")}:{$vo.level.percent}% <br/> '
}
);
})
</script>
红色部分的语句少写了N个L,哈哈。看来这个程序猿是个马大哈。类似有BUG还真多。不再一 一举例了,大家按自己的想法对照修改就行了。关键是理清思路,找到解决办法。
像这里people模块中的_Nav中的
<script>
$('#tab_{$tab}').addClass('active');
var follower = {
'bind_follow': function () {
$('[data-role="follow"]').unbind('click')
$('[data-role="follow"]').click(function () {
var $this = $(this);
var uid = $this.attr('data-follow-who');
$.post(U('Core/Public/follow'), {uid: uid}, function (msg) {
if (msg.status) {
$this.attr('class', $this.attr('data-before'));
$this.attr('data-role', 'unfollow');
$this.html('{:L("already")} {:L("followers")}');
follower.bind_follow();
toast.success(msg.info, {:L('prompt')});
} else {
toast.error(msg.info,{:L('prompt')});
}
}, 'json');
})
虽然写了:L("already")但语言包里没有这个定义就只能显示英文了,诸如此类的很多。
自己写zh-cn.php语言包中定义一下就可以解决了。
'active_member'=>'活跃会员',
'new_member'=>'最新会员',
'already'=>'已',
自己增加下红色的语言定义,就能解决了。
确实是中文的,但是有些地方存在语法错误,所以不显示中文。
people/view/default/widget/homeblock.html 中的
第36行至38行
<h2>
{:modC('USER_SHOW_TITLE2',L('new_member','People'))}
</h2>
应为
<h2>
{:modC('USER_SHOW_TITLE2',L('new_member'),'People')}
</h2>
还有类似的错误很多。存在于模板文件中,可自己对照修复。
请登录后回答