瀏覽代碼

Changing the service provider's logo string.

Fredrik Jervfors 18 年之前
父節點
當前提交
f19b3143b0
共有 2 個文件被更改,包括 5 次插入2 次删除
  1. 3 1
      src/login.php
  2. 2 1
      templates/default_advanced/login.tpl

+ 3 - 1
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');
-?>

+ 2 - 1
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);
  </tr>
  <tr>
   <td class="orgLogo">
-   <img src="<?php echo $logo_path; ?>" width="50" alt="<?php echo _("The service provider's logo"); ?>" />
+   <img src="<?php echo $logo_path; ?>" width="50" alt="<?php echo $org_logo_str; ?>" />
   </td>
   <td>
    <table cellspacing="0">