[wordpress插件] Complete Language Switcher完整的语言切换器

wordpress 插件 文章 2020-03-29 22:20 1148 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Complete Language Switcher is a plugin that allows you to setup your blog with multilingual support.

Complete Language Switcher是一个插件,可让您使用多语言支持来设置博客。

It also allows you to switch between languages with a nice list of flag which are easily styled.

它还允许您在带有易于设置样式的标记列表之间切换语言。

Complete Language Switcher filters out the posts tagged with a certain language to displayed.

Complete Language Switcher过滤掉要显示某种语言的帖子。

Other languages will be hidden in the listings.

其他语言将隐藏在列表中。

Note that this plugin requires the xili-language plugin in order to work.

 请注意,此插件需要使用xili-language插件才能正常工作。

安装步骤

Installing this plugin is easy.

安装此插件很容易。

    1. Install and activate the xili-language plugin
    2. 安装并激活 xili-language 插件

    3. Upload the complete-language-switch folder to the /wp-content/plugins/ directory
    4. complete-language-switch 文件夹上载到 / wp-content / plugins / 目录

    5. Activate the plugin through the ‘Plugins’ menu in WordPress
    6. 通过WordPress中的“插件”菜单激活插件

    7. Place

    8. 放置 <?php cls_langs_html();

      ?> in anywhere your templates or hook it in your template using

      ?> 在您模板的任何位置,或使用 <?php add_action('hook_name','cls_langs_html')将其挂接到模板中;

      ?>.

    9. ?>

    A few notes:

    一些注意事项:

      • Make sure you put en_US.mo files in the language folders when using the default language.
      • 使用默认语言时,请确保将en_US.mo文件放在语言文件夹中。

      • Check the /flags/ directory in the plugin to see if your flag is in there.

      • 检查插件中的/ flags /目录,以查看您的标志是否在其中。

        Naming is the 2 last characters of the locale (eg. en_US) in lowercase in PNG format.

        命名是以PNG格式的小写形式表示的语言环境(例如en_US)的最后2个字符。

        So en_US would be: us.png

      • 因此en_US是:us.png

下载地址
https://downloads.wordpress.org/plugin/complete-language-switch.zip
-EOF-

AI助手支持GPT4.0