Change field name

Post about your customizations to share with others.

Moderators: Developer, Contributor

Post Reply
BugCatcher
Posts: 6
Joined: 17 Mar 2010, 22:25

Change field name

Post 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!
TomR
Posts: 55
Joined: 01 Aug 2006, 10:22

Re: Change field name

Post 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';
}
Tom
------------------------------------
BugCatcher
Posts: 6
Joined: 17 Mar 2010, 22:25

Re: Change field name

Post 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.
TomR
Posts: 55
Joined: 01 Aug 2006, 10:22

Re: Change field name

Post 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.
Tom
------------------------------------
BugCatcher
Posts: 6
Joined: 17 Mar 2010, 22:25

Re: Change field name

Post by BugCatcher »

It is crystal clear now. Thank you so much for your help.
Post Reply