Show
Ignore:
Timestamp:
09/09/06 14:52:23 (2 years ago)
Author:
mbonetti
Message:

Yay for gettext localization! This will probably break things big time.
Note that until intl/*.php isn't adapted the the new method, the trunk
won't be localized!

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/gregarius/admin/users.php

    r1441 r1561  
    5151            pass2=document.getElementById('password2').value; 
    5252            if(pass !== pass2){ 
    53                 msg = '<?php echo LBL_ADMIN_PASS_NO_MATCH ?>'; 
     53                msg = '<?php echo __('Passwords do not match!') ?>'; 
    5454                document.getElementById('admin_match_result').innerHTML = msg; 
    5555                document.getElementById('password').value = ''; 
     
    6767  echo "\n<div id=\"channel_admin\" class=\"frame\">"; 
    6868    echo "<h2></h2>\n" 
    69         . LBL_ADMIN_MUST_SET_PASS; 
     69        . __('<p>No Administrator has been specified yet!</p><p>Please provide an Administrator username and password now!</p>'); 
    7070     
    7171    echo "<form action=\"".$_SERVER['PHP_SELF'] . "\" onsubmit=\"return on_submit_password_match();\" method=\"post\">\n" 
    7272    ."<fieldset style=\"width:400px;\">" 
    73     ."<p><label style=\"display:block\" for=\"username\">".LBL_USERNAME.":</label>\n" 
     73    ."<p><label style=\"display:block\" for=\"username\">".__('Username').":</label>\n" 
    7474    ."<input type=\"text\" id=\"username\" name=\"username\" /></p>\n" 
    75     ."<p><label style=\"display:block\" for=\"password\">".LBL_PASSWORD.":</label>\n" 
     75    ."<p><label style=\"display:block\" for=\"password\">".__('Password').":</label>\n" 
    7676    ."<input type=\"password\" id=\"password\" name=\"password\" /></p>\n" 
    77     ."<p><label style=\"display:block\" for=\"password2\">".LBL_PASSWORD2.":</label>\n" 
     77    ."<p><label style=\"display:block\" for=\"password2\">".__('Password (again)').":</label>\n" 
    7878    ."<input type=\"password\" id=\"password2\" name=\"password2\" /></p>\n" 
    79     ."<p><input type=\"submit\" value=\"".LBL_ADMIN_OK."\" /></p>\n" 
     79    ."<p><input type=\"submit\" value=\"".__('OK')."\" /></p>\n" 
    8080    ."<div style=\"display:inline;\" id=\"admin_match_result\"></div>\n" 
    8181    ."</fieldset>\n" 
     
    9595        style=\"text-align:center\" action=\"".$_SERVER['PHP_SELF'] ."\" method=\"post\">\n" 
    9696    ."<fieldset>" 
    97     ."<legend>" . LBL_ADMIN_LOGIN . "</legend>\n" 
    98     ."<p><label style=\"display:block\" for=\"username\">".LBL_USERNAME.":</label>\n" 
     97    ."<legend>" . __('Please log in') . "</legend>\n" 
     98    ."<p><label style=\"display:block\" for=\"username\">".__('Username').":</label>\n" 
    9999    ."<input type=\"text\" id=\"username\" name=\"username\" /></p>\n" 
    100     ."<p><label style=\"display:block\" for=\"password\">".LBL_PASSWORD.":</label>\n" 
     100    ."<p><label style=\"display:block\" for=\"password\">".__('Password').":</label>\n" 
    101101    ."<input type=\"password\" id=\"password\" name=\"password\" /></p>\n" 
    102     ."<p id=\"admin_login_submit\"><input type=\"submit\" value=\"".LBL_LOG_IN."\" /></p>\n" 
     102    ."<p id=\"admin_login_submit\"><input type=\"submit\" value=\"".__('Login')."\" /></p>\n" 
    103103    ."<span style=\"display:inline;\" id=\"admin_login_result\"></span>\n" 
    104104    ."</fieldset>\n"