• Resolved seaveal

    (@seaveal)


    Currently translating CANVAS theme from woothemes.
    It doesn’t work, but I guess that It’s just becaus locs has attributed the wrong Text domain (canvas instead of woothemes). how can I change the Text domain in .mo or .po files.

    Thanks for your kind help.

    cyrille

    https://ww.wp.xz.cn/plugins/loco-translate/

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

    (@timwhitlock)

    MO files don’t contain text domains, they just get “found” by their name and location.

    If the text domain is “woothemes” just put your MO files at
    wp-content/languages/plugins/woothemes-xx.mo
    (where xx is the language code)

    Be aware that this doesn’t fix the problem of Loco Translate identifying the text domain. Renaming the files is only a hack to get WordPress to “see” them when your theme loads.

    See also this FAQ about Woo Commerce:
    https://ww.wp.xz.cn/support/topic/faq-why-isnt-it-working-with-woocommerce

    Thread Starter seaveal

    (@seaveal)

    thanks for the tip, it works fine for me, I just replaced the text domain, change the location file to wp-content/languages/theme/woothemes-xx.mo and got my translation updated.

    Great support Timwhitlock!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Text domain’ is closed to new replies.