From 89cb787edd1c9d3c2fa2616c98986b130fcaf930 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 10 Aug 2007 17:16:43 +0100 Subject: more translation work --- modules/popup-dialog.php | 12 ++++++------ modules/pref-feed-browser.php | 8 ++++---- modules/pref-filters.php | 4 ++-- modules/pref-prefs.php | 19 ++++++++++--------- 4 files changed, 22 insertions(+), 21 deletions(-) (limited to 'modules') diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 2805f7653..498514b08 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -59,7 +59,7 @@ print ""; print " - "; + print ""; // print " // "; @@ -349,9 +350,9 @@ $def_value = $line["def_value"]; $help_text = $line["help_text"]; - print ""; @@ -384,11 +385,11 @@ print ""; print "

"; + name=\"subop\" value=\"".__('Save configuration')."\">"; print " 

"; + value=\"".__('Reset to defaults')."\">

"; print ""; -- cgit v1.2.3-54-g00ecf
Feed URL: +
".__('Feed URL:')."
Click here if this feed requires authentication."; + \"fadd_login_prompt\")'>".__('Click here if this feed requires authentication.').""; print "
- - +
Login:
Password:".__('Login:')."
".__('Password:')."
"; @@ -259,7 +259,7 @@ while ($line = db_fetch_assoc($result)) { //array_push($filter_types, $line["description"]); - $filter_types[$line["id"]] = $line["description"]; + $filter_types[$line["id"]] = __($line["description"]); } print ""; @@ -290,7 +290,7 @@ ORDER BY name"); while ($line = db_fetch_assoc($result)) { - printf("", $line["id"], $line["description"]); + printf("", $line["id"], __($line["description"])); } print ""; diff --git a/modules/pref-feed-browser.php b/modules/pref-feed-browser.php index 104dd93f5..4759a5f6a 100644 --- a/modules/pref-feed-browser.php +++ b/modules/pref-feed-browser.php @@ -2,7 +2,7 @@ function module_pref_feed_browser($link) { if (!ENABLE_FEED_BROWSER) { - print "Feed browser is administratively disabled."; + print __("Feed browser is administratively disabled."); return; } @@ -12,7 +12,7 @@ $id = db_escape_string($_GET["id"]); print "
"; - print "Feed information:"; + print "".__('Feed information:').""; print "
"; $result = db_query($link, "SELECT @@ -48,7 +48,7 @@ if (db_num_rows($result) > 0) { - print "Last headlines:
"; + print "".__('Last headlines:')."
"; print "
"; print "
    "; @@ -149,7 +149,7 @@ } if ($feedctr == 0) { - print "
  • No feeds found to subscribe.
  • "; + print "
  • ".__('No feeds found to subscribe.')."
  • "; } print "
"; diff --git a/modules/pref-filters.php b/modules/pref-filters.php index 3c0f6129c..e043323e0 100644 --- a/modules/pref-filters.php +++ b/modules/pref-filters.php @@ -37,7 +37,7 @@ while ($line = db_fetch_assoc($result)) { //array_push($filter_types, $line["description"]); - $filter_types[$line["id"]] = $line["description"]; + $filter_types[$line["id"]] = __($line["description"]); } print "
"; @@ -69,7 +69,7 @@ while ($line = db_fetch_assoc($result)) { $is_sel = ($line["id"] == $action_id) ? "selected" : ""; - printf("", $line["id"], $line["description"]); + printf("", $line["id"], __($line["description"])); } print ""; diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 036a7607f..7ade0391b 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -56,7 +56,7 @@ return; - } else if ($subop == "Save configuration") { + } else if ($subop == __("Save configuration")) { $_SESSION["prefs_op_result"] = "save-config"; @@ -124,7 +124,7 @@ return; - } else if ($subop == "Reset to defaults") { + } else if ($subop == __("Reset to defaults")) { $_SESSION["prefs_op_result"] = "reset-to-defaults"; @@ -282,7 +282,7 @@ print ""; print ""; print ""; print "

".__("Themes")."

".__("Select theme")."
"; print ""; + print ""; print "

"; + value=\"".__('Change theme')."\">"; print ""; } @@ -332,7 +333,7 @@ $active_section = $line["section_name"]; - print "

$active_section

".__($active_section)."

OptionValue
" . $line["short_desc"]; + print "" . __($line["short_desc"]); - if ($help_text) print "
$help_text
"; + if ($help_text) print "
".__($help_text)."
"; print "