The hook_help() implementations in modules in D7/8 have a standard format that, at the end, points the user to the on-line help page. When they were first written, these URLs were http://drupal.org/handbook/modules/[module short name]. But the URLs for these pages changed a while back to http://drupal.org/documentation/modules/[module short name]. They all need to be updated in the Drupal Core code.
For instance, in taxonomy.module:
$output .= '<p>' . t('The Taxonomy module allows you to classify the content of your website. To classify content, you define <em>vocabularies</em> that contain related <em>terms</em>, and then assign the vocabularies to content types. For more information, see the online handbook entry for the <a href="@taxonomy">Taxonomy module</a>.', array('@taxonomy' => 'http://drupal.org/handbook/modules/taxonomy/')) . '</p>';
Just that final URL needs to be fixed, and it doesn't affect the string that the translation people use.
So, this should be a good Novice task. In summary:
Find all places where there is a URL like http://drupal.org/handbook[with any suffix] in the Drupal code base, and replace it with http://drupal.org/documentation[same suffix]. As a bonus, verify that the new URLs all work and go to the desired documentation page on Drupal.org.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Update-do-urls-1483662-d7-8.patch | 73.84 KB | rdickert |
| #5 | Update-do-urls-1483662-5.patch | 72.03 KB | Psikik |
| #3 | 1483662-2.patch | 62.2 KB | Psikik |
| #1 | 1483662-1.patch | 61.89 KB | Psikik |
Comments
Comment #1
Psikik commentedHere's a first go at patch. A few of the links had trailing slashes, I removed them to bring them in line with the majority of the links.
For the Entity and Language modules there are no documentation/modules pages.
For the Field UI module, the help text says "see the online handbook entry for Field module." The link actually points to a handbook for the Field UI.
There are a couple of places that reference http://drupal.org/handbooks should this be changed to http://drupal.org/documentation?
All of the help entries refer to the pages as online handbooks, should this be changed to online documentation?
In the php_help(), there's a link to http://drupal.org/handbook/customization/php-snippets. This redirects to http://drupal.org/documentation/customization/php-snippets. Should I replace it?
Comment #3
Psikik commentedMade that patch from the wrong directory. Re-uploading.
Comment #4
jhodgdonThanks Psikik! To answer your questions in (1):
- entity/language - new modules for Drupal 8, which is why they don't have pages yet. Go ahead and leave the URLs there though, following the other patterns.
- Field UI - sounds like a good thing to catch/fix, thanks!
- Yes, any old references to http://drupal.org/handbooks should be changed to http://drupal.org/documentation. Actually, any references to d.o/handbooks/* got changed to d.o/documentation/[same page] when we changed the URLs, with redirects. Which explains the http://drupal.org/handbook/customization/php-snippets -> http://drupal.org/documentation/customization/php-snippets that you found.
- I don't think it's so bad to call something "the online handbook for the XYZ module", so we can leave that.
I think that answers everything... Let me know if you have more questions. Thanks for being so careful!
Comment #5
Psikik commentedHere's an updated patch with all the changes in #4.
Comment #6
jhodgdonLooks great! Thanks!
This should also be good to go for Drupal 7, plus or minus a context reroll. It does not affect any of the translated strings, only the URLs substituted into them.
Comment #7
catchLooks good to me, committed/pushed to 8.x, moving back to 7.x to be ported.
Comment #8
rdickert commentedThis is the backport to D7. ColoradoChris and rdickert worked together on this.
Did a global search and replace on all files and replaced drupal.org/handbook with drupal.org/documentation
Files in 8.x not 7.x:
entity
help.test
language
Files in 7.x not 8.x:
blog
profile
trigger
Comment #9
webkenny commentedLooks good to me. Applies fine and does the job. Marking RTBC.
Comment #10
jhodgdonLooks good! I was briefly concerned with this from hook_library() implementation in overlay.module:
But I think this is OK, since the 'website' parameter is not translated to my knowledge. +1 on RTBC; leaving for webchick to commit since it is not technically just documentation.
Comment #11
webchickFWIW, I am totally fine you committing patches like this.
The earliest I'll be able to review this myself will be sometime after the 7.13 release (maybe Thursday/Friday)
Comment #12
jhodgdonCommitted to 7.x. Thanks all! Another "major" fixed. :)