Closed (works as designed)
Project:
Simplenews
Version:
6.x-1.0-beta5
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2008 at 18:33 UTC
Updated:
7 Oct 2011 at 08:24 UTC
By default on block of simplenews there is write:
"Stay informed on our latest news!" and if I put the correct translation strings, the new words don't works.
In the simplenews-block.tpl.php i think that it should be so:
Now (don't work)
<?php if ($message): ?>
<p><?php print $message; ?></p>
<?php endif; ?>
after (work)
<?php if ($message): ?>
<p><?php print t($message); ?></p>
<?php endif; ?>
that's right?
bye
Comments
Comment #1
sutharsan commentedThe default string 'Stay informed on our latest news!' is translated by a t() function. Any block specific text you enter is not translated. The correct way of translating the default text is via Site building > Translate interface.
Comment #2
namberone commentedBefore of the change of code, I've tried as you say(translate of "Stay informed on our latest news!" in other language....
but...don't work.
Comment #3
federico.giunchi commentedSame issue, without the "t" in front to the variable the content is not translated.
Comment #4
MantasK commentedI think problem is with i18nblock translation module, because it translates only title and body:
maybe instead of message in settings form could be used body name?
We can use t() in template file, but only if defaul language is Enghlish.
Comment #5
juan m commentedHi!
I have other language as default and nothing of the wrote before was effective to resolve the problem...
¿Some additional idea?
Thanks in advance!
Comment #6
mokko commentedsimilar issue: http://drupal.org/node/606282, currently active
Comment #7
neek commentedi changed this tpl a bit and its works with string translations..
if ($message):print t('Stay informed on our latest news!');endif;Comment #8
tomsm commentedThanks, adding a t function translates the message.