From a7242c88c7990116c44aed3fe216f1627336f2f6 Mon Sep 17 00:00:00 2001 From: Carlos Eduardo Ramos Date: Wed, 28 Apr 2010 15:00:41 -0300 Subject: Implement gettext() --- usr/local/www/system_usermanager_settings_test.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/system_usermanager_settings_test.php b/usr/local/www/system_usermanager_settings_test.php index 34fb172..dc461d8 100755 --- a/usr/local/www/system_usermanager_settings_test.php +++ b/usr/local/www/system_usermanager_settings_test.php @@ -73,50 +73,50 @@ $authcfg = auth_get_authserver($authserver); "; + printf(gettext("Could not find settings for %s%s"), $authserver, "

"); } else { - echo "Testing pfSense LDAP settings... One moment please...

"; + echo gettext("Testing pfSense LDAP settings... One moment please...") . "

"; echo ""; - echo ""; - echo ""; - echo ""; echo "
Attempting connection to {$ldapserver}"; + echo "
" . gettext("Attempting connection to") . " " . $ldapserver . ""; if(ldap_test_connection($authcfg)) { echo "OK
Attempting bind to {$ldapserver}"; + echo "
" . gettext("Attempting bind to") . " " . $ldapserver . ""; if(ldap_test_bind($authcfg)) { echo "OK
Attempting to fetch Organizational Units from {$ldapserver}"; + echo "
" . gettext("Attempting to fetch Organizational Units from") . " " . {$ldapserver} . ""; $ous = ldap_get_user_ous(true, $authcfg); if(count($ous)>1) { echo "OK
"; if(is_array($ous)) { - echo "Organization units found:

"; + echo gettext("Organization units found") . ":

"; echo ""; foreach($ous as $ou) { echo ""; } } } else - echo ""; + echo ""; echo "
" . $ou . "
failed
" . gettext("failed") . "

"; } else { - echo "failed"; + echo "" . gettext("failed") . ""; echo "

"; } } else { - echo "failed"; + echo "" . gettext("failed") . ""; echo "

"; } } ?>

- + " onClick='Javascript:window.close();'> -- cgit v1.1