Please, change in new versions
Thanks
“Methods with the same name as their class will not be constructors in a future version of PHP; wp_native_dashboard_personalprofile has a deprecated constructor”
Hello,
I’m getting this line in my log:
PHP Notice: Undefined index: HTTP_USER_AGENT in /home/knives/domains/xxxxxxxxxx.co.il/public_html/wp-content/plugins/wp-native-dashboard/wp-native-dashboard.php on line 159
how can this be resolved?
Thank you
]]>The “locale” filter which calls the on_locale() function can raise an infinite loop, that makes the browser tab crash.
A solution is to unhook the “locale” filter at the beginning of the on_locale() function, then rehook it before each “return” in the same function.
Here is the amended function (in file wp-native-dashboard.php):
//setup the correct user prefered language
function on_locale($loc) {
// FG: To avoid an infinite loop
remove_filter('locale', array(&$this, 'on_locale'), 9999);
if($this->orig_locale === false) $this->orig_locale = $loc;
$skip = !$this->options->enable_login_selector && !$this->options->enable_profile_extension && !$this->options->enable_language_switcher && !$this->options->enable_adminbar_switcher;
if ((is_admin() && !$skip) || ($this->options->translate_front_adminbar && $this->user_agent_is_wp_native_dashboard)) {
if (function_exists('wp_get_current_user')) {
$u = wp_get_current_user();
if (!is_object($u) || $u->ID == 0) return $loc; //bugfix: for ajax based login's
if (!isset($u->wp_native_dashboard_language)) {
if ($loc)
$u->wp_native_dashboard_language = $loc;
else
$u->wp_native_dashboard_language = 'en_US';
}
if(($u->wp_native_dashboard_language != 'en_US') && !@file_exists(WP_LANG_DIR.'/' . $u->wp_native_dashboard_language.'.mo')) {
// FG: Rehook this function
add_filter('locale', array(&$this, 'on_locale'), 9999);
return $loc ? $loc : 'en_US';
}
// FG: Rehook this function
add_filter('locale', array(&$this, 'on_locale'), 9999);
return $u->wp_native_dashboard_language;
}
}
// FG: Rehook this function
add_filter('locale', array(&$this, 'on_locale'), 9999);
return $loc;
}
]]>
Congratulations, your plugin makes a difference in multi-languages environments! I have been using it for a year and for me it’s very useful.
I have noticed that the SPLIT function is DEPRECATED (Warning This function was DEPRECATED in PHP 5.3.0, and REMOVED in PHP 7.0.0. )
Please update yout plugin. Thanks in advance
]]>Hello there,
I have multilang website, i want to give admins around the world to edit the website without it having any effect on the other languages.
is it possible with this plugin?
too many screens not translated to be useful. WP native dashboard is a better option
]]>When activating only the WP Native Dashboard and bbPress plugins,
I get:
Notice: bbp_setup_current_user was called incorrectly. The current user is being initialized without using $wp->init(). Please see Debugging in WordPress for more information. (This message was added in version 2.3.)
Following the bbPress FAQ on https://codex.bbpress.org/bbp_setup_current_user/was-called-incorrectly/ this notice probably comes from WP Native Dashboard that is attempting to access something pertaining to the current user before $wp->init().
]]>Hello,
First, I want to congratulate for this great plugin.
Just to inform you that I just upgraded to PHP 7, and I get:
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wp_native_dashboard has a deprecated constructor in /wp-content/plugins/wp-native-dashboard/wp-native-dashboard.php on line 103
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wp_native_dashboard_automattic has a deprecated constructor in /wp-content/plugins/wp-native-dashboard/automattic.php on line 15
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; wp_native_dashboard_langswitcher has a deprecated constructor in /wp-content/plugins/wp-native-dashboard/langswitcher.php on line 9
Carry on the great work.
]]>I’m in WordPress 4.4 and I can change the settings but the save settings button is missing so I can’t turn anything on. Please help.
]]>Right after i installed the plugin, the front-end toolbar has disappeared.
I have installed it both on live site and on the dev copy, and in both cases the front-end toolbar is gone.
I have tried to uninstall the plugin with the option to clear all settings, but toolbar wont come back.
I have lost two hours already trying to get it back. Nothing helps.
Do you have any suggestion?
Thank you!
]]>Hello, hello developers of this great plugin.
I want to ask if you have not thought about the implementation of the functions of which would change the language and the plugin woocommerce?
In WordPress plugin vas language in the administration change, but woocommerce plugin still remain in deaf language.
I have a shop for woocommerce and would like to change the language there.
Please add this function to the plugin that would be great.
]]>Didn’t work at all, no language picker in the Admin bar, language choices in user profile did nothing.
]]>There is only one language availible. In the list there is only one language, how do I get more languages. I. e my native language?
If I install a new wordpress installation it will remove my old one and I want to keep frontend install.
]]>Native dashboard no longer works with wordpress 4.1. It seems to be overriding the new wordpress language setting in general->settings.
I have a website in German, this should be the base language. However I use native dashboard to turn the admin to English. This also turns the whole site to English (changing the setting in general->settings). This then means that an administrator that is set with german language preferences can’t log in. An English administrator can. If I delete the native dashboard plugin, it works fine. However I can’t change the dashboard to English for my own needs.
]]>Installed, activated, login, logout, and nothing appears like it was in previous versions of WP. It was a very good plugin, the author should really consider to update.
]]>Error code I have:
PHP Notice: Undefined index: HTTP_USER_AGENT in D:\home\site\wwwroot\wp-content\plugins\wp-native-dashboard\wp-native-dashboard.php on line 159
Change This:
$this->user_agent_is_wp_native_dashboard = ($_SERVER["HTTP_USER_AGENT"] == "WP_NATIVE_DASHBOARD");
To This:
$user_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) && 'WP_NATIVE_DASHBOARD' == $_SERVER['HTTP_USER_AGENT'] ? true : false;
$this->user_agent_is_wp_native_dashboard = $user_agent;
There are some instances where HTTP_USER_AGENT isn’t set, ie. from a firewall filter or some other means. This handles that.
]]>Hi,
When using the plugin with the latest wordpress versions, the plugin overrides the site language in standard and multisite installs, thus creating an error and disallowing the language change in the install.
Can anyone assist in this please?
Thanks!
]]>Overrides the site language setting at Settings/General/Site Language, so it changes also the frontend back to English. The WPLANG settings is deprecated since 4.0
]]>I am using WordPress 4.0 and for some reason French does not show up in the repository of languages – there seem to be a lot fewer languages available than when using earlier versions of WP.
Is this something that will be resolved or is there another way to set French as an optional language.
Many thanks for any help with this.
This is a FYI to all (not a problem for this plugin)
If a plugins menu shows up in the wrong language, then possibly that plugin is loading their textdomain too early. They should move the plugin_load_textdomain to the plugins_loaded action hook.
and
]]>Hi. After installing WP-Native Dashboard, duplicate content started to appear inside pages. That means, if I visit the Contact Us page in my website, I see two copies of the page in the window, one after the other, containing exactly the same stuff, including the header and navigation bars.
Please see the screenshot here
What could it be?
If there’s no solution, what a better alternative to WP NATIVE DASHBOARD? (it was last time updated a long time ago actually)
]]>Hi
My site automatically updated itself to WordPress 3.9.2 and I was then unable to login.
I checked each of my plugins and found your (excellent) plugin caused the problem. Will you look into this – since I found WP Native Dashboard an essential for multilingual sites.
– Robert
Hi,
I wanted to install the plug-in only to find out that it is already installed (there are several people working on the blog).
Installed Version is 3.9.1
I have multisite language switcher installed. When I edit the site network, (example.com/wp-admin/network/plugins.php) I see that the plugin is installed.
When I am logged in in a single website, the plugin is invisible. (example.com/wp-admin/plugins.php)
Also, when I log in a language Option is not offered.
Any help is appreciated.
]]>Hello
Rather than rephrasing, this is my original question from my Support Post: https://www.ads-software.com/support/topic/upload-all-mo-po?replies=3
I hope this is OK…
My Original Post:
In relation to my question here on which .mp/.po file to upload to use with your Plugin, I’ve uploaded this clip of a screen screen grab showing Native Dashboard in action within the Welsh site – all good, works perfectly. But, you notice in this screen grab on snag.gy, the cy_GB displays “n/a”, which I take to be as a result of not having uploaded all of the .mo/.po files for Welsh(cy), (listed below).
…. I suppose I should, for the sake of consistency, upload all .mo/.po files as you indicated in order for the UI elements to be 100% complete, i.e. display correct Flag, Correct Language Name …
MY FINAL REPLY:
I did, uploaded and appended _GB as per instruction, and renamed back to original (source). No errors, all working. Addition: wp-login now provides ability to select language prior to admin login. So, something is working.
admin-cy.mo
admin-network-cy.mo
continents-cities-cy.mo
cy.mo
————–
admin-cy.po
admin-network-cy.po
continents-cities-cy.po
cy.po
https://www.ads-software.com/plugins/multisite-language-switcher/
]]>If I set my user language with this plugin to Japanese, the dashboard tells me there is an upgrade available. I don’t necessarily want to install it, because it says the upgrade is mostly localization fixes, and I don’t want to clobber the English option.
Why is it offering me the option to upgrade WP-ja even though I have standard WP with just the Japanese language pack enabled?
]]>So, I just started my first blog using WP. I want to have a bilingual blog english/german. I started WP with the german version, got multisite set up and installed the multisite language switcher plugin.
/ is delivering english content and /de/ the german stuff, with articles it is fine.
But (for gods sake) if you read an english article WP should use the english language for front- and backend in my humble opinion per default. If someone wants to change it – users choice is okay, but things should work automatic…
I searched the settings provided with the language switcher plugin, but it does not seem to have something to tweak it.
Can your plugin handle something like this?
I use the folder setup, an option would be subdomain – but that’s defenitely not what I want to have.
Any hints how to get it done are highly appreciated!
Kind regards from Germany,
Steffen
Hi,
The plugin is great, by the way, I have been searching for exactly this application.
My problem is that the language switch does not work on my site with WPML installed. When I try to switch language it goes back to English.
I worked out that it was WPML (specifically WPML Multilingual CMS) by deactivating plugins until Native Dashboard started working.
If you have any way to resolve this conflict that would be great.
Thanks,
Laurie
]]>Is it possible to set the dashboard language for each user by the admin and not when they themselves log-in?
]]>not sure what’s wrong here:
I selected GERMAN, it works and shows German everywhere, except on the front end it shows: language: English?
see screen shot: https://screencast.com/t/BpRelJFjGcs
Any ideas?
I also edited wp-config.php and still the same problem: define( ‘WPLANG’, ‘de_DE’ );
]]>Need the native dashboard (EN). Says your plug in is only compatible with older version. Fix this.
]]>