Support » Plugin: Smart WooCommerce Search » Problem with the translation

  • Resolved AAVasilev

    (@aavasilev)


    Hi, the plug-in excellent, but is a problem with the translation.
    I have made the file of the translation, but it hasn’t worked.
    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author YummyWP

    (@yummy-wp)

    Hi.

    To create a translation you should copy the smart-search.pot file from the ‘/languages’ plugin directory and add it to the ‘/wp-content/languages/plugins/’ folder a name it as ‘smart_search-{locale}.po’ (eg. smart_search-fr_FR.po). Then add all translations in this file and finally generate a ‘smart_search-{locale}.mo’ (eg. smart_search-fr_FR.mo). To generate ‘.mo’ file you can use PoEditor application or next web service https://po2mo.net/

    The front end strings can be translated in the plugin admin settings. But if your site multilingual and it will other ‘.po’, ‘.mo’ files then you can add this strings to the ‘.po’ file. For example :

    
    msgid "View all"
    msgstr "Your translation"
    

    More info about localizations https://developer.wordpress.org/plugins/internationalization/localization/

    Hi
    Well, now everything works. I used other name (smartsearch) and it was a mistake.
    Thank You

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with the translation’ is closed to new replies.