Translate Ticket Type

Moderator: crythias

Locked
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

Translate Ticket Type

Post by Gonzalo »

Hi!

Is it possible to translate automatically the tycket type in the customer form depends of the language of the customer?

Incidencia --> Incident
Peticion de Servicio --> service request

Or in the different way --> Incident --> Incidencia (English to Spanish).

Should i put the translation in /opt/otrs/Kernel/Languages/es.pm

I could duplicate the types of tickets in tycket setting --> type but I think that it is not a good idea.

Thanks
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Translate Ticket Type

Post by yuri0001 »

Gonzalo wrote:Hi!
Should i put the translation in /opt/otrs/Kernel/Languages/es.pm
You must do it in file es_custom.pm

See Admin and Development manual about it syntax because it not same as es.pm :?
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)
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

Re: Translate Ticket Type

Post by Gonzalo »

Hi yuri!

I didn't find any file called "es_custom.pm". should I create this file?

Thanks!
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Translate Ticket Type

Post by yuri0001 »

Yes! You must create this file and put it in the same folder where es.pm file.
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)
Gonzalo
Znuny newbie
Posts: 75
Joined: 06 Nov 2013, 19:20
Znuny Version: 5.0.8
Real Name: Gonzalo

Re: Translate Ticket Type

Post by Gonzalo »

I follow Development manual and I found and edit the file:

Code: Select all

package Kernel::Language::es_Custom;

use strict;
use warnings;

use vars qw(@ISA $VERSION);
$VERSION = qw($Revision: 1.4 $) [1];

sub Data {
    my $Self = shift;

    # $$START$$

    # own translations
    $Self->{Translation}->{'Incident'} = 'Incidente';

    # $$STOP$$
    return 1;
}

1;
I did a test for the word incident when you select ticket type but it doesn't work. Any idea?

Thanks in advance
OTRS 5.0.8 with Oracle Linux Server release 7.1 with MariaDB database

---------------------------------------------------------
OTRS 3.3.6 on Centos 6.0 with MySQL database
Locked