• Resolved higgalls

    (@higgalls)


    Hey,
    I am using Loco Translate to change some of the english words/phrases on one of my customer’s site (English is the only language for the site).
    However, whenever I seem to update Loco Translate to the newer versions, I seem to lose all the translations I have done.
    What am I doing wrong? Is there any way to stop this happening as I want to hand over the updates for this site over to my customer soon and I don’t want to have to keep going back and redoing all the translation changes.
    I am using Loco Translate 2.0.5. I haven’t updated to 2.0.6 yet because I want to sort this issue out first.
    I am translating parts of the theme and some plugins.

    Thank you.

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

    (@timwhitlock)

    Where are your files located?

    See FAQ https://localise.biz/wordpress/plugin/faqs/files-deleted

    Thread Starter higgalls

    (@higgalls)

    Hey,
    So the translations are located in wp-content/plugins/awebooking/languages
    I have tried copying them (both via FileZilla and also using the copy function within loco translate) to wp-content/languages/loco/plugins, but it doesn’t work. I even deleted all the translations, and then created a new one with the path of wp-content/languages/loco/plugins, but no changes were being reflected in my website.
    Is there something I am doing wrong?

    Thank you.

    Thread Starter higgalls

    (@higgalls)

    Further update, if I move the translations into the WordPress System folder (so wp-content/languages/plugins/awebooking) then it works, but your website doesn’t suggest this due to WP automatically updating it there.

    Plugin Author Tim W

    (@timwhitlock)

    So the translations are located in wp-content/plugins/awebooking/languages

    As per the link I provided above – don’t save files here. updates to awebooking will delete them.

    I have tried copying them (both via FileZilla and also using the copy function within loco translate) to wp-content/languages/loco/plugins, but it doesn’t work

    In what way does it not work?

    Thread Starter higgalls

    (@higgalls)

    If I move the translations into wp-content/languages/loco/plugins/, then I do not see any language changes at all. No changes I make to the language files are reflected on the website.
    If I move them to wp-content/languages/plugins/, then I can see the changes (likewise, I can see the changes in wp-content/plugins/awebooking/languages).

    So it is just the wp-content/languages/loco/plugins/ folder that doesn’t appear to be working (unless I am doing something completely incorrect).

    Plugin Author Tim W

    (@timwhitlock)

    Did you disable Loco Translate? It must be enabled for files to be loaded from the custom folder.

    Thread Starter higgalls

    (@higgalls)

    No, I have never disabled it. It was still active when I deleted all translations and then copied it to wp-content/languages/loco/awebooking, but the changes were simply not being reflected. I even went through and tried a new translation from scratch with the translation file being saved in that same Custom folder, and nothing happened.

    Plugin Author Tim W

    (@timwhitlock)

    OK, so just to be clear the original title of this topic (Update removes translations) no longer applies, is that right?

    I can’t account for why you can load translations from the global languages folder, but not from Loco’s custom folder. To reproduce the error I’ll need to install the awebooking plugin and test it. Could you provide a plugin download link please?

    Thread Starter higgalls

    (@higgalls)

    So whenever I was doing updates, the translations were definitely being deleted. Now I thought it was when I was updating loco translate, but perhaps it was when I was updating awebooking? I am not 100% sure. Either way, I need to resolve this, and I need to get the translation moved into the custom folder as your website suggests, so that it is protected. But it just isn’t working in that folder for some strange reason.

    Do you know of any reasons why a translation won’t work in the custom folder? Does it depend on how good the plugin is written?

    I have contacted the plugin author – hopefully they will know. They are the ones who recommended I use loco translate. If they don’t know what is happening, then I will let you know and we can further diagnose.

    Thanks.

    Plugin Author Tim W

    (@timwhitlock)

    Do you know of any reasons why a translation won’t work in the custom folder? Does it depend on how good the plugin is written?

    The plugin author must call load_plugin_textdomain in order for the custom location to work.

    Hello

    I think I have this problem with textdomain. What I have to do exactly?

    Thank you for helping and kind regards
    Nicole

    Plugin Author Tim W

    (@timwhitlock)

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Update removes translations’ is closed to new replies.