Skip to content
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

Added option to configure the UI language per user #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lpaulsen93
Copy link

This is an attempt to enable configuration of the UI language per user. Also see forum thread https://forum.dokuwiki.org/thread/16576.

If the logged in user has got a settings in user_settings then that language will be used. Otherwise normal processing continues (...check option use_browser_lang).

Here is a example configuration for user_settings (it is a multi line text field):

UserA="de";
UserB="fr";

So in this example, if UserA logs in, the UI will be presented in german. If UserB logs in, the UI will be presented in french. If some different user logs in or if no one is logged in the plugin will act as before.

@stonier
Copy link
Owner

stonier commented Jul 23, 2019

This is nice - I wanted to do something like this back when I wrote this plugin, but it was always a nice-to-have. Inbetween myself and my colleagues at work, or my wife at home, making use of HTTP_ACCEPT_LANGUAGE was sufficient.

Alas, I do not have a dokuwiki instance any longer. If you would like to fork this and evolve it for others, please, feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants