Theme translation not working

A few months ago I bought theme from gorillatheme and tried to translate it to my native language which isn't Engli

A few months ago I bought theme from gorillatheme and tried to translate it to my native language which isn't English. Didn't work in any way. Asked from gorillatheme no answer from them, that was 2 months ago. Their support is beyond zero. It is what it is. But i have still problem, no matter how I try it won't take my translation. I made a child theme and put the following code in function.php:

function my_translation() { 
  load_child_theme_textdomain( 'language', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_translation' );

Then found this:

function my_child_theme_setup() {
  load_theme_textdomain( 'automotive', get_stylesheet_directory() . '/languages/automotive' );
  load_child_theme_textdomain( 'auto', get_stylesheet_directory() . '/languages' );
}
add_action( 'after_setup_theme', 'my_child_theme_setup' );

Still nothing.

Do I need to edit this somehow? Where should my translation should be? childtheme folder or somewhere else? What else do I need to do? I made the child theme with Childify Me plugin.

Thank you in advance! Best Regards

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745401003a4626100.html

相关推荐

  • Theme translation not working

    A few months ago I bought theme from gorillatheme and tried to translate it to my native language which isn't Engli

    3小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信