Commit 4bd96ab7 authored by catch's avatar catch
Browse files

Issue #1359326 by xjm: Fixed t() documentation does not clearly indicate that ...

Issue #1359326 by xjm: Fixed t() documentation does not clearly indicate that  options are documented in format_string() docs.
parent 1873b536
...@@ -1488,10 +1488,10 @@ function drupal_unpack($obj, $field = 'data') { ...@@ -1488,10 +1488,10 @@ function drupal_unpack($obj, $field = 'data') {
* $text = t("@name's blog", array('@name' => format_username($account))); * $text = t("@name's blog", array('@name' => format_username($account)));
* @endcode * @endcode
* Basically, you can put variables like @name into your string, and t() will * Basically, you can put variables like @name into your string, and t() will
* substitute their sanitized values at translation time (see $args below or * substitute their sanitized values at translation time. (See the
* the Localization API pages referenced above for details). Translators can * Localization API pages referenced above and the documentation of
* then rearrange the string as necessary for the language (e.g., in Spanish, * format_string() for details.) Translators can then rearrange the string as
* it might be "blog de @name"). * necessary for the language (e.g., in Spanish, it might be "blog de @name").
* *
* During the Drupal installation phase, some resources used by t() wil not be * During the Drupal installation phase, some resources used by t() wil not be
* available to code that needs localization. See st() and get_t() for * available to code that needs localization. See st() and get_t() for
...@@ -1500,8 +1500,9 @@ function drupal_unpack($obj, $field = 'data') { ...@@ -1500,8 +1500,9 @@ function drupal_unpack($obj, $field = 'data') {
* @param $string * @param $string
* A string containing the English string to translate. * A string containing the English string to translate.
* @param $args * @param $args
* An associative array of replacements to make after translation. * An associative array of replacements to make after translation. Based
* See format_string(). * on the first character of the key, the value is escaped and/or themed.
* See format_string() for details.
* @param $options * @param $options
* An associative array of additional options, with the following elements: * An associative array of additional options, with the following elements:
* - 'langcode' (defaults to the current language): The language code to * - 'langcode' (defaults to the current language): The language code to
...@@ -1514,6 +1515,7 @@ function drupal_unpack($obj, $field = 'data') { ...@@ -1514,6 +1515,7 @@ function drupal_unpack($obj, $field = 'data') {
* *
* @see st() * @see st()
* @see get_t() * @see get_t()
* @see format_string()
* @ingroup sanitization * @ingroup sanitization
*/ */
function t($string, array $args = array(), array $options = array()) { function t($string, array $args = array(), array $options = array()) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment