User tests: Successful: Unsuccessful:
Pull Request for Issue #38659 .
Changed the + symbol to "then" in System Panel
Added "then" between the keys in the xml text and made it easier to understand the shortcuts
Before:
J + X Keyboard Shortcuts
J then A Save
J then S Save & Close
J then Q Cancel
J then N New
J then F Search
J then O Options
J then H Help
J then M Toggle
J then X Overview
J then D Home
After:
J then X Keyboard Shortcuts
Enables keyboard shortcuts on the administrator site, which can be provided by other plugins and includes directly the following list of shortcuts:
J then A Apply
J then S Save & Close
J then Q Cancel (Quit)
J then N New
J then F Search (Find)
J then O Options
J then H Help
J then M Toggle Menu
J then X Overview / Extras
J then D Home Dashboard
Go to System and see that the text on the system Panel changed from:
to
Go to System Plugin Shortcuts and see the description changed from:
Same should be visible in the modal window when you press J then X
Status | New | ⇒ | Pending |
Category | ⇒ | Administration Language & Strings |
Labels |
Added:
Language Change
?
|
Dashboard and plugin description works, but In modal without
then
.
Yes thats what I wrote :-)
Okay, I thought you will change both :)
I don't know which file to use to change it, no idea why it's not the same as the plugin description :-(
Maybe you can make the "then" in smaller font on the Dashboard?
You changed "Save" to "Apply". It is true that the a button stands for apply, but we have in all toolbars the button SAVE, not Apply.
no idea why it's not the same as the plugin description
it is dinamicaly generated here
joomla-cms/build/media_source/plg_system_shortcut/js/shortcut.es6.js
Lines 103 to 114 in febdab6
Maybe you can make the "then" in smaller font on the Dashboard?
You changed "Save" to "Apply". It is true that the a button stands for apply, but we have in all toolbars the button SAVE, not Apply.
Thank you I changed it. Better now?
Yeah, well, not trivial, require new string for Joomla.Text._('then')
:)
no idea why it's not the same as the plugin description
it is dinamicaly generated here
joomla-cms/build/media_source/plg_system_shortcut/js/shortcut.es6.js
Lines 103 to 114 in febdab6
I Found that file but where has this file the "title" from? Because I want to change them too.
Yeah, well, not trivial, require new string for
Joomla.Text._('then')
:)
why doesn't it take the existing language override?
It comes from plugin
joomla-cms/plugins/system/shortcut/src/Extension/Shortcut.php
Lines 119 to 139 in f520c98
why doesn't it take the existing language override?
The modal shows User defined combination, and so the modal content is dinamicaly generated.
The modal shows User defined combination,
I mean combination that may come from other extennsion with addShortcuts
event,
This will do the thing
dl += ` ${Joomla.Text._('JTHEN')} <kbd>${key.trim()}</kbd>`;
Or full:
let dl = '<dl>';
dlItems.forEach((titles, shortcut) => {
dl += '<dt><kbd>J</kbd>';
shortcut.split('+').forEach(key => {
dl += ` ${Joomla.Text._('JTHEN')} <kbd>${key.trim()}</kbd>`;
});
dl += '</dt>';
titles.forEach(title => {
dl += `<dd>${title}</dd>`;
});
});
dl += '</dl>';
Maybe constant JTHEN
is not very good, then can be something PLG_SYSTEM_SHORTCUT_THEN
:)
Not sure here.
But probably, it is fine as you already made, it is less confusing on dashboard now.
Yes but this would not change the titles as in my xml change
<b>
it should not be used for styling text https://developer.mozilla.org/en-US/docs/Web/HTML/Element/bWhat does X stand for ? @brianteeman
it doesnt stand for anything
it doesnt stand for anything
Let's write the meaning of the shortcuts into brackets so people will remember easier and understand ...
@coolcat-creations not on your side, the existing js code has them. It just need adding the sanitizer in the insertAdjusentHTML call. Again, it’s not about the changes in this pr but the code that was released with 4.2.0
Edit I have further complains about that js but this pr is not the place to express them…
@dgrammatiko maybe it should be reported rather to the JSST ? :-)
@coolcat-creations I think @brianteeman is right, better remove <b>
on first letter,
There not always will be a case when first letter will refer to "shortcut", especialy for non Eglish translations.
should I mention XSS
XSS, what is it, kind of new CSS?
Category | Administration Language & Strings | ⇒ | Administration Language & Strings JavaScript Repository NPM Change |
Ok, I applied the requested changes and added also a language string. I cant test the build (es6 file change) myself because I can't get composer and npm running.
Add new js string around here:
joomla-cms/plugins/system/shortcut/src/Extension/Shortcut.php
Lines 94 to 97 in f520c98
Text::script('PLG_SYSTEM_SHORTCUT_THEN');
About XSS, I will do separated PR, later, after this one will be merged.
Labels |
Added:
NPM Resource Changed
|
Added :-)
Category | Administration Language & Strings JavaScript Repository NPM Change | ⇒ | Administration Language & Strings JavaScript Repository NPM Change Front End Plugins |
Added :-)
Works now :)
was it intentional to split each to a new line?
No, not at all - but how to prevent it? I only changed the + to "then" ?
was it intentional to split each to a new line?
As this PR is about language change and not semantic, maybe we could merge it first and then move to semantics and the xss and css stuff? One step at the time would increase the speed of improvements :) that would be great!
Is there a future for this PR to be merged if tested or it it obligated to change semantics and css? If semantics and css need to be changed maybe someone else can take over and I close this one.
I have tested this item
The aim of this PR was to improve the text, and it is done, so I count it as great success ;)
The styling can be fixed separately, by people who better in it.
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-10-23 11:05:11 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
?
|
thanks
Dashboard and plugin description works, but In modal without
then
.