Closed (fixed)
Project:
Node Tasklist
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2011 at 06:48 UTC
Updated:
7 May 2011 at 19:11 UTC
Jump to comment: Most recent, Most recent file
The module improperly uses the t() function without placeholders. This will cause all variations with variables to be stored in the locale tables, making it unusable for translation purposes.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | t_placeholders-1131512.patch | 8.37 KB | svendecabooter |
Comments
Comment #1
svendecabooterPatch attached
Comment #2
svendecabooterIt seems the patch also includes a lot of empty space removals, that were automatically done by my editor...
But i suppose you can apply those as well, as empty spaces are pretty useless anyway ;)
The real change is found in function node_tasklist_show in the drupal_set_message() calls BTW.
Comment #3
svendecabooterThere is also some misuse in node_taskslist.admin.inc. Check http://api.drupal.org/api/drupal/includes--common.inc/function/t/6 for proper use of placeholders.
Comment #4
Anonymous (not verified) commentedAh, this is a great tip. Fixed the admin.inc placeholders and applied the patch manually. Thanks for making note of which function was affected since there was extra stuff in that file.