• Hi,

    I’m running a WordPress Multisite network where subsites are cloned from a template.

    I need each subsite to have independent translations for plugins/themes, even if they all use the same locale (e.g. es_ES).

    I know Loco Translate saves .po/.mo files into wp-content/languages/ by default, but in Multisite this folder is shared, so any change affects all subsites.

    My questions:

    1. Can Loco Translate store or force translations into a per-site folder like wp-content/uploads/sites/{blog_id}/languages/?
    2. Is there any built-in option in Loco to select that path per subsite, or would I need to handle it with a filter such as load_textdomain_mofile?
    3. If only Loco is used, what’s the recommended workflow so that a client can change a translation in their subsite without affecting the rest of the network?

    Thanks — I want to confirm if this per-site independence is natively supported by your plugin or if it requires custom handling.

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

    (@timwhitlock)

    Loco Translate works as per WordPress in this respect. One languages folder for the install.

    Some things worth mentioning though…

    (1) Multisite WordPress maintains separate “options” per site. This means (by luck, rather than by design) you can have a different bundle configurations in Loco Translate’s “Advanced” tab. That will allow you do define separate language file locations for Loco Translate’s editor to find them – BUT – WordPress will not be able to find them when it comes to load them. That last part will still require some custom handling.

    (2) Loco Translate allows you do define LOCO_LANG_DIR before it defines a default value. If you were to pre-empt this before Loco Translate starts up (e.g. in a must-use plugin), you could potentially set it to different values depending on the site. This route should also work at runtime, because Loco Translate’s file loading helper will look in that location. I’ve not tried this, but off the top of my head I think it may work.

Viewing 1 replies (of 1 total)

The topic ‘Multisite Translate Support’ is closed to new replies.