• Hi

    I am trying to change some text that is encoded in the en_GB.mo file. But for some reason I cannot effect the change. I have edited the appropriate PHP file, the .po file and created the .mo and placed in what I think is the correct directory, on both my internet server and localhost, neither of which change the text within the browser invocation of the code. I can get gettext working on other projects but the main difference is the use of ..\locale\<ll>\LC_MESSAGES\ which WP does not seem to use and the fact that the gettext documentation works to spec.

    Can somebody point me at any appropraite documentation or provide guidance, please?

    A worked example would be helpful!

    Cheers

    Paul.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Is it a change in the WordPress core translation file? Or is it for a theme or plugin?
    Translation file updates are downloaded sort of behind the scenes. Did your change get overwritten?
    And for core translations, the code used to check for local copies before going to load it externally, but I’m not sure if that check is still in place. (translations changed around WP 4.6 : “Translations managed through translate.www.remarpro.com now have a higher priority and are loaded just-in-time.”

    Thread Starter microbond

    (@microbond)

    Hi Joy

    Thanks for the response.

    I want to be able to change all three, core, plugins and themes however I have only been succesful with “Hello Dolly” so far. My amended translation files have not been overwritten or updated. I am either not running Poedit correctly with the appropriate configuration settings or I am not changing the correct file in the correct directory, or something else is wrong. Just one worked example that successfully changes a *.mo file, that renders correctly on a browser, should be enough for me to figure out the rest, I think!

    Also, I could do with understanding how the WP language files are not using the standard gettext directory structure of ./locale\<ll>\LC_MESSAGES ? I presume there is a config parameter somewhere?

    Obviously I need to do a bit more research, but your help is much appreciated.

    Cheers

    Paul

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