From a8b8c247db070d96a663ab8bb57a40ead173300a Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 11 Jan 2004 20:31:26 +0000 Subject: - Patch #5021: clean up URLs in _help texts. Patch by UnConeD. --- includes/common.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'includes') 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 \create a new * account\ 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. -- cgit v1.2.3