Page 1 of 1
Status in english but default language is spanish
Posted: 22 Feb 2013, 18:33
by M@rce
Hi everybody,
In "bug_update_page.php" I view status in english, but my default language is spanish.
In config_inc I have configured:
Code: Select all
$g_status_enum_string = '10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,60:pruebas,80:resuelta,90:cerrada;100:corregida;110:subida a test';
#$g_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:testing,80:resolved,90:closed,100:corrected,110:uploaded in test';
If I selected one or another, the system always show the status options in english.
Somebody have idea what going on? Thanks

Re: Status in english but default language is spanish
Posted: 24 Feb 2013, 12:11
by atrol
Did you follow the steps described at
http://www.mantisbt.org/docs/master-1.2 ... IZE.STATUS
Especially have a look at step "3 Define the required translation strings for the new status, for each language used in the installation." how to configure custom_strings_inc.php
Re: Status in english but default language is spanish
Posted: 25 Feb 2013, 12:00
by M@rce
atrol wrote:Did you follow the steps described at
http://www.mantisbt.org/docs/master-1.2 ... IZE.STATUS
Especially have a look at step "3 Define the required translation strings for the new status, for each language used in the installation." how to configure custom_strings_inc.php
Yes, this is my code in custom_strings_inc.php:
Code: Select all
<?php
# Translation for Custom Status Code: testing
switch( $g_active_language ) {
case 'spanish':
$s_status_enum_string = '10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,60:pruebas,80:resuelta,90:cerrada,100:corregida;110:subida a test';
$s_testing_bug_title = 'Título Pruebas';
$s_testing_bug_button = 'Botón Pruebas';
$s_email_notification_title_for_status_bug_pruebas = 'notificación pruebas email';
;;
default: # english
$s_status_enum_string = '10:news,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:testing,80:resolved,90:closed,100:corrected,110:uploaded in test';
$s_testing_bug_title = 'Mark issue Ready for Testing';
$s_testing_bug_button = 'Ready for Testing';
$s_email_notification_title_for_status_bug_testing = 'The following issue is ready for TESTING.';
}
# Translation for Custom Status Code: corrected
switch( $g_active_language ) {
case 'spanish':
$s_status_enum_string = '10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,60:pruebas,80:resuelta,90:cerrada,100:corregida;110:subida a test';
$s_testing_bug_title = 'Título Corregida';
$s_testing_bug_button = 'Botón Corregida';
$s_email_notification_title_for_status_bug_pruebas = 'notificación corregida email';
;;
default: # english
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:testing,80:resolved,90:closed,100:corrected,110:uploaded in test';
$s_testing_bug_title = 'Mark issue Ready for Corrected';
$s_testing_bug_button = 'Ready for Corrected';
$s_email_notification_title_for_status_bug_testing = 'The following issue is ready for CORRECTED.';
}
# Translation for Custom Status Code: uploaded in test
switch( $g_active_language ) {
case 'spanish':
$s_status_enum_string = '10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,60:pruebas,80:resuelta,90:cerrada,100:corregida;110:subida a test';
$s_testing_bug_title = 'Título subida a test';
$s_testing_bug_button = 'Botón subida a test';
$s_email_notification_title_for_status_bug_pruebas = 'notificación subida a test email';
;;
default: # english
$s_status_enum_string = '10:new,20:feedback,30:acknowledged,40:confirmed,50:assigned,60:testing,80:resolved,90:closed,100:corrected,110:uploaded in test';
$s_testing_bug_title = 'Mark issue Ready for uploaded in test';
$s_testing_bug_button = 'Ready for uploaded in test';
$s_email_notification_title_for_status_bug_testing = 'The following issue is ready for uploaded in test.';
}
Re: Status in english but default language is spanish
Posted: 25 Feb 2013, 12:52
by atrol
There is more than one error
a) there is a bug in MantisBT documentation
Substitute ";;" by "break;"
b) You don't have to set $s_status_enum_string three times, one case statement is enough
c) You set three times $s_testing_bug_title, $s_testing_bug_button, $s_email_notification_title_for_status_bug_prueba and $s_email_notification_title_for_status_bug_testing
You have to set also $s_corrected_bug_title, $s_corrected_bug_button, .....
Re: Status in english but default language is spanish
Posted: 25 Feb 2013, 15:06
by M@rce
@Atrol:
Items a, b and c are corrected.
But newly appears the @100@
Thanks

Re: Status in english but default language is spanish
Posted: 26 Feb 2013, 21:35
by atrol
You have to store custom_strings_inc.php with UTF-8 encoding to get rid of the "?" sign when displaying "se necesitan más datos"
To get rid of the @ set
$s_status_enum_string = '10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,60:pruebas,80:resuelta,90:cerrada,100:corregida,110:subida a test';
instead of
$s_status_enum_string = '10:nueva,20:se necesitan más datos,30:aceptada,40:confirmada,50:asignada,60:pruebas,80:resuelta,90:cerrada,100:corregida;110:subida a test';
Resolved: Status in english but default language is spanish
Posted: 13 Mar 2013, 16:02
by M@rce
Ok...thank you!