[translations] Use of variables in t()
Hans Salvisberg
drupal at salvisberg.com
Tue Dec 23 17:53:21 UTC 2008
Derek Wright wrote:
> B) I seem to have an example in one of my contribs where this edge
> case is being hit. Once I add t($foo) to my code (where all possible
> values of $foo are listed via t() around string literals elsewhere in
> the code), potx.php starts throwing error messages about "Invalid
> marker content ...". Is there anything I can do to tell potx "yes, I
> know, but this is that edge case where it's ok, please shut up
> again"? ;)
>
Here's what I do to get potx to shut up:
$tr = 't';
$tr($foo)
I forgot why I'm not using $t, but I think there was a reason...
Hans (salvis)
More information about the translations
mailing list