Change wordpress front language at the same time as admin according to user profile - wordpress

It is possible now to define a language in Wordpress for each user in his profile. The problem is that only the admin side (dashboard) is concerned and not the front.
I would like to change both front and back language of each user when I choose the language is his profile (like it is implemented when we go to "settings" - "general" - "choose site language", the language is changed for both sides but for default configuration, not for a specific user).
If you have any idea,
Thanks.

The WPML plugin allows you to do this.
Within Users => Your Profile, the WPML language settings will allow each user to choose their own language preference.
Thanks.

Related

polylang auto switch language by user data

There is a site with installed and created two languages - english and italian.
From the user I get information from which country he is in the format - 'en', 'it'
Tell me how to set the site language for the user based on the received data.
Or make a redirect to the required language version.
Sorry I don't have enough reputation to post this as a comment, but did you try to activate this from from the Polylang settings -> Detect browser language ?

How to replace language UniqueSeoCode from url

How to replace language UniqueSeoCode from url.
I need to manage language UniqueSeoCode from plugin. how to replace from plugin. if user selection any language from website but i need to redirect to only one language then how to do this ?
I try to do this from action filter based on CommonController of public website and then from this action filter i redirect to specific url. is this proper way or if you have any another proper way let me suggest please.
I need to redirect to customer to spefic language when customer directly open website(e.g. www.google.com) at the time in url does not contain any language so at this time i need to use my specif language.
now how to check that url contain language seocode or not.
if i use actionfilter on commonController at that time i always get language code? how to manage ?
UniqueSeoCode in url is not needed. NopCommerce can detect visitor browser language and browse website in this language. You can enable this option like below.
To configure localization settings go to Configuration → Settings → General settings
Tick the checkbox Automatically detect language for detecting language based on customer browser settings.

How to make admin interface language always english for Drupal 8

I have a Drupal site with en,ja and ko languages enabled. If I edit any translation (say korea) the entire admin interface changes to Korea language. How can I disable this in Drupal 8. I want the site admin interface in English.
I tried with setting administration page language to English under user , but after making this change I can see only English text loads while editing the Korea translation.
Thanks
I was facing the same issue and the following configuration did it for me:
Enable "Account administration pages" at http://my.local/en/admin/config/regional/language/detection and place it in the first position
Set a value for "Administration pages language" on the user profile (ie http://my.local/en/user/1/edit)
If you are using Admin toolbar module, checkout this issues.
https://www.drupal.org/project/drupal/issues/2313309
https://www.drupal.org/project/administration_language_negotiation/issues/2909247

Drupal 7 - Handling multiple type of users

I need to create a website for a client using Drupal 7, the only problem is that I don't know how to handle multiples login forms and permissions.
The goal is that A type of user must be allowed to browse and do some stuff on the website but they can't post offers, however B type of users can only post their offers and manage their contents, the system is just as Upwork.
How can I achieve this ? I'm not good at PHP but I know how to use Drupal, so are there modules that can help me to do what I want?
This is exactly how Drupal works by default using role based permissions. You won't need to install a module or have different login forms.
Start by creating different roles. RoleA can view certain content types and maybe post comments. RoleB can do everything RoleA can do plus post offers and manage their own content. You can control create/edit/delete permissions by content type. It can all be done using the point and click admin interface.
On admin page /admin/user (root relative path to admin page) you can see your site users. There's also link "+ Add user" for creating new user. So if you edit/create an user, on user edit page there is a section "Roles" where you can set what roles that user can use. One role may be "Browse some stuff" and other "Edit some stuff".. You can add/edit roles at admin page /admin/people/permissions/roles. So create the roles you need there.
And to precisely set what role can do what there is admin page: /admin/people/permissions. So when you create all the roles you need, go to that page to set permissions and after that you can assign roles to your users.

WordPress Buddypress User roles and capabilities and Protected contents for specific user levels

I am trying to set specific role/permissions for users in BuddyPress using plugin 'role manager' (http://www.im-web-gefunden.de/wordpress-plugins/role-manager/) but some how it's not working as it should be. Here is my settings in WP dashboard:
Am I setting the wrong user level?
Also, how can I setup password protected contents for specific user roles?
The only thing I have tried so far is 'role manager' settings in WP dashboard (as shown in above image)
Any suggestions / help will be appreciated.
~ Dipak G.
BuddyPress currently doesn't make use of WordPress roles and capabilities. What does this mean? You can set/edit capabilities for certain roles, like in your screenshot above, and it'll only affect that user trying to access default WordPress content or admin features.
It won't have any impact at all on BuddyPress, or any of its features.

Resources