Bug #2883
"Language not found" error when requesting server-manager root URL
Status: | CLOSED | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 100% | |
Category: | nethserver-httpd-admin | |||
Target version: | v6.5 | |||
Security class: | Resolution: | |||
Affected version: | v6.5-final | NEEDINFO: | No |
Description
When accessing the server-manager on https://<hostname>:980
the UA is redirected to
https://<hostname>:980/<preferredlanguage>/Dashboard
Actually,
<preferredlanguage>
comes from HTTP client headers, and depends on user's settings. Only en
and it
languages are accepted. For other language codes the following error message is displayed:Nethgui: 404 - Language not found [1377519247
See language-not-found.jpg
Thanks to Petr Pešava for signalling this.
Associated revisions
Fixed default redirect to English language. Refs #2883
Allowed languages: en, it. If UA prefers other languages en is
selected by default.
Bump Nethgui 631d6037e12dea09385368407074d6067523c565. Refs #2883
History
#1 Updated by Davide Principi almost 7 years ago
- Description updated (diff)
#2 Updated by stephane de Labrusse almost 7 years ago
I have also this error in French, I suppose that translations are not done, can you point me the files to translate and/or pointers on how to do that ?
#3 Updated by Davide Principi almost 7 years ago
stephane de Labrusse wrote:
I have also this error in French, I suppose that translations are not done, can you point me the files to translate and/or pointers on how to do that ?
This is the starting point:
http://docs.nethserver.org/projects/nethserver-devel/en/latest/web_interface_translation.html
Adding a new language now requires some code adjustments: en
and it
strings are still hardcoded.
Moreover, I think the current language catalog format is too restrictive and I'd like to base the new Translator implementation on Symfony Translation component, which is more feature-rich and supports many catalogs format.
What do you think?
#4 Updated by Giacomo Sanchietti almost 7 years ago
Moreover, I think the current language catalog format is too restrictive and I'd like to base the new Translator implementation on Symfony Translation component, which is more feature-rich and supports many catalogs format.
I agree, we need to support virtually any language. So if Symfony module is the best fit, I'd like to got with it.
What do you think?
I would like also to ease the translation process, maybe using something like https://www.transifex.com/.
#5 Updated by stephane de Labrusse almost 7 years ago
Davide Principi wrote:
What do you think?
Hi All
To be honest I can't answer on technical points mainly because I do not know how it is handled currently in nethgui and also because it is a bit outside of my field of competences. But what I'm sure It is a mandatory to let for the translators a tool to translate web module, easily, with insurances of quality.
If you want that neth can be used by foreign people, the key is translation....I'm quite sure that you are agree.
I took a look to /usr/share/nethesis/NethServer/Language/ and I can see that a Spanish translation exists but it is not allowed in the login page of nethgui (only IT and EN). Do this translation is not finished ?
#6 Updated by Davide Principi almost 7 years ago
- Status changed from NEW to TRIAGED
- % Done changed from 0 to 20
#7 Updated by Davide Principi almost 7 years ago
- Status changed from TRIAGED to ON_DEV
- Assignee set to Davide Principi
- % Done changed from 20 to 30
#8 Updated by Davide Principi over 6 years ago
- Status changed from ON_DEV to MODIFIED
- Assignee deleted (
Davide Principi) - % Done changed from 30 to 60
Test case note
Change the UA language preferences:- set as first preference a language different from
en
,it
- Visit https://hostname:980
You must be redirected to https://hostname:980/en/Dashboard
.
#9 Updated by Davide Principi over 6 years ago
- Status changed from MODIFIED to ON_QA
- % Done changed from 60 to 70
In nethserver-testing:
nethserver-httpd-admin-1.3.3-1.5git0b74cd6.ns6.noarch.rpm
#10 Updated by Giacomo Sanchietti over 6 years ago
- Assignee set to Giacomo Sanchietti
#11 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from ON_QA to VERIFIED
- Assignee deleted (
Giacomo Sanchietti) - % Done changed from 70 to 90
- Italian
- English
- French, not existing, redirect to English
VERIFIED
#12 Updated by Giacomo Sanchietti over 6 years ago
- Status changed from VERIFIED to CLOSED
- % Done changed from 90 to 100
- nethserver-httpd-admin-1.3.4-1.ns6.noarch.rpm