• Resolved Linda

    (@lindali2007)


    Hello,
    I’ve done a lot of translating to a plugin (Salon Booking) I am using on my website. The language-file is located on the server like this: wp-content/plugins/salon-booking-system/languages/… Now I discovered the translations are lost after updating the plugin. I did all the translating again. My question now: How can I change the location of my file .po and/or .mo? I have downloaded them (salon-booking-system-nl_NL.mo and salon-booking-system-nl_NL.po), so I have the recent version of my translation. But how can I change the directory, so that nothing is lost when I update the plugin?

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

    (@timwhitlock)

    Please read the documentation on this.
    https://localise.biz/wordpress/plugin/manual/msginit#locations

    In short – Don’t save custom translations in folders managed by WordPress, and don’t edit installed translation files.

    If you need to move existing files to a new location, you’ll have to do it manually on your server, but better to just create your own custom files in addition to the installed ones.

    Thread Starter Linda

    (@lindali2007)

    Hi,
    What I did now is on the dashboard, go to my langauge whitin the plugin in loco translate and made a copy of it. I used the custom location and selected ‘Copy target translations’. The file info of this new translation is now like this:

    In sync with template
    PO file has the same source strings as “salon-booking-system.pot”.

    PO file is writeable
    You can update these translations directly from the editor to the file system.
    languages/loco/plugins/salon-booking-system-nl_NL_formal.po

    Directory is writeable
    The containing directory is writeable by anne, so you can add new files in the same location.
    languages/loco/plugins

    Is this how it should be?

    Plugin Author Tim W

    (@timwhitlock)

    Looks fine to me.

    Thread Starter Linda

    (@lindali2007)

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘My custom translations are lost after updating plugin Loco Translate’ is closed to new replies.