• Resolved Aldo

    (@ab_lu)


    Hello

    How can I create translation file template and translations in a safe place so they do not get deleted when the plugin is updated? Basically I try to overwrite the translations provided with a plugin.

    • This topic was modified 6 months, 2 weeks ago by Aldo.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Tim W

    (@timwhitlock)

    For translation (PO,MO) files, see the documentation on choosing a location.

    For template (POT) files, you must configure this in the bundle using a relative path. See documentation on bundle configuration. Enter paths outside of the plugin using .. references. You can specify any safe location you like for POT files.

    Thread Starter Aldo

    (@ab_lu)

    But what if I’m dealing with a third party plugin?

    Plugin Author Tim W

    (@timwhitlock)

    This will work for any plugin, if it’s internationalized correctly. If it isn’t, then you could run into any number of problems.

    If by “third party” you mean outside of the WordPress plugin directory, then you don’t really need to use the custom/safe location at all. You can just use the standard system languages directory, because there will be no translation updates to overwrite it. Just avoid saving anything inside the plugin’s own folder.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Create “update save” translation for plugins’ is closed to new replies.