Page 1 of 1

APPLICATION WARNING #300: String '___' not found

Posted: 09 Apr 2008, 19:51
by omegand
Hello, we are getting this warning (please see attached) on two of our customized statuses in the Change Status window? We are using Mantis v1.0.8. Any help greatly appreciated.

Thanks!

Re: APPLICATION WARNING #300: String '___' not found

Posted: 09 Apr 2008, 21:42
by vboctor
You need to define $s_<missing string here> in your custom strings file.

Re: APPLICATION WARNING #300: String '___' not found

Posted: 10 Apr 2008, 12:56
by omegand
Thanks for responding vboctor. I have entered the strings in the strings_english.txt file under # New Strings and under the page -> # bug_change_status_page.php. Here are the strings I entered:
  1. $s_QA_Approved_bug_title = 'QA Approve';
  2. $s_QA_Approved_bug_button = 'Approve Issue';
First, is this the correct file to enter these strings? If not, could you please tell which file and where to place the strings? Forgive the hand holding here...I'm a QA Manager NOT a developer :wink:

Many thanks up front.

Re: APPLICATION WARNING #300: String '___' not found

Posted: 10 Apr 2008, 13:03
by omegand
vboctor,

Here is our custom_strings_inc file where I placed the strings QA_*. Is this correct?

<?php

if ( lang_get_current() == 'english' ) { $s_category_enum_string = '10:HDW,20:SFW'; }
if ( lang_get_current() == 'english' ) { $s_severity_enum_string = '10:feature,20:cosmetic,30:minor,40:major,50:severe'; }
if ( lang_get_current() == 'english' ) { $s_priority_enum_string = '10:low,20:normal,30:high,40:showstopper';}


if ( lang_get_current() == 'english' ) {
$s_status_enum_string = '10:new,20:acknowledged,30:assigned,40:resolved,50:QA_Approved,80:QA_Rejected,90:closed';
$s_to_be_tested_bug_button = "Issue Ready to Test";
$s_to_be_tested_bug_title = "Set Issue Ready to Test";
$s_email_notification_title_for_status_bug_to_be_tested = "The following issue is ready for QA Approval.";
$s_QA_Approved_bug_title = 'QA Approve';
$s_QA_Approved_bug_button = 'Approve Issue';}
?>

Re: APPLICATION WARNING #300: String '___' not found

Posted: 11 Apr 2008, 20:24
by vboctor
Remove the if ( lang_get_current() == 'english' ) since you only have one translation. What is the problem you are currently having? Are you logged in with English language?

Re: APPLICATION WARNING #300: String '___' not found

Posted: 14 Apr 2008, 13:01
by omegand
vboctor,

We have added two custom statuses. One is "QA Approved" the other "QA Rejected". On either of these, when selecting "Change Status" on the bug page, the Change Status window comes up (see screen shot above) with the listed string errors. It seems the page title and button title need naming but that's as far as I get. All help greatly appreciated. :)

PS. Our only language is English.

Re: APPLICATION WARNING #300: String '___' not found

Posted: 22 Apr 2008, 06:12
by vboctor
Did you name the file "custom_strings_inc.php" and place it in Mantis root folder? i.e. same folder as config_inc.php.

Re: APPLICATION WARNING #300: String '___' not found

Posted: 22 Apr 2008, 13:54
by omegand
Attached is our custom_strings_inc.php file which is in the ROOT directory of Mantis.