Multilingual

1
4 years agocompleted4

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:

4 Comments

  1. 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!! 😉

  2. 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

  3. 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.

Leave a Reply