Page 1 of 1
Change field name
Posted: 17 Mar 2010, 22:47
by BugCatcher
Hi,
I am new to Mantis and I am currently using 1.2.0
Is it possible to change the existing field name?
eg. I want to change "Summary" to "Title"
If yes, how to change?
Any help will be appreciated. Thank you!
Re: Change field name
Posted: 23 Mar 2010, 17:45
by TomR
Use custom_strings_inc.php
if ( $g_active_language === 'english' ) {
$s_summary = 'Title';
}
Look in lang/strings_english.txt for all text with summary, and place them ( translate ) in custom_strings_inc.php.
You can also translate other languages
if ( $g_active_language === 'english' ) {
$s_summary = 'Samenvatting';
}
Re: Change field name
Posted: 25 Mar 2010, 18:48
by BugCatcher
Thank you. It worked after I added custom_string_inc.php with $s_summary = 'Title'.
And I did not have to do the second part.
That is to look at lang/strings_english.txt for all text with summary, and place them ( translate ) in custom_strings_inc.php.
I don't understand this part. Do I really have to do it? I don't understand since I don't see any problem right now and the issue form already changed to what I want.
Re: Change field name
Posted: 25 Mar 2010, 22:37
by TomR
Glad it worked out for you.
I meant that if you want to translate another string, tou have to find out which variable it is. You only see the text on your webpage ( Summary ), and you want to translate that into 'Title'. Then you have to know that you have to use $s_summary.
If your installation is multi language you should translate al the appropriated languages.
Re: Change field name
Posted: 25 Mar 2010, 23:10
by BugCatcher
It is crystal clear now. Thank you so much for your help.