这种方式流行于PHP语言,下面是一个例子
数据库方式包括
-
其他非关系型收据库 (Berkeley DB)
-
对象/关系型收据库 ORDBMS (mysql)
Berkeley DB 是一个不错的选择,而且相对关系型数据库比较有优势。因为关系型数据库子并发数有限,连接资源很宝贵。
例 15.2. sql table language package
select id,key,value from language where country = 'zh-cn' and key = 'hello_world';
The gettext functions implement an NLS (Native Language Support) API which can be used to internationalize your PHP applications. Please see the gettext documentation for your system for a thorough explanation of these functions or view the docs at » http://www.gnu.org/software/gettext/manual/gettext.html.
Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript">comments powered by Disqus.</a>
原文出处:Netkiller 系列 手札
本文作者:陈景峯
转载请与作者联系,同时请务必标明文章原始出处和作者信息及本声明。