WordPress.org

Ready to get started?Download WordPress

Forums

Loco Translate
[resolved] File naming bug? (4 posts)

  1. richpav
    Member
    Posted 2 months ago #

    I'm creating us_EN .mo files because my site's default language is Japanese. When I use Loco Translation to create an en_US translation, the files are named, for example, wpml-sticky-links-ja.poen_US.po and wpml-sticky-links-ja.poen_US.mo

    I'm using Loco Translate 1.4.4.

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

  2. timwhitlock
    Member
    Plugin Author

    Posted 2 months ago #

    Hi,
    First of all I'm confused by the idea that your site's default language being Japanese means that English MO files are loaded. WordPress's default language is en_US, so the normal approach is to set ja_JP as your language meaning that the ja_JP.mo file is loaded - not the other way around.

    As for the actual file naming problem -

    If you don't specify a "Text Domain" plugin header, Loco will try to work out the intended text domain of your plugin, so avoid using a language code in places that might indicate that this is the text domain you're using.

    I'm not ruling out the possibility of a bug, but I need to understand what it's trying to do.
    It looks like Loco is trying to copy the naming convention of an existing PO file, but I'm not aware of any bug affecting that functionality. It might be easier if you email your whole plugin to support-wp at localise.biz

  3. timwhitlock
    Member
    Plugin Author

    Posted 10 hours ago #

    Can you confirm whether there is still an issue here to be resolved. I've not received any follow up.

  4. richpav
    Member
    Posted 5 hours ago #

    I've marked the topic resolved.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.