Overriding data in 'strings_english.txt'

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
rhora
Posts: 3
Joined: 14 Jun 2005, 21:21

Overriding data in 'strings_english.txt'

Post by rhora »

Hi,

in strings_english.txt the variable
$s_severity_enum_string = '10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';

I modified it so that it equals '0:unsorted,10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block';
adding the '0:unsorted' option.

when I do a "lang_get('severity_enum_string')" it shows my changes with all 9 values, however "$GLOBALS['g_severity_enum_string']" still shows only the original 8.

How do you update it so that the GLOBALS are updated as well??

Thanks!

-r
thraxisp
Developer
Posts: 509
Joined: 14 Feb 2005, 03:38
Location: Ottawa, Canada
Contact:

Post by thraxisp »

Changing the severity values is similar to the status values as defined in http://manual.mantisbt.org/manual.custo ... values.php .


1) Define the language strings required. This may need to be defined in several languages.
In a new file custom_strings_inc.php in the main mantisbt directory:

Code: Select all

<?php
  $s_severity_enum_string =
    '0:unsorted,10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block'';
?>
2) Define any configurations required.
In the existing file config_inc.php in the main mantisbt directory:

Code: Select all

<?php
  $g_severity_enum_string =
    '0:unsorted,10:feature,20:trivial,30:text,40:tweak,50:minor,60:major,70:crash,80:block'';
?>
rhora
Posts: 3
Joined: 14 Jun 2005, 21:21

Thanks!!!!

Post by rhora »

Much appreciated.

-r
Post Reply