Usermin: issues with user lang

Hello, please take a look at this discussion with Ilia on github

https://github.com/qooob/authentic-theme/issues/779

thank you

Status: 
Closed (fixed)

Comments

I'm a bit confused by that thread ... what was the underlying issue?

Hello Jamie... the left menu links

trouble to translate ...please clarify

is there a cache or something like that on Usermin? is the translation system working as expected? thanks

Ilia's picture
Submitted by Ilia on Thu, 05/18/2017 - 02:54

Jamie, 7stars means that after he edited lang files, some strange cache issues don't let things apply unless: (as commented by 7stars on GitHub)

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

I think that was just a placebo...in reality I can't understand why changes are not applied.

Eg. the "Trash" link on the left menu by Mail (mailbox) usermin module.

There is some caching of translation files in RAM - you may need to run /etc/usermin/restart to refresh it.

I have just start and stop in that folder here on CentOS 7... why? I guess is the same of service usermin restart ?

anyway, also did cleared browser cookies

/etc/usermin/stop
/etc/usermin/start

and the text "Trash" remains Trash lol no way...

something else? thank you

Wait, is "Trash" the actual name of the folder? Because if so, Usermin won't translate it.

what do you mean with "the actual name of the folder" ? And why shouldn't Usermin translate it? It's just a translation...if it doens't translate, it's wrong, anyway...

I mean, the name of the mail sub-directory under the user's ~/Maildir directory.

That said, as long as it's real directory name is "trash" or similar, it should be possible to translate it using the folder_trash language key in the mailbox Usermin module.

indeed, folder_trash in the mailbox Usermin module, that's already translated...and this is the issue

please, can you test it instead of just write about it? sorry for that... here is not translated at all

eg. by grep -r "folder_trash" /usr/libexec/

...
/usr/libexec/usermin/mailbox/lang/it:folder_trash=Cestino
/usr/libexec/usermin/mailbox/lang/it.UTF-8:folder_trash=Cestino
...

as you can see, for italian lang that's translated for it and it.UTF-8 both...

despite this, the text remains as is, "Trash"

Ok, I see the cause of this now - there's a bug that can cause the trash folder to not be shown with the correct name if Usermin is configured to not move deleted mail to the trash. I'll fix it in the next release.

Status: Active » Fixed
Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.