Title: [Plugin: Codestyling Localization] Keep translations after plugin update
Last modified: August 20, 2016

---

# [Plugin: Codestyling Localization] Keep translations after plugin update

 *  Resolved [Juanzo](https://wordpress.org/support/users/jmzolezzi/)
 * (@jmzolezzi)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/)
 * I’m sure this has been asked before but I’ve been searching for a solution without
   success.
 * Does anyone know how to keep plugin translations after we update them?
 * I’m tired of having to manually download the .po file, update the plugins and
   later reupload it.
 * [http://wordpress.org/extend/plugins/codestyling-localization/](http://wordpress.org/extend/plugins/codestyling-localization/)

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

 *  [David Decker](https://wordpress.org/support/users/daveshine/)
 * (@daveshine)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666817)
 * Currently there’s now way of doing that out of the box! As long as a plugin package
   from WordPress.org contains your desired language file than it will be overridden
   on automatic plugin updates!
 * Only, if a plugin supports alternate folders for hosting the translation files,
   for example in “/wp-content/languages/” (or in a subfolder named like the plugin
   there…), then you’re update secure.
 * You can only do manual updates or just re-upload translations or beg the plugin’s
   author to integrate alternate translations locations.
 * Maybe the whole process changes in the future as WordPress might go towards “
   language packs” — but no one of us knows yet how this will work in detail. Maybe,
   it will also be changed that plugin languages will be blocked from updates except
   for the admin of the site has this allowed or something like that. This option
   would be one of my faves 🙂
 * This whole thing is definitely a field where WordPress could and REALLY SHOULD
   improve! Internationalization seems not on the focus of too much core devs…
 * Hope this helps a bit, Dave 🙂
 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [14 years, 1 month ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666849)
 * I’m currently working on a draft spec how to solve this backup issue. It’s not
   that easy to handle all for none programming related user.
 *  [jorijnsmit](https://wordpress.org/support/users/jorijnsmit/)
 * (@jorijnsmit)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666896)
 * For plugin developers see [this article](http://www.geertdedeckere.be/article/loading-wordpress-language-files-the-right-way)
   on how to make language files in your plugin folder backup proof.
 * Basically you add this to your functions.php:
 *     ```
       public function load_plugin_textdomain()
       {
           $domain = 'my-plugin';
           // The "plugin_locale" filter is also used in load_plugin_textdomain()
           $locale = apply_filters('plugin_locale', get_locale(), $domain);
   
           load_textdomain($domain, WP_LANG_DIR.'/my-plugin/'.$domain.'-'.$locale.'.mo');
           load_plugin_textdomain($domain, FALSE, dirname(plugin_basename(__FILE__)).'/languages/');
       }
       ```
   
 * This way your plugin will look for a language file in `WP_LANG_DIR.'/my-plugin/`
   first before checking the ‘local’ language folder.
 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666897)
 * The rewritten version 2.0 of CodeStyling Localization will contain 2 essential
   new things:
    1. Backup/Restore of Translation Files
    2. Maintainance of Translation files by re-routed folder to provide an overwrite
       safe way
 * The 2nd point will also permit synchronizations as you want it and is also included
   within the full backup system.
 *  [jorijnsmit](https://wordpress.org/support/users/jorijnsmit/)
 * (@jorijnsmit)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666898)
 * Sounds amazing, when is it up for grabs?
 * I couldn’t find a repository for your plugin, is it available somewhere? Would
   be nice to develop it with you :-)!
 *  Plugin Author [codestyling](https://wordpress.org/support/users/codestyling/)
 * (@codestyling)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666899)
 * The new one plugin (2.0) only exists at my local development system.
    If all 
   went the right way, it will be released at 01.01.2013 but will also have proconditions:–
   will not run with WordPress less than 3.4 – will not run with PHP less than 5.1
   There is no longer backward compatibility, so the 1.x Versions will get frozen
   at this time an only get patches for a short time period.
 *  Thread Starter [Juanzo](https://wordpress.org/support/users/jmzolezzi/)
 * (@jmzolezzi)
 * [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666900)
 * That’s great news!
 * And I agree on focusing on new versions only and updated PHP installations.

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

The topic ‘[Plugin: Codestyling Localization] Keep translations after plugin update’
is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/codestyling-localization_e6e1e3.svg)
 * [Codestyling Localization](https://wordpress.org/plugins/codestyling-localization/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codestyling-localization/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codestyling-localization/)
 * [Active Topics](https://wordpress.org/support/plugin/codestyling-localization/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codestyling-localization/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codestyling-localization/reviews/)

 * 7 replies
 * 4 participants
 * Last reply from: [Juanzo](https://wordpress.org/support/users/jmzolezzi/)
 * Last activity: [13 years, 6 months ago](https://wordpress.org/support/topic/plugin-codestyling-localization-keep-translations-after-plugin-update/#post-2666900)
 * Status: resolved