最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Theme translation not working

programmeradmin2浏览0评论

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

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论