From 21ddb398d6925af6f50df77975b23c3cfc224775 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 25 Aug 2005 05:32:19 +0000 Subject: [PATCH] r385: Localizations --- admin/autoaction.php | 20 ++++++++++---------- admin/field.php | 14 +++++++------- admin/jump.php | 2 +- admin/setting.php | 2 +- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/admin/autoaction.php b/admin/autoaction.php index a3edc6e..7bea3c0 100644 --- a/admin/autoaction.php +++ b/admin/autoaction.php @@ -49,7 +49,7 @@ if ($_REQUEST['do'] == 'delete') $admin->error(lang::p('error_invalid_id')); } - $admin->page_confirm(lang::r('Are you sure you want to delete this action?'), "autoaction.php?do=kill&actionid=$action[actionid]"); + $admin->page_confirm(lang::p('confirm_action_delete'), "autoaction.php?do=kill&actionid=$action[actionid]"); } // ################################################################### @@ -58,7 +58,7 @@ if ($_POST['do'] == 'insert' OR $_POST['do'] == 'update') { if (empty($bugsys->in['name'])) { - $admin->error(lang::r('You need to specify a name for this action.')); + $admin->error(lang::p('error_need_action_name')); } foreach ($bugsys->in['fields'] AS $key => $value) @@ -79,7 +79,7 @@ if ($_POST['do'] == 'insert' OR $_POST['do'] == 'update') if (count($deltas['custom']) < 1 AND count($deltas['builtin']) < 1) { - $admin->error(lang::r('You need to specify some fields to change.')); + $admin->error(lang::p('custom_field_error_need_field_changes')); } if ($_POST['do'] == 'insert') @@ -132,7 +132,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') $action['fields'] = unserialize($action['fieldchanges']); } - $admin->page_start(lang::r((($add) ? 'New Automatic Action' : 'Edit Auto Action'))); + $admin->page_start(lang::p((($add) ? 'new_auto_action' : 'edit_auto_action'))); $admin->form_start('autoaction.php', (($add) ? 'insert' : 'update')); @@ -142,13 +142,13 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') } $admin->table_start(); - $admin->table_head(lang::r((($add) ? 'New Automatic Action' : 'Edit Auto Action'))); + $admin->table_head(lang::p((($add) ? 'new_auto_action' : 'edit_auto_action'))); $admin->row_input(lang::p('name'), 'name', $action['name']); - $admin->row_textarea(lang::r('Description'), 'description', $action['description']); - $admin->row_textarea(lang::r('Add Comment'), 'comment', $action['comment']); + $admin->row_textarea(lang::p('description'), 'description', $action['description']); + $admin->row_textarea(lang::p('add_comment'), 'comment', $action['comment']); - $admin->row_span('Field Changes', 'thead', 'center'); + $admin->row_span(lang::p('field_changes'), 'thead', 'center'); // ------------------------------------------------------------------- // built-in fields @@ -159,10 +159,10 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') $admin->row_list(lang::p('priority'), 'fields[priority]'); construct_datastore_select('status', 'status', 'statusid', $action['fields']['builtin']['status'], true, true); - $admin->row_list(lang::r('Status'), 'fields[status]'); + $admin->row_list(lang::p('status'), 'fields[status]'); construct_datastore_select('resolution', 'resolution', 'resolutionid', $action['fields']['builtin']['resolution'], true, true); - $admin->row_list(lang::r('Resolution'), 'fields[resolution]'); + $admin->row_list(lang::p('resolution'), 'fields[resolution]'); $admin->row_span('', 'tcat', 'center'); diff --git a/admin/field.php b/admin/field.php index 2f5b827..a82f94f 100644 --- a/admin/field.php +++ b/admin/field.php @@ -45,7 +45,7 @@ if ($_REQUEST['do'] == 'kill') $db->query("ALTER TABLE " . TABLE_PREFIX . "bugvaluefill DROP field$field[fieldid]"); $db->query("OPTIMIZE TABLE " . TABLE_PREFIX . "bugvaluefill"); - $admin->redirect('field.php?do=modify', lang::r('The field has been successfully removed from the system.')); + $admin->redirect('field.php?do=modify'); } // ################################################################### @@ -58,7 +58,7 @@ if ($_REQUEST['do'] == 'delete') $admin->error(lang::p('error_invalid_id')); } - $admin->page_confirm(lang::r('Are you sure you want to delete this bug field? Doing so will remove everything for this field and it cannot be undone!'), "field.php?do=kill&fieldid=$field[fieldid]"); + $admin->page_confirm(lang::p('confirm_custom_field_delete'), "field.php?do=kill&fieldid=$field[fieldid]"); } // ################################################################### @@ -85,11 +85,11 @@ if ($_REQUEST['do'] == 'update') if (empty($bugsys->in['name'])) { - $admin->error(lang::r('You must specify a display name.')); + $admin->error(lang::p('error_need_display_name')); } if (!isset($TYPES["$type"]) AND $add) { - $admin->error(lang::r('Invalid field type specified.')); + $admin->error(lang::p('invalid_field_type')); } switch ($type) @@ -115,7 +115,7 @@ if ($_REQUEST['do'] == 'update') array_walk($selects, 'trim'); if (count($selects) < 1) { - $admin->error(lang::r('You need to specify some select values.')); + $admin->error(lang::p('custom_field_need_values')); } $extradata = "'" . $bugsys->escape(serialize($selects)) . "', " . intval($bugsys->in['usedefault']); @@ -153,7 +153,7 @@ if ($_REQUEST['do'] == 'update') ); } - $admin->redirect('field.php?do=modify', lang::r((($add) ? 'The custom bug field has been added.' : 'The bug field has been updated.'))); + $admin->redirect('field.php?do=modify', lang::p((($add) ? 'custom_field_added' : 'custom_field_updated'))); } // ################################################################### @@ -205,7 +205,7 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') { $admin->list_item($description, $name); } - $admin->row_list('Select field type', 'type', false); + $admin->row_list(lang::p('field_type'), 'type', false); $admin->row_submit(); $admin->table_end(); diff --git a/admin/jump.php b/admin/jump.php index 652f236..f87e83a 100755 --- a/admin/jump.php +++ b/admin/jump.php @@ -14,7 +14,7 @@ require_once('./global.php'); if ($bugsys->in['jumplocation'] == -1 OR !$bugsys->in['jumplocation']) { - $admin->error(lang::r('Please select a location to jump to. Your selection is invalid.')); + $admin->error(lang::p('invalid_jump_location')); } header("Location: " . $bugsys->in['jumplocation']); diff --git a/admin/setting.php b/admin/setting.php index 2dae105..6eee9a7 100755 --- a/admin/setting.php +++ b/admin/setting.php @@ -46,7 +46,7 @@ if ($_POST['do'] == 'update') if ($_REQUEST['do'] == 'modify') { - $admin->page_start(lang::r('Settings')); + $admin->page_start(lang::p('settings')); $admin->form_start('setting.php', 'update'); -- 2.22.5