diff --git a/core/custom_field_api.php b/core/custom_field_api.php index 1dade12f40..66c3572d2c 100644 --- a/core/custom_field_api.php +++ b/core/custom_field_api.php @@ -853,6 +853,22 @@ function custom_field_get_field( $p_field_id, $p_field_name ) { } } +/** + * Return custom field name including localized name (if available) + * + * @param string $p_name Custom field's name + * @return string CustomFieldName [(LocalizedName)] + * @access public + */ +function custom_field_get_display_name( $p_name ) { + $t_local_name = lang_get_defaulted( $p_name ); + if( $t_local_name != $p_name ) { + $p_name .= " ($t_local_name)"; + } + + return string_display( $p_name ); +} + /** * Get the value of a custom field for the given bug * @todo return values are unclear... should we error when access is denied diff --git a/manage_custom_field_page.php b/manage_custom_field_page.php index 3e85418205..7a80ed888c 100644 --- a/manage_custom_field_page.php +++ b/manage_custom_field_page.php @@ -69,7 +69,7 @@ ?> > - + diff --git a/manage_proj_edit_page.php b/manage_proj_edit_page.php index 549bd73147..6a830940f1 100644 --- a/manage_proj_edit_page.php +++ b/manage_proj_edit_page.php @@ -564,7 +564,7 @@ ?> > - +