Support » Plugin: Loco Translate » Multi text domain

  • Hi, I have two plugins: the main plugin and the add-on. Files from the add-on are included into the main plugin, if the add-on is activated.
    I cannot translate the strings in the add-on. I tried using two different text domains, I tried using the same text domain (the one of the main plugin), I tried a mix of the two. No solution works.

    Try n. 1:

    plugin -> plugin-xx_XX.mo and .po in folder plugin
    addon -> addon-xx_XX.mo and .po in folder addon

    Try n. 2:

    plugin -> plugin-xx_XX.mo and .po in folder plugin
    addon -> plugin-xx_XX.mo and .po in folder addon

    What I understand is that if the add-on files are included into the plugin files, they somehow become part of the plugin, but the rule is that the text domain must be the same of the folder of the pugin (slug)

    Any ideas?

    Thanks!

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

    (@timwhitlock)

    I don’t follow how your problem translating the addon is related to Loco Translate.

    Both plugins will show up in Loco Translate as a separate bundles with separate text domains.

    Your comments about one becoming part of the other are very confusing.

    Thank you for your quick reply. I see I wrote in the wrong place, my apologies.
    I’ll try somewhere else.
    Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multi text domain’ is closed to new replies.