Better wording is "Content is type" or "Content is of type."

CommentFileSizeAuthor
#19 rules-649438.patch883 bytestraviscarden
#6 rules-649438.patch884 bytestraviscarden

Comments

fago’s picture

Component: User Interface » User interface

+1 for "content is of type". Feel free to roll a patch ;)

mitchell’s picture

Title: "Content has type" condition could be worded better » Rename "Content has type" to "Content is of type"
Version: 6.x-1.1 » 6.x-1.x-dev
Issue tags: +Newbie
aren cambre’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev

New features go in latest branch?

1sp’s picture

Status: Active » Needs review

I feel it should be ""Content is of type(s)". Since we can check for multiple content types in the condition

aren cambre’s picture

Status: Needs review » Active
traviscarden’s picture

Status: Needs work » Reviewed & tested by the community
StatusFileSize
new884 bytes

It looks like the string was already changed somewhere along the line. The corresponding help text, however, wasn't. Here's a patch. As it's basically a typo fix I'm just going to mark it RBTC, and then if the maintainer commits it we can change it to "patch (to be ported)" and get it back to D6 as well.

klausi’s picture

Status: Active » Needs work
+++ rules/modules/node.rules.inc	3 Jun 2010 00:01:58 -0000
@@ -95,7 +95,7 @@ function rules_node_condition_info() {
+    'help' => t('Evaluates to TRUE, if the given content is of one of the selected content types.'),

Shopuldn't it be "Evaluates to TRUE, if the given content is one of the selected content types." ?

Powered by Dreditor.

fago’s picture

Yep, and there is another mistake in 7.x. The support for putting help text directly in the info hook is gone, we need to create a small method in the .rules.inc file for that.

@name-change: I've taken over this name of the condition for 7.x

aren cambre’s picture

There should not be a comma in the middle of "Evaluates to TRUE, if the given content is of one of the selected content types."

traviscarden’s picture

Status: Reviewed & tested by the community » Needs work

@klausi: The other "of" actually belongs in there. If the option is "content is of type" then the help should read "...content is of one of the selected content types". We're just replacing the word "type" with "one of the selected content types". So if you eliminate the extraneous comma (@Aren Cambre), you have "Evaluates to TRUE if the given content is of one of the selected content types."

aren cambre’s picture

Simpler, no CAPS, and maybe just as correct from admin perspective: "Will be true if the given content is one of the selected content types."

klausi’s picture

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

#6: rules-649438.patch queued for re-testing.

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

The last submitted patch, rules-649438.patch, failed testing.

Island Usurper’s picture

Oh, good. It really isn't just me.

Testbot is apparently confused about what Rules' dependencies are when it runs the tests. I heard from boombatower that an update to the testbot should show up sometime next week. Until someone knows otherwise, I don't think we can test Rules patches until that happens.

fago’s picture

Status: Needs work » Needs review

#6: rules-649438.patch queued for re-testing.

fago’s picture

http://qa.drupal.org/pifr/test/27274 -> at Wed, 06/09/2010 - 10:31:02 the general branch test worked.

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

The last submitted patch, rules-649438.patch, failed testing.

klausi’s picture

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

#6: rules-649438.patch queued for re-testing.

traviscarden’s picture

StatusFileSize
new883 bytes

Great! Now here's #6 with the extraneous comma removed, per numbers 9 and 10.

fago’s picture

Status: Needs review » Fixed

that's already done.

fago’s picture

ah, sry I missed the follow-up #19. Thanks, committed that.

Status: Fixed » Closed (fixed)
Issue tags: -Newbie

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