• Resolved ANo.1

    (@ano1-1)


    Hi,
    I am trying to translate woocommerce plugin for my use only (not a professional). First I tried Codestyling Localization, but it didn’t work for me, important buttons wouldn’t react, and it seems the guy who wrote it got tired of keeping up about two years ago.
    So I downloaded poedit, translated woocommerce.pot (partly, just to see if it works, but i coppied the source text for the rest) and uploaded the translation cs_CZ.po file to wp-content/languages/plugins/woocommerce
    No effect at all. I am missing something here, but I am quite a beginner. Please show me the right direction here.

Viewing 1 replies (of 1 total)
  • Thread Starter ANo.1

    (@ano1-1)

    Ok, two days later and a bit wiser.

    So in reply to my own question: it has to be a .mo file which is generated automatically together with the .po one in poEdit. And you need to upload that to wp-content/languages/plugins and the name of it should be according to these instructions:

    Put your custom WooCommerce translations in your WordPress language directory, located at: WP_LANG_DIR . “/woocommerce/{$textdomain}-{$locale}.mo”;

    I had no idea at first, but this explains it.

    So name it woocommerce-de_DE.mo or whatever your language is. Also you need to change the general WP settings to that language.

    Well this is the first time I’ve been advising someone on a wp forum. (doesn’t matter it was to myself, feels good:)

Viewing 1 replies (of 1 total)
  • The topic ‘how to make plugin translation work’ is closed to new replies.