• Resolved Joe Bloggs

    (@joe-bloggs)


    I’ve got site1.com where WordPress is set up with Australian english as default ‘Site language’. I’ve done my own plugin translations by copying the ‘en_US’ language file, and then saving it as ‘en_AU’ file within the ‘Custom’ destination folder. 

    Now, I need to transfer this translated ‘en_AU’ file onto another site, site2.com, where the default ‘Site language’ is American english ‘en_US’. 

    So, I basically want to use my translated ‘en_AU’ from the first site on this new site.

    But I’m guessing, since the new sites language is ‘en_US’, then it will not automatically activate and read my translated ‘en_AU’ file. How would I go about this?

    I am thinking of downloading the translated ‘en_AU’ .po file from site1, then renaming it to the ‘en_US’ extension, then uploading it to site2 as ‘en_US’ .po file into the ‘Custom’ destination folder.

    Would that be correct? Am I allowed to have 2 ‘en_US’ .po files at the same time?

    Many thanks, Jo

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

    (@timwhitlock)

    I am thinking of downloading the translated ‘en_AU’ .po file from site1, then renaming it to the ‘en_US’ extension, then uploading it to site2 as ‘en_US’ .po file into the ‘Custom’ destination folder.

    Would that be correct?

    This will work for your file. Loco Translate will compile the required en_US.l10n.php file as for any valid language code.

    As for whether it’s “correct” – this is subjective. It’s entirely down to you whether you want to override regional English without specifying a “translation” language for your site2, as. you have with your site1. I can only tell you how my plugin works.

    Am I allowed to have 2 ‘en_US’ .po files at the same time?

    Yes. Loco Translate will merge your system and custom files as documented.
    See this note about loading order.

    Thread Starter Joe Bloggs

    (@joe-bloggs)

    Thanks @timwhitlock . I’m not sure I understand this part where you say:

    As for whether it’s “correct” – this is subjective. It’s entirely down to you whether you want to override regional English without specifying a “translation” language for your site2, as. you have with your site1. I can only tell you how my plugin works.


    Would there be a better way to go about this?

    I have a site 1 with en_AU as deafult site language (from when WP was initially installed), then I have a site 2 with en_US as default site language (again already specified from when WP was initially installed).
    What would be the best way, the correct way, to get the active translated file across?

    Plugin Author Tim W

    (@timwhitlock)

    If you’re asking me for my opinion. Translated content in en_AU should be held in files named en_AU with your site language set to en_AU.

    It’s subjective, because it’s your site and not mine. I can’t say what issues you have to deal with, now or in the future.

    Thread Starter Joe Bloggs

    (@joe-bloggs)

    No worries, thank you.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘How to export translated .po file to a site with different base site language?’ is closed to new replies.