From 6f4080b1147a4241458d4eec9e3285d5a650e7ee Mon Sep 17 00:00:00 2001 From: jervfors Date: Sat, 17 Mar 2007 08:24:38 +0000 Subject: [PATCH] Changing the service provider's logo string. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@12339 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/login.php | 4 +++- templates/default_advanced/login.tpl | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/login.php b/src/login.php index 21fe8fa1..4d58deab 100644 --- a/src/login.php +++ b/src/login.php @@ -164,7 +164,10 @@ session_write_close(); $oTemplate->assign('logo_str', $logo_str); $oTemplate->assign('logo_path', $org_logo); $oTemplate->assign('sm_attribute_str', $sm_attribute_str); +// i18n: The %s represents the service provider's name $oTemplate->assign('org_name_str', sprintf (_("%s Login"), $org_name)); +// i18n: The %s represents the service provider's name +$oTemplate->assign('org_logo_str', sprintf (_("The %s logo"), $org_name)); $oTemplate->assign('login_field_value', $loginname_value); $oTemplate->assign('login_extra', $login_extra); @@ -183,4 +186,3 @@ do_hook('login_bottom', $null); $oErrorHandler->setDelayedErrors(false); $oTemplate->display('footer.tpl'); -?> diff --git a/templates/default_advanced/login.tpl b/templates/default_advanced/login.tpl index 9c5c0126..a18ff183 100644 --- a/templates/default_advanced/login.tpl +++ b/templates/default_advanced/login.tpl @@ -11,6 +11,7 @@ * $sm_attribute_str - string containg SQM attributes. Will be empty if * this has been disabled by the admin. * $org_name_str - translated string containing orginization's name + * $org_logo_str - translated string containing orginization's logo * $login_field_value - default value for the user name field * $login_extra - Some extra form fields needed by SquirrelMail * for the login. Template designers SHOULD ALWAYS @@ -49,7 +50,7 @@ extract($t); - <?php echo _(" /> + <?php echo $org_logo_str; ?> -- 2.25.1