-
Notifications
You must be signed in to change notification settings - Fork 805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not respect admin locale, uses WPLANG only #1027
Comments
@jeherve I reverted it and still I have the Spanish language interface in the admin. Hopefully I did the revert right. I did the following:
Jetpack is still displayed in Spanish: |
Thanks for trying! You can go back to the standard Jetpack 3.1.1 then. What happens when you remove your |
I think it may be happening too late, as you're setting the admin language when your theme loads in functions.php. Can you try migrating your language switcher admin snippet into a new mu-plugins file? |
@jeherve I tried disabling all plugins except for Jetpack 3.1.1 and wp-native-dashboard 1.3.12 and removed the All settings in wp-native-dashboard are default: I also tried switching to plain vanilla twentythirteen and had the same result. I am running WordPress 3.9.2, the main English version. There is a build specifically for es_ES that I have avoided because it translates too much to Spanish: @georgestephanis After trying the above, I deactivated the wp-native-dashboard plugin and created a file <?php
// Set the language of the admin to English
function vivelohoy_set_admin_lang($lang) {
if( is_admin() ) {
$lang = 'en_US';
}
return $lang;
}
add_filter( 'locale', 'vivelohoy_set_admin_lang' ); Still no dice. I haven't previously used mu-plugins, don't have examples to work from, and the official docs leave me wanting, so I hope I'm doing it right. Please let me know if I should be doing this another way. |
I can't seem to reproduce. I tried the following:
I then tried the following:
I tested this with both WP 3.9.2 and WP Master, and with JP 3.1.1 and JP Master. Something else seems to affect the locales on your site. Could you try on a different site? |
@jeherve Thanks very much for your earnest work on troubleshooting my issue and for providing such complete instructions. I will respond in turn with my detailed steps to replicate what you provided. I was able to make it work with the second method, via To spin up something quickly, I went with setting up a WordPress 3.9.2 site on WebFaction which chooses twentyfourteen as the default theme. I then download the You can see the 3.9.2 "update" being offered because the language is set differently and WordPress is helpfully trying to get me to install the fr_FR localized version. You can also see the French language text shown with the as-yet-unactivated JetPack plugin. From this point I try each of the following two methods as you described, reverting back to this base state for each attempt. Using WP Native Dashboard
I think perhaps I am not understanding how to properly activate the WP Native Dashboard, or how to switch languages with it. Using
|
I found that I was able to fix my site using the Thanks again! |
In my site's
wp-config.php
I have the language set to es_ES since this is a Spanish-language news site and I want to use the default translation strings for front-end interface elements:My theme is a child theme of twentythirteen. In my theme's
functions.php
I have the admin language set to en_US:In the admin area, most plugins display in English but JetPack still displays in Spanish:
The text was updated successfully, but these errors were encountered: