Closed (fixed)
Project:
Submitted By
Version:
6.x-1.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
10 Feb 2010 at 13:28 UTC
Updated:
15 Jun 2010 at 18:10 UTC
The string with the Tokens is not put to the t() function, so the replaced string will be equal for all languages. I suggest wrapping the $submitted variable in submitted_by_node_submitted() in the t() function.
So, change
if ($submitted) {
return filter_xss_admin(token_replace($submitted, 'node', $node));
}To:
if ($submitted) {
return filter_xss_admin(token_replace(t($submitted), 'node', $node));
}See the patch that does exactly this.
| Comment | File | Size | Author |
|---|---|---|---|
| submitted_by_t.patch | 502 bytes | BarisW |
Comments
Comment #1
BarisW commentedForgot to set the status
Comment #2
j0nathan commentedHi,
Patch tested and working.
With this, no need to use i18n variables into settings.php, but translatable by the core Translate interface.
Comment #3
nancydruCommitted to 6.x-1.x-dev. I could not test it because my PC with my test sites is dead.
Also committed to HEAD (7.x), but now that Tokens is in core, it will require more testing, and probably coding changes.