diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-01-11 20:31:26 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-01-11 20:31:26 +0000 |
commit | a8b8c247db070d96a663ab8bb57a40ead173300a (patch) | |
tree | 959b434490bbc22d4f73ded0adbaff21600a7262 /includes | |
parent | 5ac59aacd2c5d60155b7236c588bed2e750b3e04 (diff) | |
download | brdo-a8b8c247db070d96a663ab8bb57a40ead173300a.tar.gz brdo-a8b8c247db070d96a663ab8bb57a40ead173300a.tar.bz2 |
- Patch #5021: clean up URLs in _help texts. Patch by UnConeD.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/includes/common.inc b/includes/common.inc index 72e9e2051..39597b8aa 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -420,14 +420,18 @@ function locale_init() { * * Translates strings to the current locale. * - * We try to keep strings whole as much as possible and are unafraid of HTML - * markup within translation strings if necessary. The suggested syntax for - * a link embedded within a translation string is for example: + * When using t(), try to put entire sentences and strings in one t() call. + * This makes it easier for translators. We are unafraid of HTML markup within + * translation strings if necessary. The suggested syntax for a link embedded + * within a translation string is for example: * @code * $msg = t("You must login below or \<a href=\"%url\"\>create a new * account\</a\> before viewing the next page.", array("%url" * => url("user/register"))); * @endcode + * We suggest the same syntax for links to other sites. This makes it easy to + * change link URLs if needed (which happens often) without requiring updates + * to translations. * * @param $string A string containing the english string to translate. * @param $args Array of values to replace in the string. |