Ready to get started?Download WordPress


Codestyling Localization
Question: any way to avoid losing translations when a plugin/theme is updated? (10 posts)

  1. Marcelo Pedra
    Posted 1 year ago #

    Hi! Thank you for this plugin and its support.
    I'm wondering how can I keep my translation work even if a plugin is updated. I work with several plugins that actually not provide spanish version, and when updated, I lost my work. To keep it, I should download the .po/mo files generated by me with your plugin, download the plugins updates, update the .po/mo from the provided .pot and the reupload everything back to the hosting.
    Is there any way of keeping the most of a translation after a plugin update? It should keep track of the used strings and cross compare them with the new .po/mo files coming in an update you just install.
    Any ideas?
    Thank you


  2. Heiner
    Posted 10 months ago #

    Have you found a solution?

  3. therandomguy12345
    Posted 9 months ago #

    I've been looking for a solution to this, too!

  4. Marcelo Pedra
    Posted 9 months ago #

    Nothing yet. Just keep a reliable backup of your mo/po modified files. Upload them after upgrading translated plugins/themes and the rescan it with Codestyle Localization in order to find new strings pending translate. It's a painful work if you translated several themes/plugins and even if you contact the developers, the delay to publish the translations...

  5. KleinBloemetje
    Posted 9 months ago #

    One suggestion for your issue is to store your translation files in a separate directory. WordPress has provided this in the folder "wp-content/languages".
    For the "theme-my-login" plug-in I use, I created a folder "wp-content/languages/theme-my-login" containing my own translation files.
    Whether this will work in your situation depends on the coding of the plugin...

    Unfortunately, this localization plugin doesn't find these translations, that's why I'm currently browsing this forum. ;-)

  6. Marcelo Pedra
    Posted 8 months ago #

    @KleinBloemetje: nice solution, but how do you deal with updates in the official .po/.mo files of one or another plugin?

  7. KleinBloemetje
    Posted 8 months ago #

    Keeping track of the updates is no different than what you described before. The main benefit is in the fact that the translation files are not lost when the plugin is upgraded.
    Hopefully, this plugin will offer some help in this process by supporting the wp-content/language directory.

  8. Marcelo Pedra
    Posted 8 months ago #

    Interesting. But a local backup looks like a safer measure :)

  9. AndreMc
    Posted 8 months ago #

    there is a solution but you have to modify the core.


    3.7 will have that option for default.

    I was wondering a way to codestyling read from that folder before.

  10. ehong33234
    Posted 7 months ago #


    Need a way to backup and restore MO or PO files after plugins or themes get updated. Otherwise this is a big headache to fix every time.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic