本文整理汇总了PHP中i18n::getLabel方法的典型用法代码示例。如果您正苦于以下问题:PHP i18n::getLabel方法的具体用法?PHP i18n::getLabel怎么用?PHP i18n::getLabel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类i18n
的用法示例。
在下文中一共展示了i18n::getLabel方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
?>
</th>
<th><?php
i18n::getLabel("food.name");
?>
</th>
<th><?php
i18n::getLabel("food.price");
?>
</th>
<th><?php
i18n::getLabel("food.type");
?>
</th>
<th><?php
i18n::getLabel("food.counttype");
?>
</th>
</tr>
</thead>
<tbody>
<?php
for ($i = 0; $i < sizeof($foodList); $i++) {
$food = $foodList[$i];
?>
<tr>
<td><?php
echo $food->getId();
?>
</td>
<td><img src="<?php
示例2:
">
<span class="fa fa-unlock-alt form-control-feedback"></span>
</div>
<div class="form-group">
<div class="checkbox">
<label> <input type="checkbox" name="rememberme" value="true"
class="i-yellow-flat"><?php
i18n::getLabel("message.user.login.remember.me");
?>
</label>
</div>
</div>
<div class="form-group">
<button type="submit"
class="btn btn-warning btn-lg btn-perspective btn-block"><?php
i18n::getLabel("login");
?>
</button>
</div>
</form>
<p class="text-center">
<strong><a href="controls/site.php?switchLang=kh" target="_self">change to khmer</a></strong>
</p>
<p class="text-center">
<strong><a href="controls/site.php?switchLang=en" target="_self">change to english</a></strong>
</p>
</div>
<!-- /.login-wrapper -->
<!--
===========================================================
END PAGE
示例3:
</div>
</div>
<div class="progress">
<div id="progress-bar" class="progress-bar" role="progressbar"
aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"
style="width: 0%;"></div>
</div>
<input type="hidden" id="cropX">
<input type="hidden" id="cropY">
<input type="hidden" id="cropW">
<input type="hidden" id="cropH">
</form>
</div>
<div class="col-md-5">
<div class="thumbnail">
<img id="avatarBackground" src="assets/img/food-avatar.png">
<img id="img-thumbnail">
</div>
</div>
<div class="col-md-2">
<button class="btn btn-danger" type="button" onclick="saveImage()">
<i class="fa fa-floppy-o"></i>
<span><?php
i18n::getLabel("save");
?>
</span>
</button>
</div>
</div>
</div>
</div>
示例4:
?>
</th>
<th><?php
i18n::getLabel("message.user.manageuser.table.status");
?>
</th>
<th><?php
i18n::getLabel("message.user.register.address");
?>
</th>
<th><?php
i18n::getLabel("message.user.register.phone");
?>
</th>
<th><?php
i18n::getLabel("message.user.manageuser.table.username");
?>
</th>
</tr>
</thead>
</table>
</div>
<!-- /.table-responsive -->
</div>
<!-- /.the-box .default -->
<!-- END DATA TABLE -->
</div>
</form>
</div>
<!-- /.container-fluid -->
示例5:
if ($edit) {
if ($user->getCache() == User::CACHE_HIDE) {
$checkedCache = " checked ";
}
}
?>
<input type="checkbox" name="cache" value="<?php
echo User::CACHE_HIDE;
?>
"
<?php
echo $checkedCache;
?>
/>
<?php
i18n::getLabel("message.user.manageuser.button.delete");
?>
</label>
</div>
</div>
<div class="form-group">
<div class="col-lg-9 col-lg-offset-3">
<button type="submit" class="btn btn-primary"><?php
if ($edit) {
echo "Edit";
} else {
echo "Create";
}
?>
</button>
<a class="btn btn-warning" onclick="window.history.back()" id="back">Back</a>
示例6:
<div class="form-group has-feedback lg left-feedback no-label">
<input name="password" type="password" class="form-control no-border input-lg rounded" placeholder="<?php
i18n::getLabel("message.user.register.password");
?>
">
<span class="fa fa-lock form-control-feedback"></span>
</div>
<div class="form-group has-feedback lg left-feedback no-label">
<input name="confirm-password" type="password" class="form-control no-border input-lg rounded" placeholder="<?php
i18n::getLabel("message.user.register.confirmpassword");
?>
">
<span class="fa fa-unlock form-control-feedback"></span>
</div>
<div class="form-group">
<button type="submit" class="btn btn-warning btn-lg btn-perspective btn-block"><?php
i18n::getLabel("message.user.titile.register");
?>
</button>
<button onclick="" class="btn btn-danger btn-lg btn-perspective btn-block"><?php
i18n::getLabel("cancel");
?>
</button>
</div>
</form>
</div><!-- /.login-wrapper -->
<!--
===========================================================
END PAGE
===========================================================
-->
示例7:
?>
",
"info": "<?php
i18n::getLabel("message.user.manageuser.info.0");
?>
_PAGE_ <?php
i18n::getLabel("message.user.manageuser.info.1");
?>
_PAGES_",
"infoEmpty": "<?php
i18n::getLabel("message.user.manageuser.zerorecords");
?>
",
"infoFiltered": "(filtered from _MAX_ total records)",
"search": "<?php
i18n::getLabel("message.user.manageuser.search");
?>
",
"paginate": {
"first": "<<",
"last": ">>",
"next" : ">",
"previous" : "<"
}
},
"processing": true,
"columnDefs": [ {
"searchable": false,
"orderable": false,
"targets": 0
} ],