Plugin Author
sbouey
(@sbouey)
Hi,
What do you want to translate link like “no brands”, “Dandy”, ? can you make a screencapture with the a message to explain where it’s not translated. i think it’s more the term to translate
Hello
no, brand links are the brands of woocommerce and they are possible to translate in falang.
I mean a custom string Title in Filter widget.
In Filter settings I entered the custom text-title which names “ФИЛЬТР ЦЕН” and “БРЕНДЫ”.
https://snipboard.io/EHoSDl.jpg
https://snipboard.io/62Z3yB.jpg
and here is the Falang translate posts filtered by string name:
https://snipboard.io/72RE3l.jpg
https://snipboard.io/uB6LHI.jpg
Plugin Author
sbouey
(@sbouey)
Hi,
i have found the problem, this filter plugin use Custom post type to strore the filter but in frontend the filtre on title is not apply, they use a specific filter,
i will give you the code to add in function.php but i will add this in the Falang Pro version
Stéphane
Plugin Author
sbouey
(@sbouey)
You can add this in your function.php of your template (the fix will be add in the 1.10 version of Falang pro)
//translate Filter everything label (title)
function wpc_filter_title($label,$filter) {
if (!Falang()->is_default()) {
if (isset($filter['ID'])){
$falang_post = new \Falang\Core\Post($filter['ID']);
$post = get_post($filter['ID']);
$label = $falang_post->translate_post_field($post, 'post_title', Falang()->get_current_language(),$label);
}
}
return $label;
}
add_filter('wpc_filter_title','wpc_filter_title',10,2);
I will add a list on faboba.com site of all the woocommerce filter supported too.
Plugin Author
sbouey
(@sbouey)
The Falang Pro version 1.10 is launched with the label filter translation, if you don’t want to add manual code to function.php
Thank you Mr.Stephan
It work’s.
As soon as I have possibility, I will switch to the Falang Pro version.
Thank you.
5 Stars.