Multilingual
1
Some things are hard-coded in english. This makes it a bit hard to use it in another language ;).
E.G.
– Quantity:
– Price:
– Regular Price:
– Sale Price:
Some things are hard-coded in english. This makes it a bit hard to use it in another language ;).
E.G.
– Quantity:
– Price:
– Regular Price:
– Sale Price:
You must be logged in to post a comment.
I have been careful to put everything I can into translatable strings… if you find anything that is not, please let me know and I’ll be sure it gets wrapped!! 😉
Okay.. here you go! I checked the latest version 1.1.12.
And if I am correct 😉 I have found the following hard coded…:
File: class-launchflows-featured-product.php
Rule: 45-49
echo “”. __(‘Quantity: ‘, ‘lf’).”.$quantity.”;
echo “”. __(‘Price: ‘, ‘lf’).”.$currency.$price.””;
/*Regular Price and Sale Price*/
echo “”. __(‘Regular Price: ‘, ‘lf’).”.$currency.$regular_price.””;
echo “”. __(‘Sale Price: ‘, ‘lf’).”.$currency.$sale_price.””;
Rule: 138
echo “”. __(‘Quantity: ‘, ‘lf’).”.$quantity.”;
Rule: 163
echo “”. __(‘Price: ‘, ‘lf’).”.$currency.$price.””;
Rule: 189
echo “”. __(‘Regular Price: ‘, ‘lf’).”.$currency.$regular_price.””;
Rule: 215
echo “”. __(‘Sale Price: ‘, ‘lf’).”.$currency.$sale_price.””;
Rule: 406-413
Those are already all translatable …
The __(xxxxx) syntax you see makes them all able to be translated in one file with the same text domain as well (the “lf”) so you can organize your translations into one file with LocoTranslate or similar free plugin.
Thanks Spencer, my bad… Did not get it. Will go and use the recommended plugin. Thanks