@@ -1222,181 +1222,54 @@ function drupal_unpack($obj, $field = 'data') {
/**
* Translates a string to the current language or to a given language.
*
* All human-readable text that will be displayed on the site or sent to a user
* should be passed through the t() function. This ensures that sites can be
* fully translated into other languages.
*
* Here are some examples of translating static text using t():
* @code
* if (!$info || !$info['extension']) {
* form_set_error('picture_upload', t('The uploaded file was not an image.'));
* }
*
* $form['submit'] = array(
* '#type' => 'submit',
* '#value' => t('Log in'),
* );
* @endcode
*
* In addition to translating static text, t() can handle text that should not
* be translated or that might change from time to time (such as link paths)
* and dynamic text from variables, using special "placeholders". There are
* three styles of placeholders:
* - !variable: Indicates that the text should be inserted as-is. This is
* useful for inserting variables into things like e-mail. Example:
* @code
* $message[] = t("If you don't want to receive such e-mails, you can change your settings at !url.", array('!url' => url("user/$account->uid", array('absolute' => TRUE))));
* @endcode
* - @variable: Indicates that the text should be run through check_plain(), to
* escape HTML characters. Use this for any output that is displayed within a