When using an authentication plugin such as authcas for instance, the account/login.php page appears in several tabs, a one for the local account authentication and the others for the authentication plugins. These tabs have names that can not be translated into the current language of the user.<br />
<br />
I propose to format the name of the tabs in order to be able to use the gettext php function as for other translated messages in fusionforge.<br />
<br />
* In the file /usr/share/gforge/plugins/authcas/include/AuthCASPlugin.class.php, one may add the following line to the function displayAuthForm(&$params) :<br />
<br />
$this->text = _("CAS authentication");<br />
<br />
This may be done at the line 84 for instance. <br />
<br />
<br />
* In the file /usr/share/gforge/plugins/authbuiltin/common/AuthBuiltinPlugin.class.php, one may add the following line to the function displayAuthForm(&$params) :<br />
<br />
$this->text = _("Built-in authentication");<br />
<br />
This may be done at the line 64 for instance.<br />
<br />
* The following lines could be added to fusionforge-5.3.fr.po in order to translate it accordingly in french for instance :<br />
<br />
: plugins/authbuiltin/common/AuthBuiltinPlugin.class.php:64<br />
msgid "Built-in authentication"<br />
msgstr "Authentification sur compte local"<br />
<br />
: plugins/authcas/include/AuthCASPlugin.class.php:84<br />
msgid "CAS authentication"<br />
msgstr "Authentification avec CAS"
|