diff options
author | Andrew Dolgov <[email protected]> | 2009-01-25 18:19:09 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-01-25 18:19:09 +0100 |
commit | 2a52d96fe6365b1516241180e88df3492ae54e2f (patch) | |
tree | 434819d13477d11965992b7259647dd4180cc27c /modules | |
parent | 3c374d637047676f1a248d5474f62e20b0542d57 (diff) |
localization fixes
Diffstat (limited to 'modules')
-rw-r--r-- | modules/help.php | 2 | ||||
-rw-r--r-- | modules/pref-feeds.php | 7 | ||||
-rw-r--r-- | modules/pref-prefs.php | 2 | ||||
-rw-r--r-- | modules/pref-users.php | 18 |
4 files changed, 8 insertions, 21 deletions
diff --git a/modules/help.php b/modules/help.php index 3f6968db7..415870d45 100644 --- a/modules/help.php +++ b/modules/help.php @@ -3,7 +3,7 @@ if (!$_GET["noheaders"]) { print "<html><head> - <title>Tiny Tiny RSS : Help</title> + <title>".__('Help')."</title> <link rel=\"stylesheet\" href=\"utility.css\" type=\"text/css\"> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"> </head><body>"; diff --git a/modules/pref-feeds.php b/modules/pref-feeds.php index bcd79e74a..fae1fbe2f 100644 --- a/modules/pref-feeds.php +++ b/modules/pref-feeds.php @@ -1316,7 +1316,8 @@ } if ($hidden) { - $edit_title = "<span class=\"insensitive\">$edit_title (Hidden)</span>"; + $edit_title = "<span class=\"insensitive\">$edit_title ". + __('(Hidden)')."</span>"; $last_updated = "<span class=\"insensitive\">$last_updated</span>"; $last_article = "<span class=\"insensitive\">$last_article</span>"; } @@ -1329,8 +1330,8 @@ $parent_title = $line["parent_title"]; if ($parent_title) { - $parent_title = "<span class='groupPrompt'>(linked to - $parent_title)</span>"; + $linked_to = sprintf(__("(linked to %s)"), $parent_title); + $parent_title = "<span class='groupPrompt'>$linked_to</span>"; } print "<td $onclick>" . "$edit_title $parent_title" . "</td>"; diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index a09c7f20c..3cd557d97 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -129,7 +129,7 @@ $help_text = db_fetch_result($result, 0, "help_text"); print $help_text; } else { - print "Unknown option: $pref_name"; + printf(__("Unknown option: %s"), $pref_name); } } else if ($subop == "change-email") { diff --git a/modules/pref-users.php b/modules/pref-users.php index 386c428b1..73313a8ad 100644 --- a/modules/pref-users.php +++ b/modules/pref-users.php @@ -14,7 +14,7 @@ $uid = sprintf("%d", $_GET["id"]); - print "<div id=\"infoBoxTitle\">User details</div>"; + print "<div id=\"infoBoxTitle\">".__('User details')."</div>"; print "<div class='infoBoxContents'>"; @@ -28,7 +28,7 @@ WHERE id = '$uid'"); if (db_num_rows($result) == 0) { - print "<h1>User not found</h1>"; + print "<h1>".__('User not found')."</h1>"; return; } @@ -36,8 +36,6 @@ $login = db_fetch_result($result, 0, "login"); - // print "<h1>$login</h1>"; - print "<table width='100%'>"; $last_login = date(get_pref($link, 'LONG_DATE_FORMAT'), @@ -49,21 +47,9 @@ $access_level = db_fetch_result($result, 0, "access_level"); $stored_articles = db_fetch_result($result, 0, "stored_articles"); - // print "<tr><td>Username</td><td>$login</td></tr>"; - // print "<tr><td>Access level</td><td>$access_level</td></tr>"; print "<tr><td>".__('Registered')."</td><td>$created</td></tr>"; print "<tr><td>".__('Last logged in')."</td><td>$last_login</td></tr>"; -/* $result = db_query($link, "SELECT - SUM(LENGTH(content)) AS db_size - FROM ttrss_user_entries,ttrss_entries - WHERE owner_uid = '$uid' AND ref_id = id"); - - $db_size = round(db_fetch_result($result, 0, "db_size") / 1024); - - print "<tr><td>".__('Stored articles'). - "</td><td>$stored_articles (${db_size}K)</td></tr>"; */ - $result = db_query($link, "SELECT COUNT(id) as num_feeds FROM ttrss_feeds WHERE owner_uid = '$uid'"); |