How to translate - by William - on WordPress WooCommerce support

This topic has 2 replies, 2 voices, and was last updated 7 years, 3 months ago ago by Eva Kemp

  • Avatar: William
    William
    Participant
    December 26, 2016 at 00:00

    Hey

    1. I want to change the language at my website. I followed instructions and have put the sv_SE.po and sv_SE.mo files in /wp-content/themes/royal/languages.

    But i dont get the last part of the instructions. What code should i use and where do i put the css code? I want to put it in the child theme as you recommend.

    2. I have created a child them and when i now go my website i get this messege:

    Notice: Undefined index: actor in /home/meielrgr/public_html/wp-content/themes/royal/framework/theme-functions.php on line 459

    Notice: Undefined index: actor in /home/meielrgr/public_html/wp-content/themes/royal/framework/theme-functions.php on line 459

    Notice: Undefined index: actor in /home/meielrgr/public_html/wp-content/themes/royal/framework/theme-functions.php on line 459

    Notice: Undefined index: actor in /home/meielrgr/public_html/wp-content/themes/royal/framework/theme-functions.php on line 459

    How do i fix this?

    Thanks,
    William

    Please, contact administrator
    for this information.
    1 Answer
    Avatar: Eva
    Eva Kemp
    Support staff
    December 26, 2016 at 13:31

    Hello,

    As I see you put WordPress translation files, not the theme. Go to wp-content/themes/royal/languages directory and translate Royal.pot file with Poedit program as written here http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./ . Then go to Settings > General in your WP Dashboard and select your language.

    As for the notices I’ve disabled debug mode in wp-config.php file.
    Please check now.

    Regards,
    Eva Kemp.

  • Viewing 2 results - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.