+3
Completed

Extend the available languages of GLPI Demonstration Environment

Tomás Abad 7 years ago updated 7 years ago 7

The idea is simple: to make the GLPI Demonstration Environment accessible to as many people as possible in their native language.


> Note: The following is only an example for Spanish language. The idea is to add or include the widely used languages which has more than a 95% --it's an approximation-- of its translation work done in transifex.


How would this be done?. Well, I propose to create these three new users (username / password)


admin_es  / admin

normal_es / normal

post-only_es / post-only

and all of them configured with Español (España) or Spanish (Spain) language. Some changes would also be necessary on the home page of GLPI Demonstration Environment to indicate the existence of these new users.


That's all. Thanks in advance.

Answer

+1
Answer

We've talked about that; and we've added the lang selector on the login page on demo mode (will be done for 9.3), see: https://github.com/glpi-project/glpi/pull/3934

+1

It would be a good idea to extend available languages. It is not possible to know translation percentage from TX, and adding users with a specific locale will quickly become a nonsense (or we're going to create dozens of users :D).

Hello Johan,


I'm glad you like the idea. ;)


Actually I'm not talking about to add or include all the most used languages but only a selection of them; those that are worldwide used for their importance, that are more interesting for GLPI Project and that are completely translated in transifex. In a nutshell, and regarding GLPI 9.2.x, I'm talking about English (en-GB | en-US), Spanish (es-ES), French (fr-FR), Russian (ru-RU) and German (de-DE).


And not, I'm not talking about to do that automatically (or automagically). :)


Regards,

+1

+1 Language Detection in User-Agent

+1
Answer

We've talked about that; and we've added the lang selector on the login page on demo mode (will be done for 9.3), see: https://github.com/glpi-project/glpi/pull/3934

The solution Iv'e proposed jsut adds - on demo mode - a language dropdown. Selectd lang will be used, and it will fallback to user/glpi lang as usual if nothing is selected.


An alternative we could provide would be to:

- check user agent to display login page with the according locale,

- always display the language dropdown (somewhere ate the top/right of the login page),

- change login page lang when one is selected in the dropdown (cons: user entries would be reset),

- use dropdown selected at login (or use defaults).


Thoughts?