php wp翻译
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php wp翻译相关的知识,希望对你有一定的参考价值。
add_filter('gettext', 'translate_reply');
add_filter('ngettext', 'translate_reply');
function translate_reply($translated) {
$translated = str_ireplace('Shipping Details', 'Cart Holder', $translated);
$translated = str_ireplace('Billing Details', 'Client', $translated);
$translated = str_ireplace('SHIP TO A DIFFERENT ADDRESS?', 'Client and Cart Holder are the same?', $translated);
$translated = str_ireplace('Manager Pricing', 'Menaxho Cmimet', $translated);
$translated = str_ireplace('Room Type', 'Dhomat', $translated);
$translated = str_ireplace('Status', 'Statusi', $translated);
$translated = str_ireplace('Booking', 'Rezervimi', $translated);
$translated = str_ireplace('Total', 'Totali', $translated);
$translated = str_ireplace('Pending', 'Ne Pritje', $translated);
$translated = str_ireplace('Completed', 'E Kompletuar', $translated);
$translated = str_ireplace('Orders', 'Rezervimet', $translated);
$translated = str_ireplace('Pending payment', 'Pagesa Ne Pritje', $translated);
$translated = str_ireplace('Order', 'Rezervimi', $translated);
$translated = str_ireplace('Ship to', 'Adresa dergimit', $translated);
$translated = str_ireplace('Actions', 'Veprimi', $translated);
$translated = str_ireplace('PDF Invoice', 'Fatura ne PDF', $translated);
$translated = str_ireplace('Processing', 'Proceso', $translated);
$translated = str_ireplace('Complete', 'E kryer', $translated);
return $translated;
}
以上是关于php wp翻译的主要内容,如果未能解决你的问题,请参考以下文章
如何处理 WP 主题的 .js 中的文本翻译
wp-content 之外的多语言 wordpress
WP l18n __()不返回翻译的字符串
php WP Config #wp #php
sql WordPress + WPML:这将两个缺少的列添加到wp_icl_strings(导致WPML字符串翻译表为EMPTY)
php WP Config模板#php #wp #wordpress #config