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!
APPLICATION WARNING #300: String '___' not found
Moderators: Developer, Contributor
APPLICATION WARNING #300: String '___' not found
- Attachments
-
- Change_Status_String_Error.jpg (48.29 KiB) Viewed 8158 times
Re: APPLICATION WARNING #300: String '___' not found
You need to define $s_<missing string here> in your custom strings file.
Migrate your MantisBT to the MantisHub Cloud
Re: APPLICATION WARNING #300: String '___' not found
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:
Many thanks up front.
- $s_QA_Approved_bug_title = 'QA Approve';
- $s_QA_Approved_bug_button = 'Approve Issue';
Many thanks up front.
Re: APPLICATION WARNING #300: String '___' not found
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';}
?>
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
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
Re: APPLICATION WARNING #300: String '___' not found
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.
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
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
Re: APPLICATION WARNING #300: String '___' not found
Attached is our custom_strings_inc.php file which is in the ROOT directory of Mantis.
- Attachments
-
- custom_strings_inc.jpg (35.98 KiB) Viewed 8040 times