Bug in wordpress function.php when exporting a theme

pciberica
3 Posts
pciberica posted this 19 February 2016

'THIS IS BUG
function theme_get_price_html_to_text() {

return '<span class="from">' . _x('To:', 'min_price', 'woocommerce') . ' </span>';

}

'NOT SUPPORT FOR LANGUAGES FILES IN THIS FUNCTION

'IS NECESSARY OTHER FUNCTION FOR "To:" for range price AS:
function theme_get_price_html_to_text_max_price() {

return '<span class="to">' . _x('To:', max_price', 'woocommerce') . ' </span>';

}

Excuse me for my English.

Best regards

'THIS IS BUG function theme_get_price_html_to_text() { return '<span class="from">' . _x('To:', 'min_price', 'woocommerce') . ' </span>'; } 'NOT SUPPORT FOR LANGUAGES FILES IN THIS FUNCTION 'IS NECESSARY OTHER FUNCTION FOR "To:" for range price AS: function theme_get_price_html_to_text_max_price() { return '<span class="to">' . _x('To:', max_price', 'woocommerce') . ' </span>'; } Excuse me for my English. Best regards
Vote to pay developers attention to this features or issue.
2 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 19 February 2016

Hello,
I'm sorry but the issue is not quite clear for me.
As I understand some text is not translated. If possible please provide a link to page which demonstrates non translated text.

regards,
Aileen

Hello, I'm sorry but the issue is not quite clear for me. As I understand some text is not translated. If possible please provide a link to page which demonstrates non translated text. regards, Aileen
pciberica
3 Posts
pciberica posted this 19 February 2016

functions.php

line: 1008: bug
function theme_get_price_html_to_text() {
return '' . _x('To:', 'min_price', 'woocommerce') . ' ';
}

'correct:
function theme_get_price_html_to_text() {
return '' . _x('To:', 'max_price', 'woocommerce') . ' ';
}
And add this 'max_price' in the language .po file

I tried to traslate 'min-price' with poedit, but not working
The word 'From:" exists and working in .po file, but not exists 'To:"

functions.php line: 1008: bug function theme_get_price_html_to_text() { **return '' . _x('To:', 'min_price', 'woocommerce') . ' ';** } 'correct: function theme_get_price_html_to_text() { **return '' . _x('To:', 'max_price', 'woocommerce') . ' ';** } And add this 'max_price' in the language .po file I tried to traslate 'min-price' with poedit, but not working The word 'From:" exists and working in .po file, but not exists 'To:"
You must log in or register to leave comments