From 11ffbec3e2c6da86363bdf01527b5dce893f1370 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 5 Mar 2007 11:31:41 +0100 Subject: [PATCH] i18n, fixes --- modules/pref-feeds.php | 6 +++--- modules/pref-users.php | 14 +++++++------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index 256bbbd1..5a3f8451 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -443,9 +443,9 @@ } if (subscribe_to_feed($link, $feed_url, $cat_id)) { - print format_notice(printf(__("Subscribed to %s."), $feed_url)); + print format_notice(sprintf(__("Subscribed to %s."), $feed_url)); } else { - print format_warning(printf(__("Already subscribed to %s."), $feed_url)); + print format_warning(sprintf(__("Already subscribed to %s."), $feed_url)); } if ($p_from != 'tt-rss') { @@ -547,7 +547,7 @@ } else { - print format_warning(printf(__("Category $%s already exists in the database."), $feed_cat)); + print format_warning(sprintf(__("Category $%s already exists in the database."), $feed_cat)); } } diff --git a/modules/pref-users.php b/modules/pref-users.php index 46c7ad47..40223160 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -9,7 +9,7 @@ $id = db_escape_string($_GET["id"]); - print "
User editor
"; + print "
".__('User editor')."
"; print "
"; @@ -26,7 +26,7 @@ $email = db_fetch_result($result, 0, "email"); print ""; - print ""; @@ -34,13 +34,13 @@ "; - print ""; $sel_disabled = ($id == $_SESSION["uid"]) ? "disabled" : ""; - print ""; @@ -52,10 +52,10 @@ print "
+ value=\"".__('Save')."\">
"; + value=\"".__('Cancel')."\">"; print ""; @@ -75,7 +75,7 @@ if ($password) { $pwd_hash = 'SHA1:' . sha1($password); $pass_query_part = "pwd_hash = '$pwd_hash', "; - print "
Changed password for user $login.
"; + print format_notice(sprintf(__('Changed password for user %s.'), $login)); } else { $pass_query_part = ""; } -- 2.39.5
Login: + print "
".__('Login:')."
E-mail: + print "
".__('E-mail:')."
Access level:"; + print "
".__('Access level:').""; print_select_hash("access_level", $access_level, $access_level_names, $sel_disabled); print "