config/custom_strings_inc.php), which is automatically detected and included by MantisBT code.
Note
<?php $s_CODE = STRING; $MANTIS_ERROR[ERROR_NUMBER] = STRING;
lang_get() function. Search in lang/strings_english.txt for existing codes.
constant_inc.php.
Note
custom_strings_inc.php file should only contain variable assignments and basic PHP control structures. In particular, calling MantisBT core functions in it is not recommended, as it could lead to unexpected behavior and even errors depending on context.
<?php
if( auth_is_user_authenticated() ) {
if( helper_get_current_project() == 1 ) {
$s_summary = 'Title';
}
}
Warning
lang_get_current() from the custom_strings_inc.php. Doing so will reset the active_language, causing the code to return incorrect translations if the default language is different from English. Always use the $g_active_language global variable instead.