• Resolved MarionFW

    (@marionfw)


    For my new WordPress-site, using the Hueman-child, I downloaded the file en_US.po from Hueman (no such file for child), translated it and uploaded it again (FileZilla). I did not change the name of the file, so I suppose it should work (at least untill the next update of the theme). Still the English text is shown.

    I synced the .htaccess file (although I have no clue if this has anything to do with it, but just to make sure….)

    Can anyone help? My site is not online yet.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi MarionFW. I haven’t actually done a translation but I believe WP uses the compiled .mo file, not the editable .po text file. I found a pretty good explanation of the process in this article. Also, the Codex states that, for WP 4.0 and above, you can change the language designation in the Admin panel instead of wp-config. Or, you might take a look at the Codestyling Localization plugin. Hope that helps.

    Thread Starter MarionFW

    (@marionfw)

    Thanks, I now used Poedit, and it works.

    ansgar55

    (@ansgar55)

    Hi Marion,

    could you explain the workflow how you fixed it as:

    I created a new .po file and saved also a new .mo file with Poedit.

    On my local test drive it works but when I upload it do my web host under the child folder/languages it does not.

    Thread Starter MarionFW

    (@marionfw)

    Hi Ansgar,

    this is what I did (I took note of it, because I’m not an experienced WordPress-user):

    I downloaded the translation .po files in a zip-file from Github
    Then I edited using Poedit and saved it
    Automatically the .mo file is created.
    I uploaded throught ftp (filezilla) to a new folder “language” in the childtheme-folder

    After that I followed the instructions on https://demo.alxmedia.se/wp-content/themes/hueman/functions/documentation/documentation.html#customization : you have to modify functions.php (on this page, search for text “The same method would be used to change language files folder. You would then copy over the whole alx_load() function, but only modify this one line in it:”

    Hope this will help you out.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘change language file’ is closed to new replies.