From 94e44a02d5c2f268df222bf307d8dfb38f50bf35 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 14 May 2005 22:35:51 +0000 Subject: [PATCH] r138: Updated en.php and language importer [lang_file_to_db.php] in preparation for Beta 1. --- docs/en.php | 168 ++++++++++++++++++++++++++++++++------- docs/lang_file_to_db.php | 6 +- 2 files changed, 143 insertions(+), 31 deletions(-) diff --git a/docs/en.php b/docs/en.php index 2034129..8d85696 100755 --- a/docs/en.php +++ b/docs/en.php @@ -20,40 +20,150 @@ $cfg = array( // Phrase text $language = array( + 'action' => 'Action', + 'add_component' => 'Add Component', + 'add_new_priority' => 'Add New Priority', + 'add_new_product' => 'Add New Product', + 'add_new_resolution' => 'Add New Resolution', + 'add_new_severity' => 'Add New Severity', + 'add_new_status' => 'Add New Status', + 'add_new_usergroup' => 'Add New Usergroup', + 'add_new_version' => 'Add New Version', + 'add_product' => 'Add Product', + 'add_version' => 'Add Version', + 'administration_x' => 'Administration - %1$s', + 'bugstrike_login' => 'BugStrike Login', + 'cant_delete_default_usergroup' => 'You can\'t delete a default usergroup.', + 'confirm' => 'Confirm', + 'confirm_delete_priority' => 'Are you sure you want to delete this priority? Doing so will revert all bugs to the default priority (which is set in the options panel)?', + 'confirm_delete_product' => 'Are you sure you want to delete this product and all of it\'s sub-versions and components (as well as any bugs contained within those groups)?', + 'confirm_delete_resolution' => 'Are you sure you want to delete this resolution? Doing so will revert all bugs to the default resolution (which is set in the options panel)?', + 'confirm_delete_severity' => 'Are you sure you want to delete this severity? Doing so will revert all bugs to the default severity (which is set in the options panel)?', + 'confirm_delete_status' => 'Are you sure you want to delete this status? Doing so will revert all bugs to the default status (which is set in the options panel)?', + 'confirm_delete_usergroup' => 'Are you sure you want to delete this usergroup? All users in this group will be set back to the default registered usergroup (id: 2).', + 'confirm_delete_version' => 'Are you sure you want to delete this version? Doing so will do x to the bugs with this version.', + 'delete_wraplink' => '[Delete]', + 'edit_priority' => 'Edit Priority', + 'edit_priority_title' => 'Edit Priority - %1$s (priorityid: %2$s)', + 'edit_product' => 'Edit Product', + 'edit_product_title' => 'Edit Product - %1$s', + 'edit_resolution' => 'Edit Resolution', + 'edit_resolution_title' => 'Edit Resolution - %1$s (resolutionid: %2$s)', + 'edit_severity' => 'Edit Severity', + 'edit_severity_title' => 'Edit Severity - %1$s (severityid: %2$s)', + 'edit_status' => 'Edit Status', + 'edit_status_title' => 'Edit Status - %1$s (statusid: %2$s)', + 'edit_usergroup' => 'Edit Usergroup', + 'edit_version' => 'Edit Version', + 'edit_version_title' => 'Edit Version - %1$s', + 'edit_wraplink' => '[Edit]', + 'email' => 'Email', + 'error' => 'Error', + 'fill_in_version_number' => 'Please fill in a version number.', + 'global_versions' => 'Global Versions', + 'go' => 'Go', + 'go_back_and_fill_both_fields' => 'Please go back and fill in both fields.', + 'guest' => 'Guest', + 'invalid_admin_session_terminated' => 'Invalid admin session has been terminated.', + 'login' => 'Login', + 'new_priority' => 'New Priority', + 'new_resolution' => 'New Resolution', + 'new_severity' => 'New Severity', + 'new_status' => 'New Status', + 'new_usergroup' => 'New Usergroup', + 'no' => 'No', + 'number_of_users' => 'Number of Users', + 'password' => 'Password', + 'permissions_canadminbugs' => 'Can Administer Bug Reports', + 'permissions_canadminfields' => 'Can Administer Additional Bug Fields', + 'permissions_canadmingroups' => 'Can Administer Usergroups', + 'permissions_canadminpanel' => 'Can Access Control Panel', + 'permissions_canadmintools' => 'Can Administer Settings / Maintenance Tools', + 'permissions_canadminusers' => 'Can Administer Users', + 'permissions_canadminversions' => 'Can Administer Products / Components / Versions', + 'permissions_canassign' => 'Can Assign Bugs', + 'permissions_canbeassignedto' => 'Can Be Assigned Bugs', + 'permissions_canchangestatus' => 'Can Change Status', + 'permissions_caneditattach' => 'Can Manage All Attachments', + 'permissions_caneditinfo' => 'Can Edit Bug Information', + 'permissions_caneditothers' => 'Can Edit Others\' Bugs', + 'permissions_caneditown' => 'Can Edit Own Bugs', + 'permissions_cangetattach' => 'Can View Attachments', + 'permissions_canpostcomments' => 'Can Post Comments', + 'permissions_canputattach' => 'Can Upload/Edit Own Attachments', + 'permissions_cansearch' => 'Can Search Bugs', + 'permissions_cansubmitbugs' => 'Can Submit Bugs', + 'permissions_cansubscribe' => 'Can Subscribe to Bugs', + 'permissions_canviewbugs' => 'Can View Bugs', + 'permissions_canvote' => 'Can Vote on Polls', + 'permissions_group_admin' => 'Administrator Permissions', + 'permissions_group_general' => 'General Permissions', + 'permissions_group_moderation' => 'Moderation/Managment Permissions', + 'permissions_group_posting' => 'Posting/Submitting Permissions', + 'priority_display_order' => 'Display Order
The order in which the priorities are displayed. The higher the number, the lower down in the list it is.
', + 'priority_manager' => 'Priority Manager', + 'priority_title' => 'Priority Title
The title of this priority flag (eg: `Slated for Development` or `Address Now`)
', + 'products_and_versions' => 'Products and Versions', + 'products_versions' => 'Products / Versions', + 'product_description' => 'Description
A short description of this product.
', + 'product_display_order' => 'Display Order
The order in which the products are displayed.
', + 'product_shortname' => 'Short Name
The name that can be used to submit email reports. This should be unique.
', + 'product_title' => 'Title', + 'redirect' => 'Redirect', + 'reset' => 'Reset', + 'resolution_display_order' => 'Display Order
The order in which the resolutions are displayed. The higher the number, the lower down in the list it is.
', + 'resolution_manager' => 'Resolution Manager', + 'resolution_title' => 'Resolution Title
The title of this resolution flag (eg: `Fixed` or `Bogus`)
', + 'save_display_order' => 'Save Display Order', 'settinggroup_general' => 'General Options', - 'setting_allownewreg_title' => 'Allow New Registrations', - 'setting_allownewreg_desc' => 'Can unregistered users be allowed to create accounts.', - 'setting_verifyemail_title' => 'Require Activation Email', - 'setting_verifyemail_desc' => 'Setting this to yes will force all new users to verify their account with an email activation link.', - 'setting_moderatenewusers_title' => 'Moderate New Users', - 'setting_moderatenewusers_desc' => 'All new users will have to be approved by the administration before being able to have normal user rights.', - 'setting_webmasteremail_title' => 'Webmaster Email Address', - 'setting_webmasteremail_desc' => 'The email address from which emails will be sent out.', - 'setting_trackertitle_title' => 'Tracker Title', - 'setting_trackertitle_desc' => 'The global name of the bug tracker. Example: Iris Studios Bug Tracker', - 'settinggroup_untouchables' => 'Untouchables', - 'setting_trackerversion_title' => 'Tracker Version Number', - 'setting_trackerversion_desc' => 'Do not touch this!', - 'setting_sendwelcomemail_title' => 'Send New Use Welcome Email', - 'setting_sendwelcomemail_desc' => 'Setting this option to yes will send all new users, after they\'ve been verified, a welcoming email.', - 'setting_usejsversions_title' => 'Use JavaScript Version Selects', - 'setting_usejsversions_desc' => 'Setting this option to yes will allow all the version/component selection to be done on one page. This requires JavaScript, and if you have a lot of versions or components, it may take a while to load so you should set this to no. For most cases, yes should be fine.', 'settinggroup_reporting' => 'Bug Reporting Options', - 'setting_allowhtml_title' => 'Allow HTML in Bug Reports', + 'settinggroup_untouchables' => 'Untouchables', 'setting_allowhtml_desc' => 'Set this to yes if you want to allow users to post raw HTML in their bug reports. This is very dangerous and it is not recommended.', - 'setting_defaultseverity_title' => 'Default Severity', - 'setting_defaultseverity_desc' => 'The default severity that is selected when creating a new bug report.', - 'setting_defaultpriority_title' => 'Default Priority', + 'setting_allowhtml_title' => 'Allow HTML in Bug Reports', + 'setting_allownewreg_desc' => 'Can unregistered users be allowed to create accounts.', + 'setting_allownewreg_title' => 'Allow New Registrations', + 'setting_dateformat_desc' => 'Set the date format used for bug report and comment information. This is based on PHP\'s date() function.', + 'setting_dateformat_title' => 'Date Format', + 'setting_defaultassign_desc' => 'This is the default developer new bugs will be assigned to. If a user does not have permisssion to assign bugs, this will be the default. If you don\'t want any default assignment, leave this as Not Selected.', + 'setting_defaultassign_title' => 'Default Bug Assignment', 'setting_defaultpriority_desc' => 'The default priority that will be selected when creating a new bug report. Depending on your permission setup, the user may not be able to set this in a new report so this will act as the value.', - 'setting_defaultstatus_title' => 'Default Status', - 'setting_defaultstatus_desc' => 'The default default that is selected when creating a new bug report. If a user can not assign a status, this will be the one inserted into the database.', - 'setting_defaultresolve_title' => 'Default Resolution', + 'setting_defaultpriority_title' => 'Default Priority', 'setting_defaultresolve_desc' => 'This is the default bug resolution. If a user is not able to change this field, setting this will act as the default value.', - 'setting_defaultassign_title' => 'Default Bug Assignment', - 'setting_defaultassign_desc' => 'This is the default developer new bugs will be assigned to. If a user does not have permisssion to assign bugs, this will be the default. If you don\'t want any default assignment, leave this as Not Selected.', - 'setting_dateformat_title' => 'Date Format', - 'setting_dateformat_desc' => 'Set the date format used for bug report and comment information. This is based on PHP\'s date() function.', - 'guest' => 'Guest' + 'setting_defaultresolve_title' => 'Default Resolution', + 'setting_defaultseverity_desc' => 'The default severity that is selected when creating a new bug report.', + 'setting_defaultseverity_title' => 'Default Severity', + 'setting_defaultstatus_desc' => 'The default default that is selected when creating a new bug report. If a user can not assign a status, this will be the one inserted into the database.', + 'setting_defaultstatus_title' => 'Default Status', + 'setting_moderatenewusers_desc' => 'All new users will have to be approved by the administration before being able to have normal user rights.', + 'setting_moderatenewusers_title' => 'Moderate New Users', + 'setting_sendwelcomemail_desc' => 'Setting this option to yes will send all new users, after they\'ve been verified, a welcoming email.', + 'setting_sendwelcomemail_title' => 'Send New Use Welcome Email', + 'setting_trackertitle_desc' => 'The global name of the bug tracker. Example: Iris Studios Bug Tracker', + 'setting_trackertitle_title' => 'Tracker Title', + 'setting_trackerversion_desc' => 'Do not touch this!', + 'setting_trackerversion_title' => 'Tracker Version Number', + 'setting_verifyemail_desc' => 'Setting this to yes will force all new users to verify their account with an email activation link.', + 'setting_verifyemail_title' => 'Require Activation Email', + 'setting_webmasteremail_desc' => 'The email address from which emails will be sent out.', + 'setting_webmasteremail_title' => 'Webmaster Email Address', + 'severity_display_order' => 'Display Order
The order in which the severities are displayed. The higher the number, the lower down in the list it is.
', + 'severity_title' => 'Severity Title
The title of this severity flag (eg: `Major` or `Critical`)
', + 'status_color' => 'Status Colour
The colour of the status. This will be displayed on bug listings page to make viewing easier. Note: you must enter the # sign if you are using HEX values.
', + 'status_display_order' => 'Display Order
The order in which the statuses ar displayed.
', + 'status_title' => 'Status Title
The title of this status flag (eg: `Confirmed` or `Closed (Fixed)`)
', + 'submit' => 'Submit', + 'usergroup' => 'Usergroup', + 'usergroup_close_markup' => 'Closing Tag Markup
Place all closed HTML tags that will close any open HTML tags entered above.
', + 'usergroup_details' => 'Usergroup Details', + 'usergroup_display_title' => 'Display Title
This is the title that others will be able to see when comments are posted.
', + 'usergroup_manager' => 'Usergroup Manager', + 'usergroup_open_markup' => 'Opening Tag Markup
Place all open HTML tags here that will be wrapped around the username.
', + 'usergroup_permission_settings' => 'Permission Settings', + 'usergroup_title' => 'Usergroup Title', + 'version_display_order' => 'Display Order
The order in which the versions are displayed.
', + 'version_title' => 'Version Number
This is the version string for this product.
', + 'wait_to_be_redirected' => 'Please wait to be redirected. If you are not redirected in a few seconds, click here.', + 'yes' => 'Yes' ); /*=====================================================================*\ diff --git a/docs/lang_file_to_db.php b/docs/lang_file_to_db.php index a393eed..b4dc338 100644 --- a/docs/lang_file_to_db.php +++ b/docs/lang_file_to_db.php @@ -7,8 +7,10 @@ chdir('./../'); require_once('./global.php'); +$db->query("TRUNCATE TABLE " . TABLE_PREFIX . "phrase"); + $sql = " - REPLACE INTO " . TABLE_PREFIX . "phrase + INSERT INTO " . TABLE_PREFIX . "phrase (varname, phrasetext, imported) VALUES"; @@ -18,7 +20,7 @@ require('./docs/en.php'); foreach ($language AS $varname => $phrase) { $sqlbits[] = " - ('" . addslasheslike($varname) . "', '" . addslasheslike($phrase) . "', " . time() . ")"; + ('" . $bugsys->escape($varname) . "', '" . $bugsys->escape($phrase) . "', " . time() . ")"; } $sql .= implode(',', $sqlbits); -- 2.43.5