custom_strings_inc Problem

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
bgagan

custom_strings_inc Problem

Post 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. :|
Attachments
Screen Shot
Screen Shot
Capture.PNG (3.55 KiB) Viewed 3808 times
Lapinkiller
Posts: 408
Joined: 28 Jan 2011, 18:47
Location: France
Contact:

Re: custom_strings_inc Problem

Post 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 ;)
Lapinkiller,
French PHP developer
New look for your mantis : http://www.mantisbt.org/forums/viewtopi ... =4&t=20055
bgagan

Re: custom_strings_inc Problem

Post 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 ;)
Post Reply