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

Usermin: why in english only? #779

Closed
7starsone opened this issue May 17, 2017 · 27 comments
Closed

Usermin: why in english only? #779

7starsone opened this issue May 17, 2017 · 27 comments

Comments

@7starsone
Copy link

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
Copy link
Collaborator

iliajie commented May 17, 2017

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.

@iliajie iliajie closed this as completed May 17, 2017
@7starsone
Copy link
Author

eg. https://domain.com:20000

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

so... ?

@7starsone
Copy link
Author

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
Copy link
Collaborator

iliajie commented May 17, 2017

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
Copy link
Author

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
Copy link
Collaborator

iliajie commented May 17, 2017

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
Copy link
Author

7starsone commented May 17, 2017

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
Copy link
Collaborator

iliajie commented May 17, 2017

Ok. I will report it to Jamie myself.

@7starsone
Copy link
Author

7starsone commented May 17, 2017

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

@iliajie
Copy link
Collaborator

iliajie commented May 17, 2017

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
Copy link
Author

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
Copy link
Author

7starsone commented May 17, 2017

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
Copy link
Collaborator

iliajie commented May 17, 2017

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

@iliajie
Copy link
Collaborator

iliajie commented May 17, 2017

File Manager can do it. 😉

@7starsone
Copy link
Author

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
Copy link
Collaborator

iliajie commented May 17, 2017

What language do you have set exactly?

@7starsone
Copy link
Author

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
Copy link
Collaborator

iliajie commented May 17, 2017

Probably cache issue? Restart Webmin&Usermin.

@7starsone
Copy link
Author

all restarted, even cleared cookies on the browser

no change

@7starsone
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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

@7starsone
Copy link
Author

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
Copy link
Collaborator

iliajie commented May 17, 2017

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
Copy link
Author

7starsone commented May 17, 2017

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
Copy link
Collaborator

iliajie commented May 17, 2017

It means they are not recognized as text.

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

@7starsone
Copy link
Author

7starsone commented May 17, 2017

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
...
...

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

No branches or pull requests

2 participants