Closed (fixed)
Project:
OG Forum
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Reporter:
Created:
23 Sep 2009 at 01:01 UTC
Updated:
28 Oct 2009 at 13:50 UTC
Jump to comment: Most recent
This module does not use the t() function properly. This is particularly a problem in the _og_forum_set_breadcrumb() function because it causes the group node's title to be escaped twice. This causes titles that contain special characters such as apostrophes and ampersands to look like a mess.
Only literal strings should be translated. Strings that are completely dynamic, such as $node->title, should not be translated. The attached patch fixes the problem in _og_forum_set_breadcrumb(). I have not reviewed the rest of the module to see if there are additional instances where t() is not used properly.
See http://api.drupal.org/api/function/t/6 for more information.
| Comment | File | Size | Author |
|---|---|---|---|
| og_forum-fix-breadcrumbs.patch | 1.49 KB | jtsnow |
Comments
Comment #1
Anonymous (not verified) commentedThanks for the heads up.
Would someone like to go through the module and check for other occurrences ?
Best, Paul
Comment #2
Anonymous (not verified) commentedThis patch and a couple of other related fixes will be committed shortly.
Thanks for the heads up!
Best, Paul
Comment #3
Anonymous (not verified) commented