pll_translate_string dont translate in one special case
-
Hi,
I am writting a small plugin to translate subject and heading of woocommerce emails sent to customer. For all the mails, it is the same routine ; my plugin works well with all mails except one : the woocommerce mail when a note is added.
It seems that pll_translate_string dont give me the english translation I need, but give the french one in this special case.
My part of code is : $string = pll_translate_string ($string, $lang);I set a debug before and after the pll_translate_string : before string is in french and lang is ‘en’ ; after string is still in french.
I tried the cleaning of all strings in data base, follow by new pll_register_string, but this does not resolve the issue.
My strings with issue are the two last string of this screen : https://snag.gy/KsRVK.jpgIs there somebody with a clue ?
Thanks if some body can help.
- The topic ‘pll_translate_string dont translate in one special case’ is closed to new replies.