API page: http://api.drupal.org/api/drupal/includes--bootstrap.inc/function/t/7
Describe the problem you have found:
The D6 documentation about the t() function clearly describes the usage of the different placeholder types ! @ and %. This information is no longer available in the D7 documentation. This could be seen as basic Drupal knowledge but if its documented for D6 then i think it should also be documented for D7 in the same way.
Adding the info from the D6 page (copy-paste) should do just fine in this case.
Regards,
Eric Mulder
Comment | File | Size | Author |
---|---|---|---|
#7 | t-d7-1359326-7.patch | 1.93 KB | xjm |
#4 | t-1359326-4.patch | 1.95 KB | xjm |
#4 | interdiff-1-4.txt | 623 bytes | xjm |
#1 | t-format-string.patch | 1.95 KB | xjm |
Comments
Comment #1
xjmI was confused by this at one point too. In D7. the t() documentation now references
format_string()
, which includes documentation for the allowed key patterns. Perhaps we just need to clarify this?Comment #2
xjmComment #3
jhodgdonThat doc change looks good. But:
two spaces after the .
Comment #4
xjmGrr, bad thumbs.
Here's a reroll without the extra space.
Comment #5
jhodgdonComment #6
catchCommitted/pushed to 8.x, thanks! Moving back to 7.x.
Comment #7
xjmStraight backport.
Comment #8
webchickCommitted and pushed to 7.x. Thanks!