Installing localization files

Home Support Themes Forum Installing localization files

Tagged: ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1826
    Anonymous
    Inactive

    Hi,
    i’m trying to install localization files as described in the readme.
    I’ve downloaded .po & .mo translation files from here https://translate.wordpress.org/projects/wp-themes/precious-lite/it/default , exported as .mo and .po files and uploaded files in these paths:

    /wp-content/languages/themes

    named as:

    precious-it_IT.po
    precious-it_IT.mo

    But it doesn’t seems to work.
    Any help?
    Thanks in advance.

    #1829
    FlyThemes
    Keymaster

    Hi

    Take a look at wp-config.php in the root directory.

    You should add a line that looks like this:
    define (‘WPLANG’, ‘it_IT’);

    The part that says “it_IT” has to match your theme’s MO file postfix (e.g. precious-it_IT.mo).

    If the line says:

    define (‘WPLANG’, ”);

    then WordPress is set to English and it won’t look for any translation file.
    I hope it helps!

    Thank You

    #1831
    Anonymous
    Inactive

    Unfortunately, it doesn’t work.
    I added the line define (‘WPLANG’, ‘it_IT’); to my /wp-config.php file but it still shows eg. slider buttons in english.

    Any other suggestion?

    Thanks for your fast answer

    #1833
    Anonymous
    Inactive

    I’m sorry, your suggestion worked like expected. The problem is that in this way I’m not able to translate the “Read more” button in the blogposts section or the Recent Posts title in the footer. Is there any way to do that?

    Thanks again

    #1834
    Anonymous
    Inactive

    I managed to do that manually editing custom_functions.php and footer.php since those strings are not localized in .pot file.
    I hope this will be fixed in the future.

    Thanks for the support.

    #1843
    FlyThemes
    Keymaster

    Hi

    Thank you for your message we will fix it in our file thanks for letting us know.

    Thank You

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.