首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > PHP > 全gettext和ngettext为Smarty模板支持

全gettext和ngettext为Smarty模板支持

  • 资源大小:25.52 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: 模板 Smarty gettext ngettext 支持

资 源 简 介

Introduction This project enables full (n)gettext support in Smarty. There is little to no custom built, no regular expressions, etc. but it completely relies on Smarty functionality (e.g. the Smarty compiler, etc.) reducing the risks of incompatibilities, reduction or replication of functionality. You will still be able to use Smarty variable modifiers alongside with your translated texts without the need to save the translation in a variable before. This project utilizes the built-in Smarty compiler to produce files that can be processed with xgettext to extract message-IDs in singular (gettext) or plural (ngettext) form. Basically it does nothing else but relying on the Smarty compiled templates ;) - sounds lame but it"s an approach I haven"t seen yet. Let"s cut to the gist, show me some examples! Requirements PHP with

文 件 列 表

mebb_functions_glob_recursive.php
examples
i18n
mebb_i18n_smarty.php
mebb_i18n_smarty_function_locale.php

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
0.325357s