Skip to content
Snippets Groups Projects
Commit bc94b0e6 authored by Jennifer Hodgdon's avatar Jennifer Hodgdon
Browse files

Issue #1873608 by David_Rothstein: Clarify documentation on when to use t vs format_string

parent c6dff672
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -1523,8 +1523,9 @@ function t($string, array $args = array(), array $options = array()) {
* page (especially text that may have come from untrusted users, since in that
* case it prevents cross-site scripting and other security problems).
*
* In most cases, you should use t() rather than this function, since it will
* translate the text (on non-English-only sites) in addition to formatting it.
* In most cases, you should use t() rather than calling this function
* directly, since it will translate the text (on non-English-only sites) in
* addition to formatting it.
*
* @param $string
* A string containing placeholders.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment