From b09cc8bd90531f411854cb1605b76c52bf32b8dc Mon Sep 17 00:00:00 2001 From: rboren Date: Sun, 25 Apr 2004 20:04:40 +0000 Subject: [PATCH] Mark strings for translation. git-svn-id: http://svn.automattic.com/wordpress/trunk@1171 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/options.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/wp-admin/options.php b/wp-admin/options.php index 4499b12590..a33ef6eedf 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -87,7 +87,7 @@ $nonbools = array('default_ping_status', 'default_comment_status'); $result = $wpdb->query($query); //if( in_array($option->option_name, $nonbools)) die('boo'.$query); if (!$result) { - $db_errors .= " SQL error while saving $this_name. "; + $db_errors .= sprintf(__(" SQL error while saving %s. "), $this_name); } else { ++$any_changed; } @@ -99,12 +99,12 @@ $nonbools = array('default_ping_status', 'default_comment_status'); } // end if options if ($any_changed) { - $message = $any_changed . ' setting(s) saved... '; + $message = sprintf(__('%d setting(s) saved... '), $any_changed); } if (($dB_errors != '') || ($validation_message != '')) { if ($message != '') { - $message .= '
and '; + $message .= '
'; } $message .= $dB_errors . '
' . $validation_message; } @@ -117,7 +117,7 @@ default: $standalone = 0; include_once("./admin-header.php"); if ($user_level <= 6) { - die("You have do not have sufficient permissions to edit the options for this blog."); + die(__("You have do not have sufficient permissions to edit the options for this blog.")); } ?> @@ -133,13 +133,13 @@ if ($non_was_selected) { // no group pre-selected, display opening page echo("
group_id}\" title=\"{$option_group->group_desc}\">{$option_group->group_name}
\n"); $current_long_desc = $option_group->group_longdesc; if ($current_long_desc == '') { - $current_long_desc = 'No help for this group of options.'; + $current_long_desc = __('No help for this group of options.'); } echo("
{$option_group->group_desc}: $current_long_desc
\n"); } // end for each group ?> -
Permalinks
-
Permanent link configuration
+
+
  - + @@ -194,4 +194,4 @@ break; } // end switch include('admin-footer.php'); -?> \ No newline at end of file +?>