[wordpress插件] Auto Dashboard Language汽车仪表板语言

wordpress 插件 文章 2020-02-24 04:40 514 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

If Auto Dashboard Language is installed and activated, the browser language preference is used to determine the WordPress Dashboard and widget language.

如果安装并激活了自动仪表板语言,则使用浏览器语言首选项来确定WordPress仪表板和窗口小部件语言。

1) User visits WordPress site

1)用户访问WordPress网站

2a) If the user is NOT logged in (anonymous):

2a)如果用户未登录(匿名):

The language preference set of the browser is compared to the installed WordPress languages.

将浏览器的语言首选项集与已安装的WordPress语言进行比较。

If any browser language in is installed, it is set as language for the user.

如果安装了任何浏览器语言,则将其设置为用户的语言。

If not, the global site language is used.

如果不是,则使用全局站点语言。

2b) If user is logged in:

2b)如果用户已登录:

If the user has a profile language configured (not equals ‘Site Default’) this language is used.

如果用户配置了配置文件语言(不等于“网站默认设置”),则使用该语言。

If not:

如果没有:

The language preference set of the browser is compared to the installed WordPress languages.

将浏览器的语言首选项集与已安装的WordPress语言进行比较。

If any browser language in is installed, it is set as language for the user.

如果安装了任何浏览器语言,则将其设置为用户的语言。

If not, the global site language is used.

如果没有,则使用全局站点语言。

Plugin also fixes other plugins that don\’t recognize the profile language setting yet (introduced in WP 4.7).

插件还修复了尚无法识别配置文件语言设置的其他插件(在WP 4.7中引入)。

If you use a caching plugin for anonymous users and wan't to prevent presenting some of your widgets in a random users preferred language (when page is saved in cache) add define('WSADL_SKIP_ANONYMOUS', true) to wp-config

如果您为匿名用户使用缓存插件,而又不想阻止以随机用户首选的语言(当页面保存在缓存中时)显示某些小部件,则将define('WSADL_SKIP_ANONYMOUS',true)添加到wp-config

.php .

.php。

安装步骤

    1. Upload the auto-dashboard-language folder to the /wp-content/plugins/ directory.
    2. 将自动仪表板语言文件夹上载到 / wp-content / plugins / 目录。

    3. Activate the plugin through the \’Plugins\’ menu in WordPress.

    4. 通过WordPress中的“插件”菜单激活插件。

      -OR-

      -OR-

      Install and activate from WordPress plugins dashboard feature.

    5. 从WordPress插件仪表板功能安装并激活。

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

AI助手支持GPT4.0