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

CommentFileSizeAuthor
#84 interdiff-1209674-79-84.txt1.34 KBAndyThornton
#84 drupal8.user-interface-text.1209674-84.patch6.51 KBAndyThornton
#79 interdiff-1209674-76-79.txt1.13 KBamitgoyal
#79 drupal8.user-interface-text.1209674-79.patch6.54 KBamitgoyal
#76 interdiff-1209674-73-76.txt1.38 KBamitgoyal
#76 drupal8.user-interface-text.1209674-76.patch6.52 KBamitgoyal
#73 interdiff-2.txt1.5 KBvegantriathlete
#73 drupal8.user-interface-text.1209674-73.patch6.49 KBvegantriathlete
#71 interdiff.txt2.77 KBvegantriathlete
#71 drupal8.user-interface-text.1209674-71.patch6.49 KBvegantriathlete
#67 drupal8.user-interface-text.1209674-67.patch6.57 KBvegantriathlete
#60 drupal8.user-interface-text.1209674-60.patch6.73 KBapratt
#59 drupal8.user-interface-text.1209674-59.patch6.71 KBapratt
#53 drupal8.user-interface-text.1209674-53.patch6.7 KBapratt
#51 drupal8.user-interface-text.1209674-51.patch6.7 KBapratt
#44 drupal8.user-interface-text.1209674-44.patch7.03 KBwesleydv
#38 drupal-aggregrator_module_ui_cleanup-1209674-38.patch8.96 KBdisasm
#35 aggregator-uitext-18-reroll.patch16.58 KBBarnettech
#30 aggregator-uitext.patch13.36 KBfranz
#28 aggregator-uitext-25.patch13.79 KBpasive
#24 aggregator-uitext-24.patch13.43 KBkid_icarus
#24 interdiff.txt3.29 KBkid_icarus
#20 aggregator-uitext-20.patch13.33 KBkid_icarus
#20 interdiff.txt695 byteskid_icarus
#18 aggregator-uitext-18.patch13.87 KBkid_icarus
#18 interdiff.txt1.36 KBkid_icarus
#18 aggregator1.png51.44 KBkid_icarus
#18 aggregator2.png49.04 KBkid_icarus
#18 aggregator3.png35.2 KBkid_icarus
#18 aggregator4.png39.22 KBkid_icarus
#18 aggregator5.png49.73 KBkid_icarus
#18 aggregator6.png39.02 KBkid_icarus
#13 aggregator-uitext-13.patch14.45 KBkid_icarus
#13 interdiff.txt1.71 KBkid_icarus
#6 aggregator-uitext-6.patch12.65 KBkid_icarus
aggregator-uitext.patch12.8 KByoroy
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, aggregator-uitext.patch, failed testing.

franz’s picture

Why did you remove some descriptions?

Need to alter .test files where these sentences are being used on assertions (see failed tests)

yoroy’s picture

Thanks 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?

yoroy’s picture

Assigned: Unassigned » yoroy

I'll see about this

franz’s picture

Issue tags: +Novice

This 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.

kid_icarus’s picture

FileSize
12.65 KB

Rerolled. Applies cleanly at commit bb3270d.

kid_icarus’s picture

Status: Needs work » Needs review

Status: Needs review » Needs work

The last submitted patch, aggregator-uitext-6.patch, failed testing.

yoroy’s picture

Assigned: yoroy » Unassigned

Oops, feel free to take this

franz’s picture

The failing tests are probably due to assertions on the UI text that was changed. Should be really easy to fix.

kid_icarus’s picture

Assigned: Unassigned » kid_icarus

I'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?

franz’s picture

@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! =)

kid_icarus’s picture

Status: Needs work » Needs review
FileSize
1.71 KB
14.45 KB

I 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!

franz’s picture

Status: Needs review » Needs work
+++ b/core/modules/aggregator/aggregator.admin.inc
@@ -200,7 +198,7 @@ function aggregator_form_feed_submit($form, &$form_state) {
+    watchdog('aggregator', 'Feed %feed added.', array('%feed' => $form_state['values']['title']), LOG_NOTICE, l(t('view'), 'admin/config/services/aggregator'));

The correct is WATCHDOG_NOTICE, as you can check in watchdog_severity_levels()

+++ b/core/modules/aggregator/aggregator.admin.inc
@@ -254,26 +252,26 @@ function aggregator_form_opml($form, &$form_state) {
+    '#description' => t('Upload an OPML file with a list of feeds to  import.'),

extra space.

+++ b/core/modules/aggregator/aggregator.admin.inc
@@ -254,26 +252,26 @@ function aggregator_form_opml($form, &$form_state) {
+    '#description' => t('This file will be downloaded and processed only once on submission of the form.'),

How about "... only once on form submission" ?

1 days to next Drupal core point release.

franz’s picture

The WATCHDOG_NOTICE issue shows up twice in the patch, Dreditor didn't save the second comment on it.

yoroy’s picture

Do we even have to mention that 'on form submission' bit?

franz’s picture

I've been told that screenshots will help contextualize those UI text changes.

kid_icarus’s picture

Addressed #14. Attached are some screenshots as requested in #17 :)

kid_icarus’s picture

Status: Needs work » Needs review
kid_icarus’s picture

FileSize
695 bytes
13.33 KB

Whoops, forgot that second instance of LOG_NOTICE. Patched.

rwinikates’s picture

Status: Needs review » Reviewed & tested by the community

Patch reviewed, looks good.

catch’s picture

Issue tags: -Novice

#20: aggregator-uitext-20.patch queued for re-testing.

Status: Reviewed & tested by the community » Needs work
Issue tags: +Novice

The last submitted patch, aggregator-uitext-20.patch, failed testing.

kid_icarus’s picture

Status: Needs work » Needs review
FileSize
3.29 KB
13.43 KB

Re-rolled to account for #1585944: Convert aggregator tests to PSR-0

Applies cleanly at 9532b4b

xjm’s picture

Issue tags: -Novice

#24: aggregator-uitext-24.patch queued for re-testing.

pasive’s picture

#24: aggregator-uitext-24.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Novice

The last submitted patch, aggregator-uitext-24.patch, failed testing.

pasive’s picture

Assigned: kid_icarus » Unassigned
Status: Needs work » Needs review
FileSize
13.79 KB

Patch rerolled against latest head.

Status: Needs review » Needs work

The last submitted patch, aggregator-uitext-25.patch, failed testing.

franz’s picture

Status: Needs work » Needs review
FileSize
13.36 KB

Re-rolled. Tests were changed and t('') was dropped on messages, so I updated the patch to reflect this as well.

Simon Georges’s picture

Simon Georges’s picture

franz’s picture

Issue tags: -Novice

#30: aggregator-uitext.patch queued for re-testing.

Status: Needs review » Needs work
Issue tags: +Novice

The last submitted patch, aggregator-uitext.patch, failed testing.

Barnettech’s picture

Status: Needs work » Needs review
FileSize
16.58 KB

Attached 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 :)

Status: Needs review » Needs work

The last submitted patch, aggregator-uitext-18-reroll.patch, failed testing.

Barnettech’s picture

So 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?

disasm’s picture

Status: Needs work » Needs review
FileSize
8.96 KB

First 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!

Status: Needs review » Needs work
Issue tags: -Novice

The last submitted patch, drupal-aggregrator_module_ui_cleanup-1209674-38.patch, failed testing.

disasm’s picture

Status: Needs work » Needs review
Issue tags: +Novice
disasm’s picture

Could not replicate any of these locally running the failed tests individually. Sending back to testbot to see if it was just a fluke.

Barnettech’s picture

I 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.

Barnettech’s picture

xjm 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.

wesleydv’s picture

Rerolling patch #38 against current head

ericmulder1980’s picture

I 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

  1. There was no title in hook_menu() for the 'admin/config/services/aggregator' path. Perhaps hook_menu() will die in the next few months but currently this causes an UI issue.
  2. The description text points to a 'latest items' block which does not exist. The block name is either Aggregator feed or Aggregator category

Things that could be done differently

  1. 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?
  2. The text "Requires a correctly configured cron maintenance task" does not require the word correctly. It seems pretty obvious to me that it shouldn't be configured wrong.

Please let me know if you agree with the things mentioned above and i will gladly provide another patch.

Sutharsan’s picture

Status: Needs review » Needs work

Regarding Things that are wrong:

  • The Title for admin/config/services/aggregator is best corrected in a different issue. IMHO it is out of scope of this issue.
  • The reference to "latest items" should be corrected (in this issue).

Regarding Things that could be done differently:

  • Feel free to suggest/use different links for supported formats (RSS, RDF, ATOM) .
  • The text "Requires a correctly configured cron ..." text is in this issue replaced by "A working cron maintenance task ...". I think this fixes your point.
apratt’s picture

Status: Needs work » Needs review

44: drupal8.user-interface-text.1209674-44.patch queued for re-testing.

Checking against current HEAD.

Status: Needs review » Needs work

The last submitted patch, 44: drupal8.user-interface-text.1209674-44.patch, failed testing.

The last submitted patch, 44: drupal8.user-interface-text.1209674-44.patch, failed testing.

apratt’s picture

Issue summary: View changes

Working on rerolling patch against current head.

apratt’s picture

Status: Needs work » Needs review
FileSize
6.7 KB

Rerolled patch to include changes from HEAD and better links to wikipedia.

Status: Needs review » Needs work

The last submitted patch, 51: drupal8.user-interface-text.1209674-51.patch, failed testing.

apratt’s picture

Rerolled patch to reflect recent changes in aggregator module.

apratt’s picture

Status: Needs work » Needs review
theMusician’s picture

This 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

apratt’s picture

batigolix’s picture

Status: Needs review » Needs work

The patch undoes some of the improvements from #1977608: Update hook_help Aggregator module.

-      $output .= '<dd>' . t('A correctly configured <a href="!cron">cron maintenance task</a> is required to update feeds automatically.', array('!cron' => \Drupal::url('system.cron_settings'))) . '</dd>';
+      $output .= '<dd>' . t('A working <a href="@cron">cron maintenance task</a> is required to update feeds automatically.', array('@cron' => 'http://drupal.org/cron')) . '</dd>';

How about:

+      $output .= '<dd>' . t('A working <a href="!cron">cron maintenance task</a> is required to update feeds automatically.', array('!cron' => \Drupal::url('system.cron_settings'))) . '</dd>';
apratt’s picture

Good catch I'll reroll the patch and retest it.

Angus

apratt’s picture

Status: Needs work » Needs review
FileSize
6.71 KB

Made the suggested changes to patch.

apratt’s picture

Bad edit - this time I have the patch working before I upload it. That's what I get for doing it at 1:00am.

The last submitted patch, 59: drupal8.user-interface-text.1209674-59.patch, failed testing.

apratt’s picture

jhodgdon’s picture

Status: Needs review » Needs work

Regarding 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:

      $output = '<p>' . t('Thousands of sites (particularly news sites and blogs) publish their latest headlines and posts in feeds, using a number of standardized XML-based formats. Formats supported by the aggregator include <a href="http://cyber.law.harvard.edu/rss/">RSS</a>, <a href="http://www.w3.org/RDF/">RDF</a>, and <a href="http://www.atomenabled.org">Atom</a>.') . '</p>';
-      $output .= '<p>' . t('Current feeds are listed below, and <a href="!addfeed">new feeds may be added</a>. At the <a href="!block">blocks administration page</a> you can enable for each feed the block <em>Aggregator feed</a> that contains the <em>latest items</em> .', array('!addfeed' => \Drupal::url('aggregator.feed_add'), '!block' => \Drupal::url('block.admin_display'))) . '</p>';
+      $output = '<p>' . t('Many sites publish their headlines and posts in feeds, using a number of standardized XML-based formats. The aggregator supports <a href="@rss">RSS</a>, <a href="@rdf">RDF</a>, and <a href="@atom">Atom</a>.', array('@rss' => 'http://en.wikipedia.org/wiki/Rss', '@rdf' => 'http://en.wikipedia.org/wiki/Resource_Description_Framework', '@atom' => 'http://en.wikipedia.org/wiki/Atom_%28standard%29')) . '</p>';
+      $output .= '<p>' . t('Current feeds are listed below, and <a href="@addfeed">new feeds may be added</a>. For each feed, the <em>latest items</em> block may be enabled at the <a href="@block">blocks administration page</a>.', array('@addfeed' => url('admin/config/services/aggregator/add/feed'), '@block' => url('admin/structure/block'))) . '</p>';

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?

-      $output .= '<dd>' . t('A correctly configured <a href="!cron">cron maintenance task</a> is required to update feeds automatically.', array('!cron' => \Drupal::url('system.cron_settings'))) . '</dd>';
+      $output .= '<dd>' . t('A working <a href="!cron">cron maintenance task</a> is required to update feeds automatically.', array('!cron' => \Drupal::url('system.cron_settings'))) . '</dd>';       $output .= '</dl>';

e) This is also wrong -- the "acronym" tag is deprecated:

-      return '<p>' . t('<abbr title="Outline Processor Markup Language">OPML</abbr> is an XML format used to exchange multiple feeds between aggregators. A single OPML document may contain a collection of many feeds. Drupal can parse such a file and import all feeds at once, saving you the effort of adding them manually. You may either upload a local file from your computer or enter a URL where Drupal can download it.') . '</p>';
+      return '<p>' . t('<acronym title="Outline Processor Markup Language">OPML</acronym> is an XML format for exchanging feeds between aggregators. A single OPML document may contain many feeds. Aggregator uses this file to import all feeds at once. Upload a file from your computer or enter a URL where the OPML file can be downloaded.') . '</p>';

The other UI text changes look fine. Thanks!

theMusician’s picture

Regarding:

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

vegantriathlete’s picture

This 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.

vegantriathlete’s picture

Assigned: Unassigned » vegantriathlete

Working on this now.

vegantriathlete’s picture

Here is the rerolled patch.

yoroy’s picture

Status: Needs work » Needs review

Great. And then set status to "needs review" so that we trigger testbot :)

vegantriathlete’s picture

Status: Needs review » Needs work

I 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 to aggregator/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.

vegantriathlete’s picture

Please 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.

vegantriathlete’s picture

Here is the new patch and the interdiff. Don't set it to "Need review" yet. I want to check it on simplytest.me first.

vegantriathlete’s picture

D'oh! There is one typo in "widipedia". Let me fix that now.

vegantriathlete’s picture

Here is the latest patch and interdiff. Let me check it quickly again in simplytest.me.

vegantriathlete’s picture

Assigned: vegantriathlete » Unassigned
Status: Needs work » Needs review

Okay, looks good in simplytest.me. Time for the testbot to have a look!

jhodgdon’s picture

Status: Needs review » Needs work

Hm... Looking at the test:

+    $this->assertRaw(t('Upload a file or enter a URL.'), 'Error if both fields are filled.');

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"?

-      $this->setFormError('remote', $form_state, $this->t('You must <em>either</em> upload a file or enter a URL.'));
+      $this->setFormError('remote', $form_state, $this->t('Upload a file or enter a URL.'));

It looks like the previous message emphasized the "either", and this was lost when the patch was made?

Status: Needs review » Needs work

The last submitted patch, 76: drupal8.user-interface-text.1209674-76.patch, failed testing.

jhodgdon’s picture

Um... 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.

amitgoyal’s picture

Status: Needs work » Needs review
FileSize
6.54 KB
1.13 KB

I believe the text in test cases should match with the text in module file (core/modules/aggregator/src/Form/OpmlFeedAdd.php).

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

That'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?

apratt’s picture

Thanks for bringing this to fruition. It looks good to me.

yoroy’s picture

Aren't there two closing </dl> tags in line 37 & 38?

jhodgdon’s picture

Status: Reviewed & tested by the community » Needs work

Good catch yoroy!

AndyThornton’s picture

Status: Needs work » Needs review
FileSize
6.51 KB
1.34 KB

Removed the extra

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Thanks!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 84: drupal8.user-interface-text.1209674-84.patch, failed testing.

jhodgdon’s picture

Status: Needs work » Reviewed & tested by the community

Random unrelated test failure there.

jhodgdon’s picture

yoroy’s picture

Thank you for seeing this through.

jhodgdon’s picture

Status: Reviewed & tested by the community » Fixed

Thanks everyone again! Committed to 8.x.

  • Commit 7db9aae on 8.x by jhodgdon:
    Issue #1209674 by yoroy, kid_icarus, franz, pasive, barnettech, disasm,...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.