我有一个 php 语言文件,它列出了数组中的值。
我想把它转换成 .po 文件。
php 文件如下所示:
<?php
$LANG_ = array(
// advanced search buttons
"_search1" => "Start Search",
"_search2" => "Hide Search Box",
"_search3" => "Search",
// page numbering
"_pn1" => "Page %CURRENT_PAGE% of %TOTAL_PAGES%",
"_pn2" => "<< First",
"_pn3" => "Last >>",
// _tpl_article-add.php
"_tpl_article-add1" => "Article Submission Form",
"_tpl_article-add2" => "Submit Article",
"_tpl_article-add3" => "Article Submitted Successfully",
// errors
"_err14" => "Delete",
"_err144" => "Display Image",
"_err15" => "Edit",
"_err16" => "View",
);
?>
这只是一个例子,文件本身很大,超过 3000 行。手动将其中的每一个都插入到 po 目录中,我会死的。有什么东西可以为我自动化吗?
我正在使用poedit。
谢谢,我是新手,所以任何见解都会很有用...