po.php.svn-base

来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· SVN-BASE 代码 · 共 26 行

SVN-BASE
26
字号
<?phprequire_once("../../config/dmsDefaults.php");require_once('File/Gettext.php');$aExpected = array(    '&copy; 2008 <a href="http://www.knowledgetree.com/">KnowledgeTree Inc.</a>' => '&copy; 2008 <a href="http://www.knowledgetree.com/">KnowledgeTree Inc.</a> Todos los Derechos Reservados - <a href="http://www.oriondatacenter.com/">Orion Datacenter.</a> Bussines Partner para Colombia',    'Document "%s" renamed.' => 'El documento "%s" ha sido renombrado.',    'Document archived: %s' => 'Documento archivados: %s',    'Document checked in' => 'Documento liberado',);$sFilename = "test2.po";$foo = File_Gettext::factory('po', $sFilename);$res = $foo->load();var_dump("t");foreach ($aExpected as $sSrc => $sExpected) {    $sGot = $foo->strings[$sSrc];    if ($sGot != $sExpected) {        print "Expected $sExpected, but got $sGot\n";    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?