• Resolved djordjevicca

    (@djordjevicca)


    Hi,

    Can you, please, write where I should put translation .mo file and filename example?
    I tried in wp-content/languages, wp-content/languages/plugins, wp-content/languages/plugins/wcsfw/.

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @djordjevicca,

    you should use /wp-content/languages/plugins for plugins. But you need to deal with locale.
    If it’s your own plugin (or 3rd party) find the function call “load_plugin_textdomain” -> here you see first parameter “some-domain” and your local is de_DE so your .mo File should be placed here:

    /wp-content/languages/plugins/some-domain-de_DE.mo

    Plugin Author Charlie Etienne

    (@charlieetienne)

    Thanks for the help @danielmertins 😉

    I’m closing this.

    Thread Starter djordjevicca

    (@djordjevicca)

    Hi,

    Thank you for help!

    I did put file in that location.
    Also, I tried with name wcsfw-sr_RS.mo, tried to create folder wcsfw and put file in it (tried sr_RS.mo and wcsfw-sr_RS.mo), but I didn’t get translation in producct settings.

    Thread Starter djordjevicca

    (@djordjevicca)

    Hi again,

    When you don’t read, you wander in the dark…
    I was wrong because “some-domain” isn’t wcsfw, but “wash-care-symbols-for-woocommerce”.
    After I read code in wash-care-symbols-for-woocommerce.php, I get it to work with filename wash-care-symbols-for-woocommerce-sr_RS.mo

    Thank you @danielmertins, for point me in the right direction!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Translation filename’ is closed to new replies.