Support

Forum Navigation
You need to log in to create posts and topics.

Usage with cmb2

Hi, thank you for amazing translation pluging.

Could you show me how can I use it with cmb2? I've added a few fields to my product in woocommerce, and I have no idea how make it translatable.

Here is how I've done it.
```

add_action('cmb2_admin_init', 'craftshop_wc_metabox');
function craftshop_wc_metabox()
{
$cmb = new_cmb2_box(
[
'id' => 'craftshop_wc_metabox',
'title' => __('craftshop product fields', 'cmb2'),
'object_types' => ['product'],
'context' => 'normal',
'priority' => 'high',
'show_names' => 'true',
]
);

}//end craftshop_wc_metabox()

```

Hi codev0,

Thanks for choosing the product.

More-Lang supports the built-in Custom Fields panel, post metas can be translated there. Could you check if the non-empty fields are in the Custom Fields panel and translatable?

Thank you for your response.

Yes, there are have non-empty custom fields.

Is there any chance to add translation input near source field?

Also I don't understand how to translate widgets from plugins, in my case I use subscription widget provided by opt in hound plugin. Could provide expressive example how to do it?

Hi codev0,

Excuse me, "add translation input near source field" requires some extra work(around several days), and there are many similar Postmeta plugins, it's impossible for me to support them all, so the built-in Custom Fields panel is the realistic choice.

Unfortunately, the opt in hound plugin creates its own tables for saving configuration, which can not be supported by More-Lang. If you have coding experience, you can find the related filters and change the content according to the current locale.

Thanks!


CONTACT: