[wp-hackers] Will automatic translation files updates overwrite user's modifications
nikolov.tmw at gmail.com
Tue Dec 3 19:39:02 UTC 2013
Okay, so do you know if it's possible to have "overriding" of translations
that would work like extending a class in PHP. So - you would have your
custom translation file that will only overwrite a couple of the
translation strings. Everything else would come from the original
Also are you aware of any plugins that can do that at the moment? Or is
that even possible filter-wise.
On Tue, Dec 3, 2013 at 9:25 PM, Otto <otto at ottodestruct.com> wrote:
> If the files are being stored in a place that WordPress is expecting to be
> able to update them, then yes. It's no different than changing core code or
> changing code in a plugin or theme directly.
> If you use customized files, then you should put them in custom locations
> with some form of custom code to cause the system to use them. Modifying
> files that can be updated by an auto-update process directly means your
> changes are not safe.
> On Tue, Dec 3, 2013 at 1:03 PM, Nikola Nikolov <nikolov.tmw at gmail.com
> > It just occurred to me - the new feature(automatic download/update of
> > translation files) that is planned for WordPress is awesome, but would it
> > overwrite any changes the user might have done to the local translation
> > file?
> > For instance, the user has installed the Codestyling Localization plugin,
> > or has a different way of overwriting translation files and has modified
> > one or more translation files.
> > Why would they do that? Well they just don't like the wording for
> > - translation files are a great way to tweak texts(even when the original
> > text is in the same language), without having to modify the code.
> > So what I'm wondering is - are those edits going to be lost upon update
> > are they going to be preserved? It's true that if it's the translation
> > of a theme or a plugin that they changed, upon updating those the edits
> > would be lost, but does the same apply for WordPress translation
> > files(stored in /wp-content/languages/)?
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers