View Issue Details

IDProjectCategoryView StatusLast Update
0003597mantisbtcustom fieldspublic2004-02-29 07:17
Reporteryarick123 Assigned Tovboctor  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version0.18.1 
Summary0003597: custom fields names are not translaten in email
Description

mantis 0.18.1

names of custom fields in bug view pages are translated
but in email notifications not =(

a patch fixing this error is attached.

TagsNo tags attached.
Attached Files
mantis01801_translate_custom_field_names.patch (961 bytes)   
diff -rc mantis-0.18.1/core/email_api.php mantis-to-cvs/core/email_api.php
*** mantis-0.18.1/core/email_api.php	2004-02-05 22:10:46.000000000 +0100
--- mantis-to-cvs/core/email_api.php	2004-02-24 14:54:21.000000000 +0100
***************
*** 439,445 ****
  		foreach( $t_related_custom_field_ids as $t_id ) {
  			$t_def = custom_field_get_definition( $t_id );

! 			$t_message .= str_pad( $t_def['name'] . ': ', $g_email_padding_length, ' ', STR_PAD_RIGHT );

  			$t_custom_field_value = custom_field_get_value( $t_id, $p_bug_id );
  			if( CUSTOM_FIELD_TYPE_EMAIL == $t_def['type'] ) {
--- 439,445 ----
  		foreach( $t_related_custom_field_ids as $t_id ) {
  			$t_def = custom_field_get_definition( $t_id );

! 			$t_message .= str_pad( lang_get_defaulted( $t_def['name'] ) . ': ', $g_email_padding_length, ' ', STR_PAD_RIGHT );

  			$t_custom_field_value = custom_field_get_value( $t_id, $p_bug_id );
  			if( CUSTOM_FIELD_TYPE_EMAIL == $t_def['type'] ) {

Activities

vboctor

vboctor

2004-02-24 09:04

manager   ~0005087

Fixed in CVS. Will be included in next release. Thanks yarik123, keep it up!