]> git.wh0rd.org - tt-rss.git/commitdiff
Allow translation of notices in prefs.
authorTomas Chvatal <tchvatal@suse.cz>
Sun, 24 Mar 2013 16:50:20 +0000 (17:50 +0100)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 24 Mar 2013 17:24:24 +0000 (21:24 +0400)
classes/pref/prefs.php

index 4fb8650a2b6c0fb613cda4fb40407ea778c7a616..a5a699a67a7041591968d7fce12aa5efeefd13fa 100644 (file)
@@ -233,7 +233,7 @@ class Pref_Prefs extends Handler_Protected {
                        </script>";
 
                        if ($otp_enabled) {
-                               print_notice("Changing your current password will disable OTP.");
+                               print_notice(__("Changing your current password will disable OTP."));
                        }
 
                        print "<table width=\"100%\" class=\"prefPrefsList\">";
@@ -266,7 +266,7 @@ class Pref_Prefs extends Handler_Protected {
 
                                if ($otp_enabled) {
 
-                                       print_notice("One time passwords are currently enabled. Enter your current password below to disable.");
+                                       print_notice(__("One time passwords are currently enabled. Enter your current password below to disable."));
 
                                        print "<form dojoType=\"dijit.form.Form\">";
 
@@ -401,7 +401,7 @@ class Pref_Prefs extends Handler_Protected {
                print '<div dojoType="dijit.layout.ContentPane" region="center" style="overflow-y : auto">';
 
                if ($_SESSION["profile"]) {
-                       print_notice("Some preferences are only available in default profile.");
+                       print_notice(__("Some preferences are only available in default profile."));
                }
 
                if ($_SESSION["profile"]) {
@@ -626,7 +626,7 @@ class Pref_Prefs extends Handler_Protected {
 
                print "<h2>".__("Plugins")."</h2>";
 
-               print_notice("You will need to reload Tiny Tiny RSS for plugin changes to take effect.");
+               print_notice(__("You will need to reload Tiny Tiny RSS for plugin changes to take effect."));
 
                print "<form dojoType=\"dijit.form.Form\" id=\"changePluginsForm\">";