About the message of "comment" in CMDB history view

Moderator: crythias

Locked
tankwan3000
Znuny newbie
Posts: 9
Joined: 09 Jun 2013, 09:29
Znuny Version: 3.2.6

About the message of "comment" in CMDB history view

Post by tankwan3000 »

About the message of "comment" in CMDB history view:

My otrs shows "CIHistory::ValueUpdate", but the OTRS online demo shows such as "Attribute owner updated from '...' to '...'". How can I do to get the same result just like the Online demo?

Many thinks.
OTRS 3.2.6, MySQL, Windows Server 2003 SP2, Apache.
ITSM 3.2.4
reneeb
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: About the message of "comment" in CMDB history view

Post by reneeb »

You need to provide a translation for "CIHistory::ValueUpdate".

From en_ITSMConfigItem.pm:

Code: Select all

 $Lang->{'CIHistory::ValueUpdate'}                 = 'Attribute %s updated from "%s" to "%s"';
or nl_ITSMConfigItem.pm:

Code: Select all

$Self->{Translation}->{'CIHistory::ValueUpdate'} = 'Attribuut %s bijgewerkt van "%s" naar "%s"';
But please do *not* edit the xx_ITSMConfigItem.pm, but create a xx_ZZMyTranslations.pm:

Code: Select all

package Kernel::Language::xx_ZZMyTranslations;

use strict;

sub Data {
    my $Self = shift;

    $Self->{Translation}->{'CIHistory::ValueUpdate'} = 'Attribut: "%s" Old: %s New "%s"';
}

1;
where "xx" is the language code...
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
tankwan3000
Znuny newbie
Posts: 9
Joined: 09 Jun 2013, 09:29
Znuny Version: 3.2.6

Re: About the message of "comment" in CMDB history view

Post by tankwan3000 »

I do just as you told me. And yes, I get what I want!

Thank you, reneeb.
OTRS 3.2.6, MySQL, Windows Server 2003 SP2, Apache.
ITSM 3.2.4
Locked