]> git.wh0rd.org Git - tt-rss.git/commitdiff
more i18n in filters
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 Mar 2007 10:37:59 +0000 (11:37 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 5 Mar 2007 10:37:59 +0000 (11:37 +0100)
modules/pref-users.php

index 4022316096c4441c88bb097e7010f94fbcc3cf7b..1e0b1dd381c1ec4b2a60e1221030e1571e0d2b61 100644 (file)
@@ -75,7 +75,7 @@
                                if ($password) {
                                        $pwd_hash = 'SHA1:' . sha1($password);
                                        $pass_query_part = "pwd_hash = '$pwd_hash', ";                                  
-                                       print format_notice(sprintf(__('Changed password for user <b>%s</b>.'), $login));
+                                       print format_notice(sprintf(__('Changed password of user <b>%s</b>.'), $login));
                                } else {
                                        $pass_query_part = "";
                                }
        
                                                $new_uid = db_fetch_result($result, 0, "id");
        
-                                               print "<div class=\"notice\">Added user <b>".$_GET["login"].
-                                                       "</b> with password <b>$tmp_user_pwd</b>.</div>";
+                                               print format_notice(sprintf(__("Added user <b>%s</b>
+                                                 with password <b>%s</b>"), $login, $tmp_user_pwd));
        
                                                initialize_user($link, $new_uid);
        
                                        } else {
                                        
-                                               print "<div class=\"warning\">Could not create user <b>".
-                                                       $_GET["login"]."</b></div>";
+                                               print format_warning(sprintf(__("Could not create user <b>%s</b>"), 
+                                                       $login));
        
                                        }
                                } else {
-                                       print "<div class=\"warning\">User <b>".
-                                               $_GET["login"]."</b> already exists.</div>";
+                                       print format_warning(sprintf(__("User <b>%s</b> already exists."), 
+                                               $login));
+
                                }
                        } 
                } else if ($subop == "resetPass") {
                                db_query($link, "UPDATE ttrss_users SET pwd_hash = '$pwd_hash'
                                        WHERE id = '$uid'");
 
-                               print "<div class=\"notice\">Changed password of 
-                                       user <b>$login</b> to <b>$tmp_user_pwd</b>.";
+                               print format_notice(sprintf(__("Changed password of user <b>%s</b>
+                                        to <b>%s</b>"), $login, $tmp_user_pwd));
 
                                if (MAIL_RESET_PASS && $email) {
                                        print " Notifying <b>$email</b>.";
                        
                print "<input type=\"submit\" class=\"button\" 
                        id=\"user_add_btn\" disabled=\"true\"
-                       onclick=\"javascript:addUser()\" value=\"Create user\"></div>";
+                       onclick=\"javascript:addUser()\" value=\"".__('Create user')."\"></div>";
 
                $result = db_query($link, "SELECT 
                                id,login,access_level,email,