We're developing a site that makes extensive use of this awesome module, and my partner pointed out what he believed was a grammatical mistake.

"Login to post new content in forum."

Now, I'm not an English major, but if I break the sentence down...

'Login' -- Verb

'to post new content' -- Prepositional phrase, setting up the predicate 'post new content' with the implied subject 'you'

'in forum' -- Another prepositional phrase, indicating the direction of the previous action.

Suggestion: add the word 'the.'
Because it makes this broken up collection of phrases feel better, and read better, and the whole sentence also reads a little better.

core-overrides.inc
411-422

if (empty($forum_types)) {
    // The user is logged-in; but denied access to create any new forum content type.
    if ($user->uid) {
      $forum_types['disallowed'] = array('title' => t('You are not allowed to post new content in the forum.'));
    }
    // The user is not logged-in; and denied access to create any new forum content type.
    else {
      $forum_types['login'] = array(
        'title' => t('<a href="@login">Login</a> to post new content in the forum.', array('@login' => url('user/login', array('query' => drupal_get_destination())))),
        'html' => TRUE);
    }
  }
CommentFileSizeAuthor
#10 af7_962218_1.patch953 bytestroky
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Michelle’s picture

Sure, that makes sense. I never really thought about it... This comes from core forum. You might want to file an issue against core as well.

Michelle

carlthuringer’s picture

Thanks for the quick response. It was a good opportunity to exercise my new Drupal muscles. I found that it says '... to post new content in the forum' in the core forum.module, so no issue will be necessary. Disappointing considering how exciting it would be to commit a patch for core. :D

With a bit more looking, I found #479216: Poor grammar in template_preprocess_forums, where jhedstrom beat me to it over a year ago. XD

Michelle’s picture

Ah, yeah, I haven't been good about keeping up with changes to core forum in the stuff I've overridden. Everything will get a thorough going over in the port to Drupal 7 and then I'll be backporting what I can to D6 like I did with D5 when D6 came out.

Michelle

Michelle’s picture

Status: Active » Closed (won't fix)

I haven't looked at core overrides in so many months that I just assumed the code you posted was in there. But it's not. If you look at the file you can see that it doesn't even have that many lines in it. You must be looking at a really old dev snapshot, I guess.

So, nothing to fix here.

Michelle

carlthuringer’s picture

// $Id: core-overrides.inc,v 1.1.2.11 2010/03/25 04:45:56 michellec Exp $

You're right. Seems our production site is running on a pretty old dev snapshot. I'm stunned by how much is different. This makes me want to roll a fresh dev snapshot against our development server and see if there are any issues. Thanks as always.

Michelle’s picture

Oh, yeah, tons of differences since last march. This branch is in active development. I don't always have time to work on it but tend to make pretty big changes when I do.

Just don't update your production site to the latest dev. It's got some pretty broken spots. Wait for Alpha 4.

Michelle

carlthuringer’s picture

Thanks for the heads-up Michelle. I'll wait for alpha 4. We're gradually nudging our development process in the direction of github and thankfully we're using Dev and Live instances too. On top of that, I've been hitting myself over the head with module development, features, and more so that 90% of the changes on Dev go to live via a module, not individual config changes. Difficult, but rewarding, as I can now deploy and test on a fresh live dump in only a few minutes.

Michelle’s picture

Yeah, I need to find some time to learn Features. I want to make a forum Feature. I should actually make an issue for that while I'm thinking of it.

Michelle

Katrina B’s picture

Version: 6.x-2.x-dev » 7.x-2.0
Status: Closed (won't fix) » Active

This problem still exists in 7.x-2.0. I’d like to be able to correct this without hacking the module; any suggestions?

troky’s picture

Status: Active » Needs review
FileSize
953 bytes

Check attached patch. Strings are changed to match core forum module.

troky’s picture

Status: Needs review » Fixed

Committed to 7.x-dev.

Status: Fixed » Closed (fixed)

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