webmin / authentic-theme

Official theme for the best server management panel of the 21st Century
https://authentic-theme.com
MIT License
947 stars 163 forks source link

Usermin: why in english only? #779

Closed 7starsone closed 7 years ago

7starsone commented 7 years ago

Hello, didn't notice that before or didn't understand how to change.

If i try to enter Usermin with one of my users, it shows everything in english.

Is it by design? Maybe configurable by Virtualmin or...? Thanks

iliajie commented 7 years ago

How do you enter it? Switching to it from root?

In case your users see language correctly, I am be pretty sure that it was done by design, to set the language that root is using. Otherwise you might end-up seeing, the language you would never be able to comprehend.

It's not the theme issue, I suppose.

7starsone commented 7 years ago

eg. https://domain.com:20000

login by Username and Password that's english only and can't be changed by user...

so... ?

7starsone commented 7 years ago

but Usermin is for users, not for root... I can't understand, really....what root language has to do with the user language? Users should be able to choose their own language. Agree? 😃

iliajie commented 7 years ago

So? You should be able to have this:

screenshot from 2017-05-17 13-46-02

Other than that, you need to go to Usermin Configuration/Available Modules and make sure that it's available. screenshot from 2017-05-17 13-47-31

7starsone commented 7 years ago

ok, that wasn't selected.... BUT, maybe found something...

File Manager wasn't selected too, but anyway was there for my user...why?

instead, if I select it and save, on Usermin there is a duplicate File Manager

iliajie commented 7 years ago

Duplicate is java File Manager or manaully installed Filemin from Real-Gecko repo.

If you think there is a bug, please report it to Usermin repo.

7starsone commented 7 years ago

There are 2 File Manager modules....both named File Manager, on the left and on the right column...

How i distinguish them? 😃 in your image they are 3 !

iliajie commented 7 years ago

Ok. I will report it to Jamie myself.

7starsone commented 7 years ago

please, where are the translation files for Usermin AND Usermin modules? thanks

iliajie commented 7 years ago

Each module has its own /lang directory containing localization files.

You can find it under Webmin/Usermin directory.

Besides, each module contains a file module.info, which describes it.

7starsone commented 7 years ago

I can't understand how to translate these buttons text change

so, not the relative page content/text eg. /usr/libexec/usermin/chfn/lang/ but the direct buttons text on the left menu...

7starsone commented 7 years ago

I tried to add desc_xx=... and desc_xx.UTF-8=... to /usr/libexec/usermin/chfn/module.info

saved and even restarted usermin, no change... so, where's the buttons text on the left, please?

iliajie commented 7 years ago

I think, it's inside /lang folder of Usermin. Search through file's content!

iliajie commented 7 years ago

File Manager can do it. 😉

7starsone commented 7 years ago

no, there's something weird...

[root@me ~]# grep -rnw '/usr/libexec/' -e 'Change User Details'
/usr/libexec/usermin/chfn/lang/en:1:index_title=Change User Details
/usr/libexec/usermin/chfn/lang/hu:1:index_title=Change User Details
/usr/libexec/usermin/chfn/lang/en.UTF-8:1:index_title=Change User Details
/usr/libexec/usermin/chfn/lang/hu.UTF-8:1:index_title=Change User Details
/usr/libexec/usermin/chfn/module.info:6:desc=Change User Details

the relative files for other langs are already translated but the buttons on the left remain in english...what changes is the page content, not the button text...

iliajie commented 7 years ago

What language do you have set exactly?

7starsone commented 7 years ago

eg. italian

[root@me ~]# grep -rnw '/usr/libexec/' -e 'modifica dettagli utente'
/usr/libexec/usermin/chfn/lang/it:1:index_title=modifica dettagli utente
/usr/libexec/usermin/chfn/lang/it.UTF-8:1:index_title=modifica dettagli utente
[root@me ~]# grep -rnw '/usr/libexec/' -e 'Modifica Dettagli Utente'
/usr/libexec/usermin/chfn/module.info:12:desc_it=Modifica Dettagli Utente
/usr/libexec/usermin/chfn/module.info:30:desc_it.UTF-8=Modifica Dettagli Utente

as you can see, all the 3 files are translated

/usr/libexec/usermin/chfn/lang/it
/usr/libexec/usermin/chfn/lang/it.UTF-8
/usr/libexec/usermin/chfn/module.info

even restarted usermin, webmin... no change on the buttons on the left menu

iliajie commented 7 years ago

Probably cache issue? Restart Webmin&Usermin.

7starsone commented 7 years ago

all restarted, even cleared cookies on the browser

no change

7starsone commented 7 years ago

another bug

/usr/libexec/usermin/mailbox/ulang/en:3:mail_none=There are no messages in folder $1

/usr/libexec/usermin/mailbox/ulang/it:3:mail_none=Non ci sono messaggi nella cartella $1

so, already translated, but that message remain There are no messages in folder even if user lang is italian.

7starsone commented 7 years ago

this is caused by non existing UTF8 files in /usr/libexec/usermin/mailbox/ulang

my user is using UTF8 lang so, after years...still UTF8 issues here, unfortunately... but for the previous issue I don't know...

7starsone commented 7 years ago

Are you storing user cache files somewhere and you don't delete them? Remember that one time we discussed about this...

7starsone commented 7 years ago

So, there's a problem:

at the moment, you're forced to change language. (Your language → Another language → Your language again) If you don't do so...the changes are not applied.

So, it's not an expected behavior. My user can't be forced to apply another language and then reapply its own language... 😃 please, test it and you can reproduce it for sure.

iliajie commented 7 years ago

If you're on Ubuntu, it's possible. It must be reported to Webmin/Usermin repo.

I don't do it. It's WebminCore.

7starsone commented 7 years ago

Some files are not readable/editable (question mark ?) notedit

and also, do these need an UTF-8 version? Like uconfig.info.de.UTF-8 ?

iliajie commented 7 years ago

It means they are not recognized as text.

At the moment yes, in case you're language set to Unicode.

7starsone commented 7 years ago

this Your language → Another language → Your language again was just a sensation...

doesn't work anymore, I can't understand what's the issue...for the links on the left menu

I wrote here https://www.virtualmin.com/node/52237 hope that Jamie can read...

trash Trash in this case...

[root@me ~]# grep -rnw '/usr/libexec/' -e 'folder_trash'
/usr/libexec/usermin/mailbox/mailbox-lib.pl:421:                        $trash->{'name'} = $text{'folder_trash'};
/usr/libexec/usermin/mailbox/mailbox-lib.pl:541:        push(@rv, { 'name' => $text{'folder_trash'},
/usr/libexec/usermin/mailbox/lang/it:88:folder_trash=Cestino
/usr/libexec/usermin/mailbox/lang/fr:97:folder_trash=Corbeille
/usr/libexec/usermin/mailbox/lang/cz.UTF-8:87:folder_trash=Koš
/usr/libexec/usermin/mailbox/lang/no:88:folder_trash=Papirkurv
/usr/libexec/usermin/mailbox/lang/cz:87:folder_trash=Ko�
/usr/libexec/usermin/mailbox/lang/nl.UTF-8:88:folder_trash=Vuilnis
/usr/libexec/usermin/mailbox/lang/fi:75:folder_trash=Roskakori
/usr/libexec/usermin/mailbox/lang/de:88:folder_trash=Papierkorb
/usr/libexec/usermin/mailbox/lang/it.UTF-8:88:folder_trash=Cestino
/usr/libexec/usermin/mailbox/lang/nl:88:folder_trash=Vuilnis
/usr/libexec/usermin/mailbox/lang/el:274:folder_trash=����������
/usr/libexec/usermin/mailbox/lang/ja_JP.euc:301:folder_trash=Trash
/usr/libexec/usermin/mailbox/lang/fi.UTF-8:75:folder_trash=Roskakori
/usr/libexec/usermin/mailbox/lang/ko_KR.UTF-8:87:folder_trash=휴지통
/usr/libexec/usermin/mailbox/lang/zh_TW.Big5:63:folder_trash=�U����
/usr/libexec/usermin/mailbox/lang/ca:325:folder_trash=Trash
/usr/libexec/usermin/mailbox/lang/ko_KR.euc:87:folder_trash=������
/usr/libexec/usermin/mailbox/lang/no.UTF-8:88:folder_trash=Papirkurv
/usr/libexec/usermin/mailbox/lang/ja_JP.UTF-8:301:folder_trash=Trash
/usr/libexec/usermin/mailbox/lang/en:325:folder_trash=Trash
/usr/libexec/usermin/mailbox/lang/tr:88:folder_trash=�op Kutusu
/usr/libexec/usermin/mailbox/lang/fr.UTF-8:97:folder_trash=Corbeille
/usr/libexec/usermin/mailbox/lang/hu:24:folder_trash=Kuka
/usr/libexec/usermin/mailbox/lang/zh_TW.UTF-8:63:folder_trash=垃圾桶
/usr/libexec/usermin/mailbox/lang/pt_BR.UTF-8:3:folder_trash=Lixo
/usr/libexec/usermin/mailbox/lang/ca.UTF-8:325:folder_trash=Trash
/usr/libexec/usermin/mailbox/lang/en.UTF-8:325:folder_trash=Trash
/usr/libexec/usermin/mailbox/lang/pt_BR:3:folder_trash=Lixo
/usr/libexec/usermin/mailbox/lang/de.UTF-8:88:folder_trash=Papierkorb
/usr/libexec/usermin/mailbox/lang/hu.UTF-8:24:folder_trash=Kuka
/usr/libexec/usermin/mailbox/ulang/it.UTF-8:36:folder_trash=Cestino
/usr/libexec/usermin/mailbox/ulang/en.old:101:folder_trash=Trash
...
...