Page 1 of 1

Overriding data in 'strings_english.txt'

Posted: 20 Jun 2005, 23:42
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

Posted: 21 Jun 2005, 00:51
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'';
?>

Thanks!!!!

Posted: 21 Jun 2005, 15:23
by rhora
Much appreciated.

-r