r1048: Converting all $lang->string() stuff to use the gettext call
[bugdar.git] / includes / settings.php
1 <?php
2 /*=====================================================================*\
3 || ###################################################################
4 || # Bugdar [#]version[#]
5 || # Copyright ©2002-[#]year[#] Blue Static
6 || #
7 || # This program is free software; you can redistribute it and/or modify
8 || # it under the terms of the GNU General Public License as published by
9 || # the Free Software Foundation; version [#]gpl[#] of the License.
10 || #
11 || # This program is distributed in the hope that it will be useful, but
12 || # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 || # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 || # more details.
15 || #
16 || # You should have received a copy of the GNU General Public License along
17 || # with this program; if not, write to the Free Software Foundation, Inc.,
18 || # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
19 || ###################################################################
20 \*=====================================================================*/
21
22 /*--------------------------------------------------------------------*\
23 | ********************** A NOTE ABOUT THIS FILE ********************** |
24 +----------------------------------------------------------------------+
25 | Do not touch any of the values in this file. Doing so may make it |
26 | impossible for you to make adjustments to the system. This file has |
27 | all of the setting information used for installs, upgrades, and any |
28 | changes made in the admin control panel to various settinsg. |
29 \*--------------------------------------------------------------------*/
30
31 /*
32 VARNAME => array(CODE, DEFAULT, VOLATILE, NAME, DESCRIPTION); <-- sets up a setting
33 */
34
35 require_once('./includes/class_sort.php');
36
37 // ###################################################################
38
39 $settings = array(
40 'general' => array(
41 ':lang' => _('General Options'),
42
43 'allownewreg' => array('yesno', 1, false, _('Allow New Registrations'), _('If this is set to <em>yes</em>, then new users will be allowed to register.')),
44 'verifyemail' => array('yesno', 0, false, _('Require Activation Email'), _('Setting this to yes will force all new users to verify their account with an email activation link.')),
45 'moderatenewusers' => array('yesno', 0, false, _('Moderate New Users'), _('All new users will have to be approved by the administration before being able to have normal user rights.')),
46 'sendwelcomemail' => array('yesno', 1, false, _('Send New Use Welcome Email'), _('Setting this option to <em>yes</em> will send each new verified user a welcome email.')),
47 'webmasteremail' => array('textbox', '', false, _('Webmaster Email Address'), _('The email address from which emails will be sent out.')),
48 'trackertitle' => array('textbox', '', false, _('Tracker Title'), _('The global name of the bug tracker. Example: Blue Static Bug Tracker')),
49 'trackerurl' => array('textbox', '', false, _('Tracker Base URL'), _('The base URL of the tracker. This is used when creating external links to the tracker. <strong>Be sure that this does not end in a trailing slash (&quot;/&quot;).</strong><br />Example: http://www.bluestatic.org/bugs')),
50 'dateformat' => array('textbox', 'F j, Y h:i:s A', false, _('Date Format'), _('Set the date format used for bug report and comment information. This is based on PHP\'s date() function.')),
51 'defaultlanguage' => array('" . construct_option_select("setting[defaultlanguage]", $bugsys->datastore["language"], $bugsys->options["defaultlanguage"], "languageid", "title") . "', 1, false, _('Default Language'), _('You can set the default language that all new users (and guests) will use.')),
52 'syndicateditems' => array('textbox', 10, false, _('Number of Syndicated Items'), _('The number of bugs to be syndicated at any one time by the Atom XML feed.'))
53 ),
54
55 'reporting' => array(
56 ':lang' => _('Bug Reporting Options'),
57
58 'allowhtml' => array('yesno', 0, false, _('Allow HTML in Bug Reports'), _('Set this to <em>yes</em> if you want to allow users to post raw HTML in their bug reports. This is <strong>very</strong> dangerous and it is not recommended.')),
59 'defaultseverity' => array('" . construct_option_select("setting[defaultseverity]", $bugsys->datastore["severity"], $bugsys->options["defaultseverity"], "severityid", "severity") . "', 2, false, _('Default Severity'), _('The default severity that is selected when creating a new bug report.')),
60 'defaultpriority' => array('" . construct_option_select("setting[defaultpriority]", $bugsys->datastore["priority"], $bugsys->options["defaultpriority"], "priorityid", "priority") . "', 3, false, _('Default Priority'), _('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.')),
61 'defaultstatus' => array('" . construct_option_select("setting[defaultstatus]", $bugsys->datastore["status"], $bugsys->options["defaultstatus"], "statusid", "status") . "', 1, false, _('Default Status'), _('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.')),
62 'defaultresolve' => array('" . construct_option_select("setting[defaultresolve]", $bugsys->datastore["resolution"], $bugsys->options["defaultresolve"], "resolutionid", "resolution") . "', 1, false, _('Default Resolution'), _('This is the default bug resolution. If a user is not able to change this field, setting this will act as the default value.')),
63 'defaultassign' => array('" . construct_option_select("setting[defaultassign]", $bugsys->datastore["assignto"], $bugsys->options["defaultassign"], "userid", "displayname", 0) . "', 0, false, _('Default Bug Assignment'), _('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 <em>Not Selected</em>.')),
64 'defaultcomment' => array('textarea', '', false, _('Default Comment Text'), _('If you wish to set a template for entering the initial comment of a bug report, then you may specify this here. However, the template will only take effect on the initial report/comment. Note: the template cannot be forced on the user as there is no way to validate it.'))
65 ),
66
67 'display' => array(
68 ':lang' => _('Bug Listing Display Options'),
69
70 'hidestatuses' => array('" . construct_option_select("setting[hidestatuses]", $bugsys->datastore["status"], $bugsys->options["hidestatuses"], "statusid", "status", 0, true) . "', '0', false, _('Hide Statuses on Bug Listings'), _('Here you can specify which statuses to hide on the bug list displays. Users have options in their controls to change this from these values, and this does not affect searches or the favourites list.')),
71 'defaultsortkey' => array('" . construct_option_select("setting[defaultsortkey]", ListSorter::fetch_by_text(false), $bugsys->options["defaultsortkey"]) . "', 'lastpost', false, _('Default Sort Column'), _('Select the column to sort bugs by on listings. This is only a default setting which users can override in their preferences.')),
72 'defaultsortas' => array('" . construct_option_select("setting[defaultsortas]", ListSorter::fetch_as_text(false), $bugsys->options["defaultsortas"]) . "', 'desc', false, _('Default Sort Direction'), _('Specify the default direction to sort bugs in the selected column. This works with and follows the same rules as the Sort Column.'))
73 ),
74
75 'pagination' => array(
76 ':lang' => _('Pagination Options'),
77
78 'defaultpp' => array('textbox', 20, false, _('Default Per-Page Amount'), _('The number of items (e.g. bugs) to be displayed on a page by default. The user will have the option of over-riding these values.')),
79 'maxpp' => array('textbox', 100, false, _('Maximum Per-Page Value'), _('To prevent your server from experiencing load problems, set the maximum per page limit. Specifying a value here will make sure any user-entered value will not be higher than this, preventing server load problems.')),
80 'pagelinks' => array('textbox', 3, false, _('Number of Page Links'), _('The number of pages that will appear in the page navigation system on either side of the current page. Set this to 0 to display all pages.'))
81 ),
82
83 'untouchables' => array(
84 ':lang' => _('Untouchables'),
85
86 'trackerversion' => array('textbox', '[#]version[#]', true, _('Tracker Version Number'), _('Do not touch this!'))
87 )
88 );
89
90 /*=====================================================================*\
91 || ###################################################################
92 || # $HeadURL$
93 || # $Id$
94 || ###################################################################
95 \*=====================================================================*/
96 ?>