Closed (fixed)
Project:
Profile2 Registration Path
Version:
7.x-1.9
Component:
User interface
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
1 Oct 2012 at 15:55 UTC
Updated:
4 Jan 2014 at 02:24 UTC
Jump to comment: Most recent
Comments
Comment #1
grasmash commentedThanks for the tip.
The best way to do this would be:
Technically, you're not supposed to run functions inside of t(). Using the '@' character before a t() variable will run it through check_plain() automatically. I've made this change and pushed it to dev.
Thanks!
Comment #2
gghh2 commentedThanks for your "pragmatic" adwise !
Comment #3
guillaume.d commentedHi,
@madmatter23 : The problem i see putting '@title' inside t() is that we going to have only the string '@title' to translate in the interface (and not the 'real' one). For example if we have the title 'Create new Teenager account' on a form and another form with 'Create new Elected account', we want to translate specifically these titles and we can't use '@title'.
To fix that we can put the real title in the translate method, like this:
Bye :)
Comment #4
guillaume.d commentedComment #5
grasmash commentedChange committed. Thanks!