Splattered throughout core are redundant uses of the word "new" with "add" and "create" text strings.
Not only do the redundancies exist, but the text is not consistent on it use. For example, consider the default home page immediately after installation. The bulleted item in the content reads, "Add new content" while the navigation menu item reads, "Add content."
If we are in a string freeze, then this will most likely not get implemented in 7.x, which is unfortunate.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 1008280-redundant-new-2.patch | 123.11 KB | njbarrett |
| #1 | 1008280-redundant-new.patch | 136.34 KB | solotandem |
Comments
Comment #1
solotandem commentedThe attached patch removes the word "new" in these instances. When the text string contained the article "a" before "new," the replacement checks the subsequent word for a lead vowel or "h" and replaces "a" with "an."
Comment #2
yoroy commentedComment #3
Crisz commentedComment #4
alansaviolobo commentedComment #5
njbarrett commentedI have had a go at rerolling this patch, but the core has changed significantly since the original patch so in a sense this is an entirely new patch for the same issue.
If someone can check and verify if there are any strings I have missed, that would be good.
Comment #6
joachim commentedI feel this patch is rather over-ambitious... it might be better to just do UI strings, and leave comments and text in READMEs for now.
Also the removal of 'new' is not always warranted, and sometimes makes the text less readable:
'remove the existing %file file, and create one by copying'
As a native English speaker, the sentence's readability is definitely helped by 'new' being there.
We can't change permissions strings without an update function, and probably a bad idea at this stage of development.
Comment #7
njbarrett commented@joachim thanks I do agree. (I mainly did this patch as part of a code sprint intro to drupal contributing).
I think we just need to concentrate on consistency across the UI strings, perhaps I will review it again and only target very specific strings.
Comment #21
smustgrave commentedThank you for creating this issue to improve Drupal.
We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #22
solotandem commentedA simple grep of the code base confirms the redundant strings exist in comments, tests, and user interface elements.