APPLICATION WARNING #300: String '___' not found

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
omegand
Posts: 5
Joined: 03 Dec 2007, 14:00

APPLICATION WARNING #300: String '___' not found

Post 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!
Attachments
Change_Status_String_Error.jpg
Change_Status_String_Error.jpg (48.29 KiB) Viewed 8161 times
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

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

Post by vboctor »

You need to define $s_<missing string here> in your custom strings file.
Migrate your MantisBT to the MantisHub Cloud
omegand
Posts: 5
Joined: 03 Dec 2007, 14:00

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

Post 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.
omegand
Posts: 5
Joined: 03 Dec 2007, 14:00

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

Post 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';}
?>
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

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

Post 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?
Migrate your MantisBT to the MantisHub Cloud
omegand
Posts: 5
Joined: 03 Dec 2007, 14:00

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

Post 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.
vboctor
Site Admin
Posts: 1304
Joined: 13 Feb 2005, 22:11
Location: Redmond, Washington
Contact:

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

Post 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.
Migrate your MantisBT to the MantisHub Cloud
omegand
Posts: 5
Joined: 03 Dec 2007, 14:00

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

Post by omegand »

Attached is our custom_strings_inc.php file which is in the ROOT directory of Mantis.
Attachments
custom_strings_inc.jpg
custom_strings_inc.jpg (35.98 KiB) Viewed 8043 times
Post Reply