如何翻译显示在前端的管理字符串输入-Woocommerce多个配送插件
插件作者表示,此通知“您可以在此购物车上使用多个配送地址”未设置为翻译 插件:Woocommerce配送多地址插件 字符串通知在签出页面上可见,在Woocommerce管理设置中可编辑。 如何使用Polylang或LocatTranslate使其可翻译 这是插件文件中的表单如何翻译显示在前端的管理字符串输入-Woocommerce多个配送插件,woocommerce,plugins,translation,hook-woocommerce,polylang,Woocommerce,Plugins,Translation,Hook Woocommerce,Polylang,插件作者表示,此通知“您可以在此购物车上使用多个配送地址”未设置为翻译 插件:Woocommerce配送多地址插件 字符串通知在签出页面上可见,在Woocommerce管理设置中可编辑。 如何使用Polylang或LocatTranslate使其可翻译 这是插件文件中的表单 <table class="form-table"> <tbody> <tr valign="top&q
<table class="form-table">
<tbody>
<tr valign="top">
<th><label for="lang_notification"><?php _e('Checkout Notification', 'wc_shipping_multiple_address'); ?></label></th>
<td><input type="text" name="lang[notification]" id="lang_notification" value="<?php echo esc_attr(WC_Ship_Multiple::$lang['notification']); ?>" size="50" /></td>
</tr>
<tr valign="top">
<th><label for="lang_btn_items"><?php _e('Button: Item Addresses', 'wc_shipping_multiple_address'); ?></label></th>
<td><input type="text" name="lang[btn_items]" id="lang_btn_items" value="<?php echo esc_attr(WC_Ship_Multiple::$lang['btn_items']); ?>" size="50" /></td>
</tr>
</tbody>
</table>
我知道我必须添加类似于pll\uuu(“您可以在此购物车上使用多个配送地址”)
和pll\uuuuuuuuuuuu(“设置地址”)
。但是在代码的哪一部分我可以这样做?最好我想添加一个带有代码片段插件的过滤器
public static $lang = array(
'notification' => 'You may use multiple shipping addresses on this cart',
'btn_items' => 'Set Addresses'
);