Page 1 of 1

custom_strings_inc Problem

Posted: 29 Apr 2013, 20:47
by bgagan
Hi,

Just to let you know I've spent 3 hours searching for the solution. In Admin Guide, On Forum, On Google and elsewhere.. nothing seems to be working. Anyways, Now the Problem:
I want to Limit the status of Severity from defaults to just 3. That is - "Minor", "Major" and "New Feature"
MantisBT Version 1.2.15
Schema Version 183

custom_strings_inc.php - in Site Path

Code: Select all

switch( $g_active_language ){
	
	case 'english':
		$g_severity_enum_string	= '50:mineur,60:majeur,90:nouveauté'; 
		break;
	default: 		# english
		$g_severity_enum_string	= '50:Minor,60:Major,90:FUKC'; 
		break;
}
config_inc.php - in Site Path (Skipped the email and the database part of the file)

Code: Select all

# --- Default Language ---
$g_default_language	= 'english';

# --- Anonymous Access / Signup ---
$g_allow_signup			= OFF;
$g_allow_anonymous_login	= OFF;
$g_anonymous_account		= '';
$g_max_lost_password_in_progress_count = 3;	# Max. attempts to recover lost password

$g_enable_profiles = OFF; 

# --- MantisBT Display Settings ---
$g_status_legend_position	= STATUS_LEGEND_POSITION_BOTH;

# Custom Severities
$g_severity_enum_string		= '50:minor,60:major,90:newfeature';
custom_constants_inc.php - in Core Path

Code: Select all

# severity
define( 'NEWFEATURE', 90 );



1. I've tried moving the files from site path to core path and vice versa. Nothing seems to effect.
2. I've specifically set the language to English, just to see if its' taking the default case or the english case from custom_strings_inc.php
3. I think, it doesn't see the custom_strings_inc.php

...Awaiting help. Lot of customization stuck due to this. :|

Re: custom_strings_inc Problem

Posted: 30 Apr 2013, 08:02
by Lapinkiller
Hello

In custom strings you have to use this :

Code: Select all

$s_severity_enum_string = '10:fonctionnalité,20:simple,30:texte,40:cosmétique,70:important/majeure';
and not $g_severity_enum_string ;)

Re: custom_strings_inc Problem

Posted: 30 Apr 2013, 18:49
by bgagan
and it worked like charm... :roll:
just that nasty string... $s
Lapinkiller wrote:Hello

In custom strings you have to use this :

Code: Select all

$s_severity_enum_string = '10:fonctionnalité,20:simple,30:texte,40:cosmétique,70:important/majeure';
and not $g_severity_enum_string ;)