简体   繁体   English

WordPress本地化wp-config.php

[英]WordPress localization wp-config.php

i cannot set my theme's language to my language.. 我无法将主题的语言设置为我的语言。

i've translated the needed field and set the mo + po file in 'wp-content/languages' folder changed the field in wp-config.php file to my language - define('WPLANG', 'it_IT'); 我已经翻译了必填字段,并在“ wp-content / languages”文件夹中设置了mo + po文件,将wp-config.php文件中的字段更改为我的语言-define('WPLANG','it_IT');

but still all the field in the theme are in english.. what im doing wrong? 但是主题中的所有字段仍然都是英语的。

Have you checked this section of the 'How to': http://codex.wordpress.org/Files_For_Direct_Translation 您是否已检查“操作方法”的以下部分: http : //codex.wordpress.org/Files_For_Direct_Translation

As well as that there are some things that are not covered and need to manually translate. 除此之外,还有一些未涵盖的内容,需要手动翻译。

But what you have done above does sound right for the rest. 但是,您在上面所做的一切确实适合其余的工作。

Have you included the language files in your theme directory? 您是否在主题目录中包含了语言文件?

The language files are in the default theme if you need them, or you can get them from here; 如果需要,语言文件位于默认主题中,或者可以从此处获取它们。 http://codex.wordpress.org/WordPress_Localization http://codex.wordpress.org/WordPress_Localization

It might also be worth reading this page with regard to localisation of themes & plugins when you're running more than one language; 当您运行多种语言时,可能还需要阅读有关主题和插件本地化的本页; http://blog-en.icanlocalize.com/installing-wordpress-for-multiple-language-blogs/how-to-localize-wordpress-themes-and-plugins-with-gettext/ http://blog-en.icanlocalize.com/installing-wordpress-for-multiple-language-blogs/how-to-localize-wordpress-themes-and-plugins-with-gettext/

Finally I don't know if you're aware but theres a stack exchange specific to wordpress which you'll find more answers on than here; 最后,我不知道您是否知道,但是有一个针对wordpress的堆栈交换,您会在这里找到更多的答案; https://wordpress.stackexchange.com/ https://wordpress.stackexchange.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM