Detect preferred language via browser or force default language for quarantine users

poetry

Active Member
May 28, 2020
206
63
33
Hello,

Is it possible to detect preferred language via browser or force default language for quarantine users? I spend a lot of time making sure to translate proxmox mail gateway to our native language to make sure the quarantine usage is going to be as easy to use as possible for our users.

Now with my testing it seems like there is no way to detect preferred language via browser or setting default language for quarantine users?

This is such an essential feature that I don't understand how it's not implemented? No one and I mean no one is going to change the quarantine language it's like 4 clicks to do it and most of our users are seniors so you know how this goes...

Please advise if this is possible or I will have to overwrite the default files every time I upgrade as noted here https://forum.proxmox.com/threads/question-is-possible-to-change-default-language.75332/#post-335753.

I really wish you consider implementing such an essential feature if it's not implemented that you would expect to have if you offer different languages of your product. Every other product we use can detect preferred language via browser this would be most optimal.

Thank you!
 
sadly an autodection or default is not implemented. i looked in the bugtracker and for pmg, no one requested that feature (yet) aside from you, but i think it'd make sense.
could you please open a feature request for that here? https://bugzilla.proxmox.com

the only place where we currently read the language from is the 'PMGLangCookie' when loading the page
 
sadly an autodection or default is not implemented. i looked in the bugtracker and for pmg, no one requested that feature (yet) aside from you, but i think it'd make sense.
could you please open a feature request for that here? https://bugzilla.proxmox.com

the only place where we currently read the language from is the 'PMGLangCookie' when loading the page

It looks like I am the only one who cares about user experience. I spend a lot of time testing, translating, writing documentation for our users so when user quarantine is implemented is going to be as easy to use as possible.

As requested I have opened a feature request that is available here https://bugzilla.proxmox.com/show_bug.cgi?id=4404

As a side note can someone help with this:
Until this is implemented can someone suggest how can I force default language different then English as explained here for just quarantine users https://forum.proxmox.com/threads/question-is-possible-to-change-default-language.75332/#post-335753 because if you follow the advice in that thread you will lose English for admin interface.
 
  • Like
Reactions: JCV
Bonjour,
Any news for the bugzilla ? https://bugzilla.proxmox.com/show_bug.cgi?id=4404

We are very interesting with this feature.

We try to change the line
Code:
Replace the line:
Code:
<script type='text/javascript'> function gettext(buf) { return buf; } </script>

by the line:
Code:
<script type='text/javascript' src='/pve2/locale/pmg-lang-fr.js'></script>

# Being pmg-lang-es.js the language for Spanish, changing depends on the language you need

run:

#: systemctl restart pmgproxy.service

But with this, We can't choose english .

The value [% DEFAULT lang = "fr" %] il the file /usr/share/javascript/pmg-gui/pmg-index.html.tt doen't seems to do anything
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!