Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Updated: Comment #46
Problem/Motivation
Simplifying, removing unnecessary descriptions, tone of voice corrections (no 'Should' and 'Must' etc.) Changes are obvious in patch.
Proposed resolution
Review code for text descriptions. Ensure that all text is wrapped in t().
Remaining tasks
- Re-roll existing patch against current HEAD
- The reference to "latest items" should be corrected (in this issue).
- The links for supported formats (RSS, RDF, ATOM) in the description text point to fairly different sites. Wouldn't it be better to link to a single more "official" site like Wikipedia or w3.org?
- From issue <Remove 'news' language from aggregator remove news language where it will contradict functionality of plugin modules.
API changes
NA
User interface changes
See patch.
Original report by @yoroy
Simplefying, removing unnecessary descriptions, tone of voice corrections (no 'Should' and 'Must' etc.) Also, practising Git patching
Comment | File | Size | Author |
---|---|---|---|
#84 | interdiff-1209674-79-84.txt | 1.34 KB | AndyThornton |
#84 | drupal8.user-interface-text.1209674-84.patch | 6.51 KB | AndyThornton |
#79 | interdiff-1209674-76-79.txt | 1.13 KB | amitgoyal |
#79 | drupal8.user-interface-text.1209674-79.patch | 6.54 KB | amitgoyal |
#18 | aggregator1.png | 51.44 KB | kid_icarus |
Comments
Comment #2
franzWhy did you remove some descriptions?
Need to alter .test files where these sentences are being used on assertions (see failed tests)
Comment #3
yoroy CreditAttribution: yoroy commentedThanks for checking. Yep, this needs work to not break tests. I removed some descriptions because those provided no extra or redundant information: what do you need to explain extra about a name for example?
Comment #4
yoroy CreditAttribution: yoroy commentedI'll see about this
Comment #5
franzThis needs to be re-rolled, regardless of the need to fix tests and such. yoroy, not sure if you're not working on this anymore, but if not, just unassign. This is great for novice.
Comment #6
kid_icarus CreditAttribution: kid_icarus commentedRerolled. Applies cleanly at commit bb3270d.
Comment #7
kid_icarus CreditAttribution: kid_icarus commentedComment #9
yoroy CreditAttribution: yoroy commentedOops, feel free to take this
Comment #10
franzThe failing tests are probably due to assertions on the UI text that was changed. Should be really easy to fix.
Comment #11
kid_icarus CreditAttribution: kid_icarus commentedI'll work on this tonight. I was uncertain of when to assign an issue to myself, are there any docs regarding the ettiquette of assigning an issue?
Comment #12
franz@kid_icarus, if it's unassigned, it's ok to assign it to you when you start working on it and unassign when you're no longer doing so, just so to prevent 2 or more pople doing the same work. Go on! =)
Comment #13
kid_icarus CreditAttribution: kid_icarus commentedI Modified aggregator.test assertions to account for the texual changes in the original patch. If the patch passes I think those texual changes could use some review.
@franz, thanks for the tips!
Comment #14
franzThe correct is WATCHDOG_NOTICE, as you can check in watchdog_severity_levels()
extra space.
How about "... only once on form submission" ?
1 days to next Drupal core point release.
Comment #15
franzThe WATCHDOG_NOTICE issue shows up twice in the patch, Dreditor didn't save the second comment on it.
Comment #16
yoroy CreditAttribution: yoroy commentedDo we even have to mention that 'on form submission' bit?
Comment #17
franzI've been told that screenshots will help contextualize those UI text changes.
Comment #18
kid_icarus CreditAttribution: kid_icarus commentedAddressed #14. Attached are some screenshots as requested in #17 :)
Comment #19
kid_icarus CreditAttribution: kid_icarus commentedComment #20
kid_icarus CreditAttribution: kid_icarus commentedWhoops, forgot that second instance of LOG_NOTICE. Patched.
Comment #21
rwinikates CreditAttribution: rwinikates commentedPatch reviewed, looks good.
Comment #22
catch#20: aggregator-uitext-20.patch queued for re-testing.
Comment #24
kid_icarus CreditAttribution: kid_icarus commentedRe-rolled to account for #1585944: Convert aggregator tests to PSR-0
Applies cleanly at 9532b4b
Comment #25
xjm#24: aggregator-uitext-24.patch queued for re-testing.
Comment #26
pasive CreditAttribution: pasive commented#24: aggregator-uitext-24.patch queued for re-testing.
Comment #28
pasive CreditAttribution: pasive commentedPatch rerolled against latest head.
Comment #30
franzRe-rolled. Tests were changed and t('') was dropped on messages, so I updated the patch to reflect this as well.
Comment #31
Simon Georges CreditAttribution: Simon Georges commentedCross-referencing #398578: Remove 'news' language from aggregator.
Comment #32
Simon Georges CreditAttribution: Simon Georges commentedCross-referencing #1906692: String cleanup: make strings consistent in DefaultFetcher::fetch.
Comment #33
franz#30: aggregator-uitext.patch queued for re-testing.
Comment #35
Barnettech CreditAttribution: Barnettech commentedAttached is a reroll of the patch in comment #18. It also is work done within http://core.drupalofficehours.org/node/1563/edit
It applied cleanly, drupal didn't blow up, and it needs someone who knows the aggregator module well to test it for functionality.
I'm new to contributing to core so please be gentle :)
Comment #37
Barnettech CreditAttribution: Barnettech commentedSo I looked at the simpletest that failed, and someone simply changed the help text, so the assertText fails.
The test is looking for "A single OPML document may contain a collection of many feeds.', 'Found OPML help text"
But now someone has changed the help text to be: "A single OPML document may contain a collection of many feeds"
Here is the simpletest that fails for your convenience: http://api.drupal.org/api/drupal/core%21modules%21aggregator%21lib%21Dru...
So, at this point I think my reroll of the patch #18 was fine but whomever wrote patch #18 changed the help text such that this simpletest failed. Should the simpletest change or should I just change the text and submit a new patch. Perhaps the text was changed for good reason?
Yes says in http://drupal.org/node/1209674#comment-5785106 above that tests are failing just because of assertText and the authors of the patch think their text changes were for good reason. I'm not sure what the procedure is here .... should I continue in this same ticket and change the assertText in the simpletest so this patch above will pass?
Comment #38
disasm CreditAttribution: disasm commentedFirst of all, thanks barnettech for rerolling this. I'm sure it was quite the task! A couple of issues though
1) The patch brings back a bunch of functions that are no longer in core. In general, a good sanity check when rerolling patches is to compare the diff to the one you rerolled. In this case, being a text clean-up, if you see any changes other than UI text in your patch, you should probably start over.
2) Always reroll the latest patch unless otherwise stated in a comment in the issue, or on the COH site. In this case, I went with the patch in comment #30.
Again thanks! Please don't let my reroll here discourage you, just trying to move the issue along!
If mine has the same test failures yours did, I highly encourage you to fix the assert text in those tests so we can ge this committed!
Comment #40
disasm CreditAttribution: disasm commented#38: drupal-aggregrator_module_ui_cleanup-1209674-38.patch queued for re-testing.
Comment #41
disasm CreditAttribution: disasm commentedCould not replicate any of these locally running the failed tests individually. Sending back to testbot to see if it was just a fluke.
Comment #42
Barnettech CreditAttribution: Barnettech commentedI was told by kbasarab to reroll the patch in #18. My reroll only failed in simpletests for text changes as I said. I'm surprised if there are functions that are no longer in core that the simpletests didn't pick up any other problems.
Comment #43
Barnettech CreditAttribution: Barnettech commentedxjm explained that some of the functions may have been older and deprecated but still work, but deferred to you that #30 should have been rerolled. I'm not sure why kbasarab said to reroll #18, I only ask because I hope we are correct in re-rolling #30 now.
Comment #44
wesleydv CreditAttribution: wesleydv commentedRerolling patch #38 against current head
Comment #45
ericmulder1980 CreditAttribution: ericmulder1980 commentedI checked the patch it looks good compared to the existing code in the module. I do however have some additional comments that i would like your opinion on.
Things that are wrong
Things that could be done differently
Please let me know if you agree with the things mentioned above and i will gladly provide another patch.
Comment #46
Sutharsan CreditAttribution: Sutharsan commentedRegarding Things that are wrong:
Regarding Things that could be done differently:
Comment #47
apratt CreditAttribution: apratt commented44: drupal8.user-interface-text.1209674-44.patch queued for re-testing.
Checking against current HEAD.
Comment #50
apratt CreditAttribution: apratt commentedWorking on rerolling patch against current head.
Comment #51
apratt CreditAttribution: apratt commentedRerolled patch to include changes from HEAD and better links to wikipedia.
Comment #53
apratt CreditAttribution: apratt commentedRerolled patch to reflect recent changes in aggregator module.
Comment #54
apratt CreditAttribution: apratt commentedComment #55
theMusician CreditAttribution: theMusician commentedThis looks great apratt. I was able to apply this to a fresh install of D8 and see the changes outlined in the patch on the aggregator screens.
The language is indeed more approachable by removing the should and must wording. I like the proposed links pointing towards Wikipedia as well.
+1 for RTBC
Comment #56
apratt CreditAttribution: apratt commented53: drupal8.user-interface-text.1209674-53.patch queued for re-testing.
Comment #57
batigolixThe patch undoes some of the improvements from #1977608: Update hook_help Aggregator module.
How about:
Comment #58
apratt CreditAttribution: apratt commentedGood catch I'll reroll the patch and retest it.
Angus
Comment #59
apratt CreditAttribution: apratt commentedMade the suggested changes to patch.
Comment #60
apratt CreditAttribution: apratt commentedBad edit - this time I have the patch working before I upload it. That's what I get for doing it at 1:00am.
Comment #62
apratt CreditAttribution: apratt commented60: drupal8.user-interface-text.1209674-60.patch queued for re-testing.
Comment #63
jhodgdonRegarding the changes to hook_help(), there are several problems -- it looks like maybe there was a blind reroll of this patch without looking at what changes had been made that conflicted:
a) There was a reason that the URLs were put into the translated help text in these lines:
The reason being that the RSS, RDF, and Atom links point specifically to English reference sites. A translator might want to provide a different URL that would work for their language.
b) I think the reason it says "include" in the current help is that other modules can add support for other formats.
c) You don't want to use @url for a link, but !url.
d) Why make this change?
e) This is also wrong -- the "acronym" tag is deprecated:
The other UI text changes look fine. Thanks!
Comment #64
theMusician CreditAttribution: theMusician commentedRegarding:
d) comments #45, #46, and #57 seemed to have come to the conclusion that it must be correctly configured or many things will not work, thus the change.
e) That is a good catch. The tag has been deprecated. I missed that in an earlier review.
Thanks
Comment #65
vegantriathleteThis patch does not apply to head any more. I will do a reroll first and then add the changes per comments in #1209674-63: Aggregator module UI text cleanup.
Comment #66
vegantriathleteWorking on this now.
Comment #67
vegantriathleteHere is the rerolled patch.
Comment #68
yoroy CreditAttribution: yoroy commentedGreat. And then set status to "needs review" so that we trigger testbot :)
Comment #69
vegantriathleteI have tested the reroll in simplytest.me.
The "new feeds may be added" link is not correct. It is pointing to
admin/config/services/aggregator/add/feed
and appears that it should be pointing toaggregator/sources/add
. I will change the patch to point to the new path\Drupal::url('aggregator.feed_add')
.I'm not clear on the discussion about the "latest items" issue. Currently there is no link on that text, but there is a link to "go to the block administration page", which does link correctly to
admin/structure/block
, although it uses the incorrect syntax for the URL; I will fix the syntax. So, I don't know if this fixes the problem or not.I will correct @jhogdon's a, c, and e points.
I don't know what to do about b (use of the word "include" for what formats aggregator supports). I think there would need to be more discussion about how to do the rewording. Therefore, I'm leaving that change as is (was) in the patch.
I am also leaving the change that @jhodgon referred to in point d as is (was) in the patch.
Comment #70
vegantriathletePlease don't change things on this issue. I am the middle of working on it. First I completed the reroll and now I'm completing the interdiff.
Comment #71
vegantriathleteHere is the new patch and the interdiff. Don't set it to "Need review" yet. I want to check it on simplytest.me first.
Comment #72
vegantriathleteD'oh! There is one typo in "widipedia". Let me fix that now.
Comment #73
vegantriathleteHere is the latest patch and interdiff. Let me check it quickly again in simplytest.me.
Comment #74
vegantriathleteOkay, looks good in simplytest.me. Time for the testbot to have a look!
Comment #75
jhodgdonHm... Looking at the test:
This test seems to be saying that the error message is being shown either if neither a file nor a URL is entered, or if both are entered. Maybe the error message should say "... , but not both"?
It looks like the previous message emphasized the "either", and this was lost when the patch was made?
Comment #76
amitgoyal CreditAttribution: amitgoyal commentedPlease review updated patch with fixes in #75.
Comment #78
jhodgdonUm... It looks like you updated the message that the module produces one way, and the tests in two different ways, so the tests are failing.
Comment #79
amitgoyal CreditAttribution: amitgoyal commentedI believe the text in test cases should match with the text in module file (core/modules/aggregator/src/Form/OpmlFeedAdd.php).
Comment #80
jhodgdonThat's right! If you change the UI text, the tests that check for that UI test need to be changed in the same way. :)
Anyway, this looks good to me. Any other opinions?
Comment #81
apratt CreditAttribution: apratt commentedThanks for bringing this to fruition. It looks good to me.
Comment #82
yoroy CreditAttribution: yoroy commentedAren't there two closing
</dl>
tags in line 37 & 38?Comment #83
jhodgdonGood catch yoroy!
Comment #84
AndyThornton CreditAttribution: AndyThornton commentedRemoved the extra
Comment #85
jhodgdonThanks!
Comment #87
jhodgdonRandom unrelated test failure there.
Comment #88
jhodgdon84: drupal8.user-interface-text.1209674-84.patch queued for re-testing.
Comment #89
yoroy CreditAttribution: yoroy commentedThank you for seeing this through.
Comment #90
jhodgdonThanks everyone again! Committed to 8.x.