如何翻译PO文件和PHP中的分类法
我正在尝试用PO和MO文件翻译一个主题,到目前为止,我成功地将其翻译到了主页上,但现在我正在尝试创建一个对所有分类法的翻译,但它们有不同的格式,我不知道如何编辑它们 这是我需要翻译的代码:如何翻译PO文件和PHP中的分类法,php,wordpress,po,Php,Wordpress,Po,我正在尝试用PO和MO文件翻译一个主题,到目前为止,我成功地将其翻译到了主页上,但现在我正在尝试创建一个对所有分类法的翻译,但它们有不同的格式,我不知道如何编辑它们 这是我需要翻译的代码: $ptlabels = array( 'name' => _x( 'Property Type', 'taxonomy general name', 'contempo' ), 'singular_name' => _x( 'Property Type', 'taxonomy si
$ptlabels = array(
'name' => _x( 'Property Type', 'taxonomy general name', 'contempo' ),
'singular_name' => _x( 'Property Type', 'taxonomy singular name', 'contempo' ),
'search_items' => __( 'Search Property Types', 'contempo' ),
'popular_items' => __( 'Popular Property Types', 'contempo' ),
'all_items' => __( 'All Property Types', 'contempo' ),
'parent_item' => null,
'parent_item_colon' => null,
'edit_item' => __( 'Edit Property Type', 'contempo' ),
'update_item' => __( 'Update Property Type', 'contempo' ),
'add_new_item' => __( 'Add New Property Type', 'contempo' ),
'new_item_name' => __( 'New Property Type Name', 'contempo' ),
'separate_items_with_commas' => __( 'Separate Property Types with commas', 'contempo' ),
'add_or_remove_items' => __( 'Add or remove Property Types', 'contempo' ),
'choose_from_most_used' => __( 'Choose from the most used Property Types', 'contempo' )
);
我需要能够翻译“属性类型”
,“搜索属性类型”
等等
我通过以下操作翻译了其他文件:
<label for="ct_price_from"><?php _e('Price From', 'contempo'); ?> (<?php currency(); ?>)</label>
我希望有人能对我的问题有所了解
提前谢谢 你在用什么?它使翻译更快、更可靠……我是,但这不是问题所在。我不知道如何使上面的行对poedit进行编辑
#: includes/advanced-search.php:99
msgid "Price From"
msgstr "Valor Inicial"