Core Translation with WP4

This topic contains 11 replies, has 4 voices, and was last updated by  Stiofan O’Connor 9 years, 7 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #15173

    migs
    Free User
    Post count: 42

    Although I’m not running a multi-language site, I do prefer the use of correct (en_GB) English, rather than the Americanised version of GD that we all now have to suffer 🙂

    I’m also trying to tidy up some of the other phrases used in GD to better suit my purpose.

    However, I’m finding that I can’t make translations stick. I have the edited en_GB .mo file in wp-content/languages. but it makes no difference. I even tried putting it in /wp-content/languages/plugins again with no change.

    Once I put the file in wp-content/languages, I know WP can see the file, as it then shows the language chooser in Settings > General.

    All help appreciated

    Paul

    #15180

    migs
    Free User
    Post count: 42

    Typo Edit: Path used was wp-content/languages/geodirectory/

    #15190

    Simone
    Expired Member
    Post count: 3515

    Hello, are your files named geodirectory-en_GB and not only en_GB?
    The path is correct ( wp-content/languages/geodirectory/ ).

    Here the documentation

    #15197

    migs
    Free User
    Post count: 42

    Hi Simone, yes they are named correctly.

    #15198

    Simone
    Expired Member
    Post count: 3515

    Is your wp-config.php set to en_GB?
    Are you using some cache plugin? (if so, purge the cache)

    #15203

    migs
    Free User
    Post count: 42

    No cache plugin, wp-config tried with define(‘WPLANG’, ‘en_GB’); both included and not, as it’s supposed to be deprecated in WP4?

    #15207

    Simone
    Expired Member
    Post count: 3515

    you’re right, WP_LANG is deprecated in WP 4.0. I’ll notify Stiofan

    #15209

    migs
    Free User
    Post count: 42

    Thanks Simone

    #15222

    Paolo
    Site Admin
    Post count: 31206

    Hi Guys,

    I’ve just tested translatation on 2 test website on different servers, both with latest everything and it worked as expected.

    Can you please provide FTP and wp admin credentials?

    The only thing that comes to my mind is a problem in the edited mo file.

    Let me know,

    Thx

    #15334

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    did u get this fixed? If not please provide FTP and w can help 🙂

    Stiofan

    #15344

    migs
    Free User
    Post count: 42

    Hi Stiofan

    Sorry for the delay, I try not to work weekends 😉

    I tried again, and it still didn’t work, so I downloaded a fresh copy of the GD package, uploaded the core language .po, edited it in poedit and uploaded the .mo to wp-content/languages/geodirectory.

    That time, it worked perfectly. It seems either there was an issue with the original .po I had, or at least with the .mo that was being created from it by poedit.

    Whatever it was, it’s fine now 🙂

    This is one area where Joomla outshines WP. Why someone ever thought language files should be compiled is a mystery I’ll never figure out.

    migs

    #15607

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    haha 🙂 glad it’s working now!

Viewing 12 posts - 1 through 12 (of 12 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket