简体   繁体   English

WordPress-更新语言文件

[英]WordPress - update language files

I installed WordPress 3.8 in english language. 我用英语安装了WordPress 3.8。 I'm thinking about change default language (manual upload translation files). 我正在考虑更改默认语言(手动上传翻译文件)。

But there's something I don't know: does WordPress itself will be able to upgrade this files in the future? 但是有一点我不知道:WordPress本身将来是否能够升级此文件?

Yes .. It will. 是的,它会的。

You also need to change the language code in the wp-config.php 您还需要在wp-config.php更改语言代码

the default is : 默认值为:

define ('WPLANG', '');

Change it to the language code you need : 将其更改为所需的语言代码:

Example ( German ) 范例(德文)

define ('WPLANG', 'de_DE');

or Italian 或义大利文

define ('WPLANG', 'it_IT');

Since, however, from your question I can safely assume that you are not a high-level developer , it would be better if you will just download the whole WP package in your language , ( you can find the list HERE ) and upload it to your server . 但是,由于从您的问题来看,我可以安全地假设您不是高级开发人员,因此,如果您只以您的语言下载整个WP软件包(您可以在此处找到列表)并将其上传到会更好。您的服务器。 ( meaning - re-install / upgrade ). (含义-重新安装/升级)。

The reason I am saying that is that since wp 3.8 there is somewhat of a new system to handle language upgrades separately , and thus also new folders ( Languages ). 我说这的原因是,从wp 3.8开始,有一些新系统可以单独处理语言升级,因此也可以处理新文件夹(Languages)。

Just be careful not to overwrite the old wp-content folder , and also not the old wp-config.php providing that you made the changes described above . 请注意不要覆盖旧的wp-content文件夹,也不要覆盖旧的wp-config.phpwp-config.php是您进行了上述更改。 ( But remember , if wp3.8 you need the new language folder in wp-content ) (但是请记住,如果wp3.8,则需要wp-content的新语言文件夹)

If you have not made those changes , just overwrite also the , but remember to update all the other info ( like DB name , DB address , DB User and DB password , and also the Unique Keys and Salts . 如果尚未进行更改,则也要覆盖它们,但要记住更新所有其他信息(如DB nameDB addressDB UserDB password ,以及Unique Keys and Salts

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

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