【问题标题】:Changing wordpress language更改 wordpress 语言
【发布时间】:2013-11-08 10:46:01
【问题描述】:

我正在尝试将 wordpress 默认语言从英语更改为瑞典语。我使用瑞典语 .mo 文件将语言目录上传到 wp-content。

我已经在 config.php 文件中定义了语言,但它不会更新,当我登录并在更新下我可以看到一个选项说用瑞典语恢复核心文件,所以我知道它只有在我更新它时才能工作仍然是英文。

非常感谢任何帮助。

【问题讨论】:

  • 我认为您还需要 .po 文件。
  • 属于 wordpress.stackexchange.com 网站

标签: php wordpress mo


【解决方案1】:

查看以下链接,它们完全符合您描述的情况(并提出了同样的简单解决方法):

http://devblog.fishol.pl/php/wordpress/how-to-restore-default-wordpress-language/

http://wordpress.org/support/topic/change-language-to-english-after-dutch-installation

希望对你有帮助。

【讨论】:

    【解决方案2】:
    In order to change the language in wordpress blog you need to perform these steps:
    
    1) Login into WordPress Blog Administrator Control Panel.
    2) Click on Settings.
    3) Click on General Settings.
    4) Select the desired Language from the drop down menu at Language section.
    5) Click on save changes.
    

    read more

    【讨论】:

    • 我没有那个选项,我的常规设置中没有下拉菜单或任何关于语言的内容
    • 这里是下拉选项时区,阅读它以获取更多信息en.support.wordpress.com/language-settings
    • 这里的情况相同。看不到语言下拉菜单。请注意,我安装 WordPress 时默认安装了我的语言,而不是稍后下载和添加它,这可能会很有用。要解决这种情况(这似乎很常见),请查看我在回答中提供的解决方案。
    【解决方案3】:

    改变语言使用

    add_filter('locale', 'setLocale22323');
    
    function setLocale22323($locale) {
      if ( is_admin() ) {
        return 'en_US';
      }
      return $locale; 
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-08-12
      • 2022-01-24
      • 2022-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-11-29
      相关资源
      最近更新 更多