User tests: Successful: Unsuccessful:
Pull Request for Issue #32561 comment #32561 (comment) .
Changed text in /administrator/language/en-GB/com_menus.ini
from "Home" to "Select a menu item"
Changes in com_menus.ini reverted, because that was wrong.
Changed the value of the fields to "Select menu" (existing string JOPTION_SELECT_MENU
).
As stated in the comment mentioned above the text "Home" in the redirect field can be misunderstood. The field is disabled, but it seems as the "Home" menu item is already selected as redirect page.
Added descriptions to the fields to explain the behaviour of login and logout redirect.
Create a login menu, set "Choose Login Redirect Type" to "Menu item".
Create a login modul.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings |
Does it even need a hint?
"Home" as placeholder is wrong, "Default" as placeholder (if we don't override JDEFAULT) is also not self explaining. So we need something better. Which way is better: override the value of JDEFAULT or use another language string?
@brianteeman the hints are very old and inherited fom J3. There the hint is "default", but has added a description what "default" means.
Imho "the same page" is not user profile when I am on the login page - but this is not in scope here. I also always was surprised in J3 installations when the profile appeared after login.
This PR makes it better for now and blocks nothing.
Further improvements can be
I have tested this item
Hmm. Change to Select Menu Item is not right to me because it indicates that we need to select a menu item for these parameters?
I see this PR as a temporary qick improvement until other changes are made.
@joomdonation
I agree with you and see here - in #32561 (#32561 (comment)) this is already required.
Maybe you could make the PR?
@chmst Better if @drmenzelit could update this PR if we agree with that (I'm not confident with my English :D )
@chmst Just because they are old doesn't mean they can't be improved or changed. If necessary even the description can be put back for this field. And as I am sure you know placeholder text/hints are terrible from an accessibility perspective.
However I just took a look at the actual code and "Home" is not a placeholder text or hint. It is the option which has a value of "".
Therefore the override for this language string has always been wrong and should never have said Home and the problem is in the XML not the language string.
Instead of
<option value="">JDEFAULT</option>
the xml should have been
<option value="">JOPTION_SELECT_MENU</option>
So the language string override should be removed from administrator/language/en-GB/com_menus.ini and the xml file fixed as above - problem solved without the confusion of incorrect text and without overriding an override.
It might still need a description and I see that a description is used for the other redirect method
I will try to improve this PR. Thank you @joomdonation and @brianteeman for the comments.
Labels |
Added:
?
?
|
Category | Administration Language & Strings | ⇒ | Administration Language & Strings Front End com_users Modules |
A new try ;-) I have edited the description of the PR to adapt to the changes made on my last commit.
@brianteeman I will appreciate your help with the new descriptions... you know, English is not my native language ;-)
I think Select menu
is the correct value for the fields, it shows that an action is needed if you want to change the standard behaviour. And the standard behaviour is explained in the description.
The texts are fine - my only question is about the language file
JOPTION_SELECT_MENU
was already defined in joomla.ini ...
JOPTION_SELECT_MENU
was already defined in joomla.ini ...
That one is correct as its global.
I am referring to JFIELD_LOGIN_REDIRECT_MENU_DESC
Sorry, I didn't read correctly... since the labels JFIELD_LOGIN_REDIRECT_URL_LABEL
and JFIELD_LOGOUT_REDIRECT_URL_LABEL
were also in joomla.ini, I thought it is better to put the description also there...
It makes no sense to introduce a new field into two language files and then only use one of them. That is just creating work for translators that doesn't need to be done.
Someone else may correct me but my recollection is that joomla.ini is for global strings and as this string is only for com_users it should live in the com_users.ini
There may have been mistakes in the past but that doesnt mean we should repeat them ;)
I have tested this item
I have tested this item
RTC
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-03-09 11:13:40 |
Closed_By | ⇒ | wilsonge | |
Labels |
Added:
?
|
Thanks!
Much better! But wouldn't it be better to use anoter language key?
JDEAULT is one of the common language keys as JYES, JNO, JCATEGORY which have the same translation over the whole system.
In all other language files JDEFAULT is translated wit "Default".