From: Glenn H. <thr...@lo...> - 2008-01-16 22:48:32
|
On 16-Jan-08, at 5:07 PM, Vincent DEBOUT wrote: > Glenn Henshaw a =E9crit : >> >> On 16-Jan-08, at 6:59 AM, Sundeep Pundamale wrote: >> >> >>> Vincent DEBOUT wrote: >>> >>>> Sundeep Pundamale a =E9crit : >>>> >>>>> Vincent DEBOUT wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> >>>>>> >>>>>>> I have added a new bug status to mantis: pending. I get the >>>>>>> following >>>>>>> error message "APPLICATION WARNING #300: String >>>>>>> 'pending_bug_title' not >>>>>>> found." after i did the following: >>>>>>> >>>>>>> 1) Added define( 'PENDING',60); in mantis/core/constant_inc.php >>>>>>> >>>>>>> 2) Added $g_bug_pending_status =3D PENDING and 'pending' =3D> >>>>>>> '#B09FF1' in >>>>>>> mantis/config_defaults_inc.php >>>>>>> >>>>>>> 3) Added $s_status_enum_string =3D >>>>>>> >>>>>>> '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, >>>>>>> 60:pending,80:resolved,90:closed'; >>>>>>> >>>>>>> >>>>>>> in mantis/lang/strings_english.txt >>>>>>> >>>>>> Don't do that !! (At next mantis upgrade you'll lost your =20 >>>>>> change). >>>>>> >>>>>> If you want to change a string translation use the >>>>>> custom_strings_inc.php >>>>>> file >>>>>> = (http://bugtracker.morinie.fr/mantis/dokuwiki/doku.php?id=3Dmantis:start:c= ustomization:strings_translation:change_a_string_translation >>>>>> ) >>>>>> >>>>>> >>>>>> And in this file you must add >>>>>> >>>>>> $s_pending_bug_title =3D 'Pending Issue'; // or something else. >>>>>> >>>>>> Vincent >>>>>> >>>>>> >>>>> Followed your instructions. But i still get the same error >>>>> message. Am >>>>> i missing on some thing else. >>>>> >>>> You take care about the file's name? >>>> >>> Yes the file name is correct. >>> >>> Name of the file: custom_strings_inc.php >>> >>> Content of the file: >>> >>> if ( $g_current_language =3D=3D=3D 'english' ) >>> { >>> $s_status_enum_string =3D >>> '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, >>> 60:pending,80:resolved,90:closed'; >>> } >>> >>> >>> Pending above is the new status that i added. >>> >>> >> The file should look like: >> >> if ( $g_current_language =3D=3D=3D 'english' ) >> { >> $s_status_enum_string =3D >> '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned, >> 60:pending,80:resolved,90:closed'; >> $s_pending_bug_title =3D 'Set Issue to Pending'; >> $s_email_notification_title_for_pending =3D 'The following issue has >> been set to Pending'; >> $s_closed_by_divitech_bug_button =3D 'Set Issue to Pending'; >> >> } >> >> > > If a user selects french as language he'll see a lot of warning/=20 > error messages. So il you use an if() statement, you must have an =20 > else one. > > By the way how about email notification on the status change on this =20= > new state? Good point. Where I've customized this, I have made the changes default to =20 english like: $s_foo =3D 'bar'; if ($g_current_language =3D=3D=3D 'french') { $s_foo =3D 'barre'; } --=20 Glenn Henshaw Logical Outcome Ltd. e: thr...@lo... w: www.logicaloutcome.ca Mantis Developer and User |