Support » Plugin: Loco Translate » FAQ: How do I prevent updates from overwriting my translations?

  • Plugin Author Tim W

    (@timwhitlock)


    If you’re translating somebody else’s theme or plugin, you’ll want to make sure that future updates don’t overwrite your own custom translation files.

    The way to do this is ensure that your PO and MO files are saved in the global languages directory, and not inside the theme or plugin folder.

    The global languages directory is at wp-content/languages, and the format for saved files is as follows:

    Themes:
    wp-content/languages/themes/<text-domain>-<locale>.mo

    Plugins:
    wp-content/languages/plugins/<text-domain>-<locale>.mo

    Before using Loco Translate, ensure that the language directory and relevant subdirectory are writable by the web server. If it is writable, Loco will ask you want to save your translations there.

    Note that themes and plugins must be set up correctly for WordPress to load translations from the global folder. This is beyond the control of the Loco Translate plugin.

    https://wordpress.org/plugins/loco-translate/

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

    (@timwhitlock)

    Please don’t post support questions below this FAQ.

    Open a separate support topic if you have a question about using the global languages directory with Loco Translate.

Viewing 1 replies (of 1 total)
  • The topic ‘FAQ: How do I prevent updates from overwriting my translations?’ is closed to new replies.