이 플러그인은 최근 3개의 주요 워드프레스 출시와 시험 되지 않았습니다. 워드프레스의 좀 더 최근 버전으로 이용할 때 더 이상 관리되지 않고 지원되지 않고 호환성 문제가 있을 수 있습니다.

AS English Admin

설명

This plugin lets users change their administration language to native English (en_US locale).

This is useful during site development and for people more accustomed to the english administration panel, even if your site
is in another language. (The frontend will still use the native language.)

This plugin is fully compatible with WooCommerce and can correctly identify and translate frontend / backend AJAX requests.
If you are using this plugin with Advanced Custom Fields, please move the as-english-wp-admin.php file to the /wp-content/mu-plugins/ folder
(create it if it does not exist). This is an ACF limitation.

This plugin is developer friendly and small (~200 lines of code). Check the FAQ for customization examples.

Usage

Basic usage

Once you have installed and activated the plugin, navigate to any admin page and check the top admin bar. A button will
display your current locale. If you click on it, the admin will change to English locale (en_US). To switch back,
press the button again.

Requirements

  • PHP 5.3 or higher

Translations

  • None

스크린샷

  • The plugin admin bar

설치

  1. Upload the as-english-wp-admin folder to /wp-content/plugins/
  2. Activate the plugin (English WordPress Admin) through the ‘Plugins’ menu in WordPress
  3. Use the functionality via the admin bar

FAQ

Some plugins are still in the native language when switching to English

To fix this, move the file /wp-content/plugins/english-wp-admin/as-english-wp-admin.php to /wp-content/mu-plugins/

This will ensure this plugin is loaded before all other plugins and that it sets the correct language. This is a WordPress restriction.

Why are some URLs whitelisted?

update-core.php is whitelisted because translation updates do not work properly if you change locale on that screen.

How do I whitelist a specific page from being translated

Use the english_wordpress_admin_whitelist filter. It takes a preg-style regular expression.

/** Whitelist /wp-admin/options-general.php?page=my_plugin **/
add_filter('english_wordpress_admin_whitelist', function($whitelisted_urls)
{
    $whitelisted_urls[] = '.*\/wp-admin\/options-general.php\?page=my_page$';
    return $whitelisted_urls;
});

How do I prevent regular users from having the option of changing the admin language?

If you only want the first admin user to have this option, put this code in your themes function.php file:

/** Only allow the admin user to change the admin language **/
if(get_current_user_id() === 1) {
    add_filter('english_wordpress_admin_show_admin_bar', '__return_true');
}
else {
    add_filter('english_wordpress_admin_show_admin_bar', '__return_false');
}

How do I automatically enable this plugin for certain users?

Use the snippet below to have admins always use the admin page in english.

/** Enable the plugin automatically for admin users */
if(current_user_can('manage_options')) {
    global $english_wordpress_admin_plugin;
    $english_wordpress_admin_plugin->set_cookie(1);
    add_filter('english_wordpress_admin_show_admin_bar', '__return_false');
}

This plugin does not solve my needs

You can leave feature requests in the plugin support forum.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“AS English Admin”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

자국어로 “AS English Admin”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하세요.

변경이력

1.0

  • Initial release