how i can change Priority formate in TicketViewZoom
Moderator: crythias
how i can change Priority formate in TicketViewZoom
I wish to change the formate of Priority in TicketViewZoom
right now it Shows Like "Priority : 3 Low"
But instead Of it I want Like "Priority : Low" This Way
So how I can change it
Thanks
Gaurav
right now it Shows Like "Priority : 3 Low"
But instead Of it I want Like "Priority : Low" This Way
So how I can change it
Thanks
Gaurav
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: how i can change Priority formate in TicketViewZoom
Change it in the translation file. Create a new en_grathi.pm (instead of "en" the language code you need) and add your custom translations there. See other language files for templates.
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: how i can change Priority formate in TicketViewZoom
sorry I din't find translation file
can you please explain steps
Thanks
Gaurav
can you please explain steps
Thanks
Gaurav
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: how i can change Priority formate in TicketViewZoom
Place this as en_grathi.pm in Kernel/Language:
Just add another line with the appropriate values if you need other translations.
Code: Select all
package Kernel::Language::en_grathi;
use strict;
use warnings;
our $VERSION = '0.01';
sub Data {
my $Self = shift;
my $Lang = $Self->{Translation};
return if ref $Lang ne 'HASH';
$Lang->{"2 low"} = "low";
return 1;
}
1;
Code: Select all
$Lang->{"2 low"} = "low";
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: how i can change Priority formate in TicketViewZoom
I have done it .
but how I can use this module .
but how I can use this module .
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: how i can change Priority formate in TicketViewZoom
OTRS uses that module automatically when the user has selected "en" as the language to use...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: how i can change Priority formate in TicketViewZoom
Thanks
Its works but it also changed in CustomerTicketMessage.pm .
while I wish to change it only in CustomerTicketZoom.pm .
I don't want to show ID of priority only value should be in CustomerTicketZoom.pm
Please help me for it
Thanks
Gaurav
Its works but it also changed in CustomerTicketMessage.pm .
while I wish to change it only in CustomerTicketZoom.pm .
I don't want to show ID of priority only value should be in CustomerTicketZoom.pm
Please help me for it
Thanks
Gaurav
-
- Znuny superhero
- Posts: 631
- Joined: 17 Mar 2011, 14:40
- Znuny Version: 5.0.6
- Real Name: Yuri Kolesnikov
- Location: Russia
Re: how i can change Priority formate in TicketViewZoom
To my mind, your idea to change the name of priority is wrong becouse the first number in name is to sort them in drop-down lists. If you want to do it only to display in some screens? The translation file do this change for all screens.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Re: how i can change Priority formate in TicketViewZoom
Hi yuri0001
yes I agree with you but dropdownlist not present in CustomerTicketZoom.pm , here it just display which we had selected in customerTicketMessage.pm
So I dont think so there is nay need to display the numeric value in front of Priority , Only required string.
If I am wrong please correct me
Thanks
Gaurav
yes I agree with you but dropdownlist not present in CustomerTicketZoom.pm , here it just display which we had selected in customerTicketMessage.pm
So I dont think so there is nay need to display the numeric value in front of Priority , Only required string.
If I am wrong please correct me
Thanks
Gaurav
-
- Znuny superhero
- Posts: 631
- Joined: 17 Mar 2011, 14:40
- Znuny Version: 5.0.6
- Real Name: Yuri Kolesnikov
- Location: Russia
Re: how i can change Priority formate in TicketViewZoom
Sorry my bad English!
I mean "3 normal" or "4 high". It's not ID - it is the name of Priority. In dropdown lists they sorted by first symbol. If you delete first number - they where mixed.
I mean "3 normal" or "4 high". It's not ID - it is the name of Priority. In dropdown lists they sorted by first symbol. If you delete first number - they where mixed.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)