po.php
来自「PHP 知识管理系统(基于树结构的知识管理系统), 英文原版的PHP源码。」· PHP 代码 · 共 26 行
PHP
26 行
<?php
require_once("../../config/dmsDefaults.php");
require_once('File/Gettext.php');
$aExpected = array(
'© 2008 <a href="http://www.knowledgetree.com/">KnowledgeTree Inc.</a>' => '© 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 + -
显示快捷键?