Enhancement #2887
Localize "password expire" notifications
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-directory | |||
Target version: | v6.6 | |||
Resolution: | NEEDINFO: | No |
Description
I have configured my nethserver wih italian language but notifications like "password expire" are in english
[root@nethserver1 ~]# cat /etc/sysconfig/i18n
LANG="it_IT.UTF-8"
SYSFONT="latarcyrheb-sun16"
These type of notifications are for end-user so I find it useful to be translated
Related issues
Associated revisions
New sysconfig/DefaultLanguage prop. Refs #2887
This prop defines a safe default for Server Manager and notifications
language.
Use gettext() for password-expired template l10n. Refs #2887
Moved "password-expired/en" template to "password-expired". Refs #2887
Add nethserver-directory catalog. Refs #2887
History
#1 Updated by Alessio Fattorini almost 7 years ago
- Subject changed from Ability to configure/change the default system language for notification to Support non-english language for "password expire" notification
- Description updated (diff)
#2 Updated by Davide Principi over 6 years ago
- Target version set to ~FUTURE
#3 Updated by Filippo Carletti over 6 years ago
- Target version changed from ~FUTURE to v6.6
#4 Updated by Giacomo Sanchietti over 6 years ago
- Related to Feature #3125: Password policy page added
#5 Updated by Davide Principi over 6 years ago
- Related to Feature #3115: Language packs support added
#6 Updated by Davide Principi over 6 years ago
As #3115 is rolling out, this issue should become an ordinary translation workflow (which has not been defined clearly yet).
I think non-English support does not deserve a dedicated issue in general: it's a cyclic ativity, we should work to define. A raw list of tasks could be
- push of source language catalogs to Transifex (when the source package is VERIFIED)
- translators translate
- pull of translated strings
- new release of language packs
Close this REJECTED?
Edit:
the nethserver-directory
package must be modified to localize mail notifications
#7 Updated by Davide Principi over 6 years ago
- Subject changed from Support non-english language for "password expire" notification to Localize "password expire" notifications
- Category set to nethserver-password
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
We could add a selector to nethserver-password
to choose the notification language.
Also the notification template should support the gettext
catalogs.
I'd move all the password-related code to nethserver-password, if possible.
#8 Updated by Davide Principi about 6 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Davide Principi
- % Done changed from 20 to 30
#9 Updated by Davide Principi about 6 years ago
- Category changed from nethserver-password to nethserver-directory
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
- NEEDINFO changed from No to Yes
MODIFIED
- Added
sysconfig/DefaultLanguage
prop in nethserver-base - Use
gettext()
forpassword-expire
template localization
If the sysconfig/DefaultLanguage
prop is more abstract than "Password policy" where do we want show it?
Test case
- Update nethserver-base and nethserver-directory to modified versions
- Create
first.user
account and configure mail for it. - Save the attached nethserver-directory.mo catalog into
/usr/share/locale/it/LC_MESSAGES
- Set prop
config setprop sysconfig DefaultLanguage it_IT.utf8
- Check the mail is localised and delivered to
first.user
:/etc/e-smith/events/actions/nethserver-directory-mail-password-expired ev first.user $(( `date +%s` + 180000))
#10 Updated by Davide Principi about 6 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
- NEEDINFO changed from Yes to No
In nethserver-testing:
nethserver-base-2.7.0-1.6.gdb41d68.ns6.noarch.rpm
nethserver-directory-2.2.1-1.4.gea95910.ns6.noarch.rpm
Packager note
Enable translations on Transifex when issue is closed.
https://www.transifex.com/projects/p/nethserver/resource/nethserver-directorypot/
#11 Updated by Davide Principi about 6 years ago
- File nethserver-directory.mo added
#12 Updated by Giacomo Sanchietti about 6 years ago
- Assignee set to Giacomo Sanchietti
#13 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
#14 Updated by Giacomo Sanchietti about 6 years ago
Release with new language packs.
Updated admin manual: http://docs.nethserver.org/en/latest/accounts.html#notification-language
#15 Updated by Giacomo Sanchietti about 6 years ago
- nethserver-base-2.7.1-1.ns6.noarch.rpm
- nethserver-directory-2.2.2-1.ns6.noarch.rpm
#16 Updated by Giacomo Sanchietti about 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100