From 41a99d73c6ae0dda6a63971c65eff8d90a1ebb35 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 25 Aug 2005 05:12:41 +0000 Subject: [PATCH] r384: More localizations --- admin/autoaction.php | 4 ++-- admin/field.php | 22 +++++++++++----------- admin/global.php | 6 +++--- admin/product.php | 6 +++--- includes/adminfunctions.php | 4 ++-- 5 files changed, 21 insertions(+), 21 deletions(-) diff --git a/admin/autoaction.php b/admin/autoaction.php index ab62e71..a3edc6e 100644 --- a/admin/autoaction.php +++ b/admin/autoaction.php @@ -226,10 +226,10 @@ if ($_REQUEST['do'] == 'modify') $actions = $db->query("SELECT * FROM " . TABLE_PREFIX . "autoaction ORDER BY name ASC"); while ($action = $db->fetch_array($actions)) { - $admin->row_text($action['name'] . "\n
$action[description]
", "[" . lang::p('edit') . "] [" . lang::r('Delete') . "]"); + $admin->row_text($action['name'] . "\n
$action[description]
", "[" . lang::p('edit') . "] [" . lang::p('delete') . "]"); } - $admin->row_span('[' . lang::r('Add New Action') . ']', 'tfoot', 'center', 3); + $admin->row_span('[' . lang::p('new_auto_action') . ']', 'tfoot', 'center', 3); $admin->table_end(); $admin->page_end(); diff --git a/admin/field.php b/admin/field.php index 3de46cd..2f5b827 100644 --- a/admin/field.php +++ b/admin/field.php @@ -221,20 +221,20 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') // global fields $admin->row_span(lang::p('global_fields'), 'thead', 'center'); $admin->row_text(lang::p('field_type'), $TYPES["$type"]); - $admin->row_input(lang::r('Display Name'), 'name', $field['name']); - $admin->row_textarea(lang::r('Description'), 'description', $field['description']); - $admin->row_yesno(lang::r('Required'), 'required', $field['required']); - $admin->row_yesno(lang::r('Can Be Searched'), 'cansearch', ((isset($field['cansearch'])) ? $field['cansearch'] : true)); + $admin->row_input(lang::p('display_name'), 'name', $field['name']); + $admin->row_textarea(lang::p('description'), 'description', $field['description']); + $admin->row_yesno(lang::p('required'), 'required', $field['required']); + $admin->row_yesno(lang::p('can_be_searched'), 'cansearch', ((isset($field['cansearch'])) ? $field['cansearch'] : true)); // type-specific fields - $admin->row_span(lang::r('Type-Specific Fields'), 'thead', 'center'); + $admin->row_span(lang::p('type_specific_fields'), 'thead', 'center'); switch ($type) { case 'input_text': - $admin->row_input(lang::r('Default Value'), 'defaultvalue', $field['defaultvalue']); - $admin->row_input(lang::r('Regular Expression Match'), 'regexmatch', $field['regexmatch']); - $admin->row_input(lang::r('Maximum Length'), 'maxlength', $field['maxlength'], 2, 10); + $admin->row_input(lang::p('default_value'), 'defaultvalue', $field['defaultvalue']); + $admin->row_input(lang::p('regex_match'), 'regexmatch', $field['regexmatch']); + $admin->row_input(lang::p('max_length'), 'maxlength', $field['maxlength'], 2, 10); break; case 'input_checkbox': @@ -242,8 +242,8 @@ if ($_REQUEST['do'] == 'add' OR $_REQUEST['do'] == 'edit') break; case 'select_single': - $admin->row_textarea(lang::r('Selection Values'), 'selects', stripslashes(implode("\n", unserialize($field['selects'])))); - $admin->row_yesno(lang::r('Make the First Option Default'), 'usedefault', $field['usedefault']); + $admin->row_textarea(lang::p('selection_values'), 'selects', stripslashes(implode("\n", unserialize($field['selects'])))); + $admin->row_yesno(lang::p('make_first_option_default'), 'usedefault', $field['usedefault']); break; } @@ -273,7 +273,7 @@ if ($_REQUEST['do'] == 'modify') array( "$field[name]
$field[description]
" => 'l', "(fieldid: $field[fieldid])" => 'c', - "[" . lang::p('edit') . "] [" . lang::r('Delete') . "]" => 'c' + "[" . lang::p('edit') . "] [" . lang::p('delete') . "]" => 'c' ) ); } diff --git a/admin/global.php b/admin/global.php index 100e56e..946dcb1 100755 --- a/admin/global.php +++ b/admin/global.php @@ -19,12 +19,12 @@ require_once('./includes/functions.php'); // admin navigation $globalnav = array( - lang::r('Admin Locations') => array( + lang::p('admin_locations') => array( lang::p('home') => 'index.php', lang::p('logout') => '../login.php?do=cplogout' ), - lang::r('Options') => array( + lang::p('options') => array( lang::p('bugstrike_settings') => 'setting.php', //'Manage Languages' => 'language.php' ), @@ -35,7 +35,7 @@ $globalnav = array( lang::p('resolutions') => 'resolution.php', lang::p('severities') => 'severity.php', lang::p('statuses') => 'status.php', - lang::r('Custom Bug Fields') => 'field.php', + lang::p('custom_bug_fields') => 'field.php', lang::p('automatic_actions') => 'autoaction.php' ), diff --git a/admin/product.php b/admin/product.php index 88d54d0..04081b0 100755 --- a/admin/product.php +++ b/admin/product.php @@ -20,18 +20,18 @@ if (!can_perform('canadminversions')) function construct_option_list($type, $id, $edit, $addcomponent, $addversion, $delete, $displayorder) { - $type_display = substr_replace($type, strtoupper($type{0}), 0, 1); + $type_display = $type; $type = (($type == 'component') ? 'product' : $type); $type_action = (($type == 'version') ? 'versionid' : 'productid'); if ($edit) { - $opt .= ''; + $opt .= ''; } if ($delete) { - $opt .= ''; + $opt .= ''; } if ($addcomponent) diff --git a/includes/adminfunctions.php b/includes/adminfunctions.php index 4cfda22..6f4c04b 100755 --- a/includes/adminfunctions.php +++ b/includes/adminfunctions.php @@ -86,7 +86,7 @@ EOD; echo "
\n"; echo "\n\t
"; - echo "\n\tTracker Home"; + echo "\n\t" . lang::p('tracker_home') . ""; echo "\n\t\tNavigation: "; - echo "\n\t\t"; + echo "\n\t\t"; echo "\n\t
"; echo "\n
"; } -- 2.43.5