change checkbox to local language [solved]

Moderator: crythias

Locked
Majed17
Znuny newbie
Posts: 16
Joined: 27 Jun 2012, 12:00
Znuny Version: 3.1.7
Real Name: Majed

change checkbox to local language [solved]

Post by Majed17 »

Hello, i have otrs 3.1.7 and in russian language and i have a checkbox on closing tickets and instead of displaying the value in russian it says either says checked or unchecked. i need to translate the checked or unchecked to russian so how do i do that? i searched the language files in kernel/language for "unchecked" but to no luck. is there any help for this or it can't be changed?
Last edited by Majed17 on 09 Jul 2012, 07:37, edited 1 time in total.
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: change checkbox to local language

Post by reneeb »

You can add a new file to Kernel/Languages: Name it ru_MissingTranslations.pm

This would be the content of the file then:

Code: Select all

package Kernel::Language::ru_MissingTranslations;

use strict;
use utf8;

sub Data {
    my $Self = shift;

    my $Lang = $Self->{Translation};
    $Lang->{unchecked} = 'бесконтрольный';
    $Lang->{¢hecked} = 'проверено';
}

1;
translations via Google Translate ;-)
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
Majed17
Znuny newbie
Posts: 16
Joined: 27 Jun 2012, 12:00
Znuny Version: 3.1.7
Real Name: Majed

Re: change checkbox to local language

Post by Majed17 »

well thanks a lot it worked :) but first i had to save the notepad as utf8 for the characters to appear correctly. as for the translations i chose 'Checked' as yes and 'Unchecked' as no.
Locked