• Resolved sino27

    (@sino27)


    Hello there. This is i guess not Loco problem but one thing keep bugging me.

    So i add Woocommerce and i add on my own language via Loco. I start translating. It works (most of the time). I use Loco and Polylang.

    Then i log in next day and i see wordpress (or woocommerce) installed another same language which is already translated 100%. But i don’t want to use that file since i want my own translation. I guess it’s the default file (that which is not installed by me) which comes with woocommerce.

    However – i delete it and next day when i come back it’s there again. Just bellow language which i installed. Why does it work that way? Why is wordpress insisting on using their own language files – even though i deleted them and 100% sure did not updated anything – next day they are there again. Sure enough loco tells me that these language files (these which wordpress or woocommerce insist on isntalling) could change in future and are not safe.

    So can i somehow force Woocommerce not to install languages and to keep using my own which i installed with Loco on my own location?

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

    (@timwhitlock)

    It is WordPress doing it.

    See Disabling auto-updates in a related FAQ.

    However, if you are using Loco Translate’s custom directory at wp-content/languages/loco then your custom translations should always override anything loaded from the system locations.

    Thread Starter sino27

    (@sino27)

    Thanks for fast response. Indeed it does appear like Loco is using my own file i just visually identified and confirmed that. It’s confusing though (but that’s not Loco problem).

    Care to tell me where exactly – it’s not clear from article. I definitely have wordpress auto update turned off in wp-config.php but where do i add these filters (https://localise.biz/wordpress/plugin/faqs/files-deleted#auto). In function.php of my theme (child theme)?

    I guess i could use: add_filter( ‘auto_update_translation’, ‘__return_false’ ); just fine but is there more fine control as to disable auto update of translations for woocommerce only?

    Plugin Author Tim W

    (@timwhitlock)

    Did you follow the link and read the notes below?

    If you want fine control, you’ll have to write your own function instead of using the catch-all __return_false function.

    I don’t provide general help with coding here. If you get stuck, please ask in the general WordPress forum.

    Thread Starter sino27

    (@sino27)

    I read article but somehow i missed github link.

    Sorry. thanks for help. Will mark this as resolved. Thanks again.

    Great plugin Loco is.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Always two same languages (Woocommerce)’ is closed to new replies.