Replace "Sticky at top of lists" with a more meaningful equivalent

marco.robotangel - December 3, 2007 - 18:06
Project:Drupal
Version:7.x-dev
Component:user interface text
Category:task
Priority:normal
Assigned:Senpai
Status:needs work
Issue tags:beginner, GHOP, Newbie, Usability, Usability Team Approved
Description

Try to create a new story, expand "publishing options". You will see an option "Sticky at top of lists". This is a quite unclear description, especially if you never participated in an bulletin board or have never used Drupal before.

The suggestion made at [1] is to replace it with an more meaningful equivalent: "Sticky (stays at top of content lists).". Even if you've never used Drupal before you know directly where exactly it will be shown (at the top of the content lists) and it'll stay there until you choose a different option.

Don't hurry, I'll try to fix this problem (should be just a small description to change?) on my own (want to learn something ;-) )

[1] http://groups.drupal.org/node/7043

#1

webchick - December 3, 2007 - 19:17
Title:Replace "Sticky at top of lists" with an more meaningful equivalent» GHOP #48 (1): Replace "Sticky at top of lists" with an more meaningful equivalent

Marking as a GHOP task so people know not to work on it.

#2

webchick - December 3, 2007 - 19:20
Title:GHOP #48 (1): Replace "Sticky at top of lists" with an more meaningful equivalent» Replace "Sticky at top of lists" with an more meaningful equivalent

Oh nevermind. :) I see what you're doing. Unmarking as a GHOP task. But yeah, if folks could give marco.robotangel a couple days to work on this that'd be swell. :)

#3

marco.robotangel - December 3, 2007 - 23:24
Status:active» needs review

Well, my very first patch here. I'm quite sure I've forgotten something so don't chop me up if it's not complete.

AttachmentSizeStatusTest resultOperations
node.pages_.inc_sticky.patch592 bytesIgnoredNoneNone

#4

Senpai - December 4, 2007 - 07:02
Status:needs review» reviewed & tested by the community

Tested and working fine. The patch applies cleanly. Good work! I even like the way you worded it, and there are some around here who know how hard that is to do! ;-) I'm RTBC'ing this, so unless there are any objections to the text, it should probably get committed.

A note for you, though Marco. You should learn how to patch against core files from the root of the drupal directory. There's more info in the http://drupal.org/patch section of the Handbooks.

#5

Gábor Hojtsy - December 4, 2007 - 07:48
Status:reviewed & tested by the community» needs review

Are there other places where this might appear? The content overview page's filter form might not be the best to apply this change as well, but a bit of a look around would help in achieving consistency.

#6

Senpai - December 5, 2007 - 03:49

I didn't even think of that, but upon consideration, it seems like that's the only place I've ever seen it. Marco, mind doing a search through core for that phrase or others like it?

#7

Benjamin Melançon - December 5, 2007 - 05:41
Status:needs review» needs work

Very nice patch, Marco, and good catch, Gabor.

A quick grep through core (sorry I did Drupal 5, I realize now, but I didn't have 6 on my computer)

/drupal-core/drupal-5.3 ben$ grep -nHR sticky .

comes up with one important spot, other than the content overview page's filter (which should probably be changed also? Not really a space consideration is there?)

That spot is the default settings provided by content_types:

./modules/node/content_types.inc:162: 'sticky' => t('Sticky at top of lists'),./modules/node/node.module:1296:

And the admin filter:

'sticky' => array(
./modules/node/node.module:1297: 'label' => t('Make sticky'),
./modules/node/node.module:1298: 'callback' => 'node_operations_sticky',
./modules/node/node.module:1300: 'unsticky' => array(
./modules/node/node.module:1302: 'callback' => 'node_operations_unsticky',

Again, ignore line numbers but I bet the files are the same in D6.

#8

Bevan - January 7, 2008 - 04:59
Version:6.x-dev» 7.x-dev

will need to wait for d7 now with the lang code freeze. tag for newbie

#9

drawk - September 6, 2008 - 17:30
Component:node system» usability

#10

kika - September 6, 2008 - 19:22
Component:usability» user interface text

#11

superduperdan - February 9, 2009 - 22:16

I am using D5 also and decided to manually change the text from "Sticky at top of lists" to "Featured Items" for my own purposes. I made these change anywhere I found the phrase "Sticky at top of lists" in both ./modules/node/content_types.inc and ./modules/node/node.module. It's works great but only when logged in as site admin. I used Override Node Options to enable content editors to use the Publishing options. But when I login as a content editor it still reads "Sticky at top of lists". How is this possible if I changed all instances in the scripts?

Should I start a new post on this issue?

#12

wretched sinner... - February 10, 2009 - 04:48

#13

Senpai - April 18, 2009 - 15:37
Title:Replace "Sticky at top of lists" with an more meaningful equivalent» Replace "Sticky at top of lists" with a more meaningful equivalent
Assigned to:Anonymous» Senpai
Status:needs work» needs review

It's been 1.5 years since Marco worked on this, think I can take over and close it out? :)

Patch Testing Instructions
This patch changes the label text of several things pertaining to making a node 'sticky'. There's five pages that this patch affects:

URL #1: /admin/build/types/add
Look in the Workflow Settings fieldset for Default Options and check the text for "Sticky (stays at top of content lists)".
URL #2: /admin/content/node
Look in the Update Options dropdown menu for a "Make sticky (stays at top of content lists)"
URL #3: /node/1/edit
Look for the changed text, "Sticky (stays at top of content lists)", under the Publishing Options [vertical tab].
URL #4: admin/settings/search
Near the bottom of the page, look for the "Sticky (stays at top of content lists)" beneath the Content Ranking factor.
URL #5: /admin/
blahblah.

Simpletest
Now that I've written out all of these instructions, it's starting to look like a Simpletest might be in order? Holla if you want one, and I'll add it.

AttachmentSizeStatusTest resultOperations
197460_node-pages-inc_sticky.patch3.17 KBIdleFailed: 10817 passes, 1 fail, 0 exceptionsView details | Re-test

#14

Senpai - April 18, 2009 - 15:39
Issue tags:+beginner, +Newbie

Adding tags.

#15

System Message - April 18, 2009 - 16:01
Status:needs review» needs work

The last submitted patch failed testing.

#16

Senpai - April 19, 2009 - 01:52
Status:needs work» needs review

Woops! Apparently, one cannot change the text of

function node_action_info() {
  'node_make_sticky_action' => array(
    'type' => 'node',
    'description' => t('Make post sticky'),

to add a (stays at top of content lists) clause without messing up the Triggers simpletest line of

// Test 3: The action should be able to be unassigned from a trigger.
  $this->assertRaw(t('Action %action has been unassigned.', array('%action' => ucfirst($info['name']))), t('Check to make sure the @action action can be unassigned from the trigger.', array('@action' => $info['name'])));

so we'll just go without that one because I don't want to rewrite triggers' tests tonight. :)

AttachmentSizeStatusTest resultOperations
197460_node-pages-inc_sticky_0.patch2.81 KBIdlePassed: 10818 passes, 0 fails, 0 exceptionsView details | Re-test

#17

Bevan - April 19, 2009 - 23:13
Status:needs review» needs work
Issue tags:+Usability, +Usability Team Approved

I think it's unnecessary to write a test that accompanies the changes in this patch, since there are no functional changes introduced by this patch, only changes to texts wrapped in t(). Further, we need to update the simpletest that failed so that it knows about the new text, not the other way around.

Otherwise, this is great! :D

#18

EvanDonovan - May 30, 2009 - 05:52

When you change the text for the "make sticky" action, you may also want to change the text for the "make unsticky" action to match.

If this has been approved by the Usability Team, what else needs to happen for it to get in to 7.x?

#19

bdunwood - November 15, 2009 - 22:18

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.