Problem/Motivation
The informational texts displayed when viewing an empty list of items is inconsistent.
For example:
Path | Text when empty |
---|---|
/admin/content | No content available. |
/admin/content/block-content | There are no custom blocks available.Add a custom block.* |
/admin/content/comment | No comments available. |
/admin/content/files | No files available. |
/admin/structure/views | (no text at all) |
/admin/structure/block | No blocks in this region |
/admin/config/search/path | No URL aliases available. Add URL alias.* |
/admin/config/development/configuration | The staged configuration is identical to the active configuration. |
/admin/config/media/responsive-image-style | There is no Responsive image styles yet. |
/admin/structure/display-modes/form | (no text at all) |
/admin/structure/comment | There is no Comment types yet |
/admin/structure/types | No content types available. Add content type.* |
admin/config/media/image-styles | There are currently no styles. Add a new one.* |
* hyperlink to add a new entry.
Proposed resolution
Decide on a consistent form for such messages, whether to use the plural or singular case, start message with "There is/are..." or just "No..." and whether to end with a link to add new items or not.
Remaining tasks
Choose standardisation.
Identify all lists.
Implement standardisation for all lists.
User interface changes
Text changes only, unless it is decided to remove inline links to create new items, eg as for /admin/config/search/path.
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#36 | inconsistent_messages-2219749-5.patch | 9.25 KB | Abhishek_Singh |
#4 | inconsistent_messages-2219749-4.patch | 8.94 KB | joyceg |
Comments
Comment #1
Bojhan CreditAttribution: Bojhan commentedhttps://www.drupal.org/node/1146122
"There are no [things] available. Add [a thing]"
We already decided on a standard, it is plural and we always and with a link singular.
Comment #2
Bojhan CreditAttribution: Bojhan commentedComment #3
joyceg CreditAttribution: joyceg commentedComment #4
joyceg CreditAttribution: joyceg commentedAdding the patch here.
Comment #5
joyceg CreditAttribution: joyceg commentedComment #6
Eli-TThe word content can't be used like this. It would be more appropriate to say "There is no content available. Add new content."
All periods should be followed by a space.
There is no point adding the Add a new
strings without them being links.
Custom should not be capitalised.
That's confusing.
Comment #9
ifrikComment #10
danharper CreditAttribution: danharper as a volunteer and at Curve Agency commentedWorking on this one
Comment #11
danharper CreditAttribution: danharper as a volunteer and at Curve Agency commentedComment #12
danharper CreditAttribution: danharper as a volunteer and at Curve Agency commentedComment #13
danharper CreditAttribution: danharper as a volunteer and at Curve Agency commentedAfter looking through this I have a question regarding generating markup inside the t function, currently the markup is like this
Where I want
to be a link.
How should I use the t() function to include a link/markup?
Cheers Dan
Comment #14
Eli-TI've found the patch on #2513402: Any time a user creates a thing and saves, display a link to the thing created in the status. at https://www.drupal.org/files/issues/any_time_a_user_creates-2513402-36.p... has loads of examples of generating links in t().
Comment #15
danharper CreditAttribution: danharper as a volunteer and at Curve Agency commentedAdded another path to be checked.
Comment #16
danharper CreditAttribution: danharper as a volunteer and at Curve Agency commentedComment #17
danharper CreditAttribution: danharper as a volunteer and commentedComment #20
ifrikComment #21
ifrikComment #22
philipnorton42 CreditAttribution: philipnorton42 as a volunteer commentedComment #23
philipnorton42 CreditAttribution: philipnorton42 as a volunteer commentedComment #24
yoroy CreditAttribution: yoroy commentedLets see if we can work on this some more this friday :) https://groups.drupal.org/node/515590
Comment #35
quietone CreditAttribution: quietone at PreviousNext commentedThere is still inconsistencies in these messages. I have updated the IS for the strings in 10.1.x
The next step is to get agreement on the strings.
Comment #36
Abhishek_Singh CreditAttribution: Abhishek_Singh at OpenSense Labs commentedAdded another for the issue.