Different Custom Translations (URL depending?)

English! place to talk about development, programming and coding
Post Reply
lrahas
Znuny newbie
Posts: 12
Joined: 02 Mar 2015, 12:33
Znuny Version: Version 4

Different Custom Translations (URL depending?)

Post by lrahas »

Hello,

I am using OTRS 4 and need different custom translations.

In our environment the translation of 'To' is used as something like 'topic/theme' nearly everywhere (customers selection queue, ...). The problem is that this 'To'-translation is also used as description for the 'To'-field when an agent is creating an outgoing mail. Now 'topic/theme' does not make sense there...

E. g.: de_Custom.pm

Code: Select all

# default stuff
package Kernel::Language::de_Custom;
use strict;
use warnings;
use utf8;
sub Data {
    my $Self = shift;

    # own translations
    $Self->{Translation}->{'To'}   = 'Thema'; # if used in mail-respond-context (perhaps URL depending) this should be translated 'An'
    
}
1;
I tried to get this working - but not even nearly got it...

Thanks
Michael
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Different Custom Translations (URL depending?)

Post by RStraub »

You could rewrite the default wording in the template file, e.g. "to" -> "to_customer" and create a translation for that string. But you would also need an english - english translation.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
lrahas
Znuny newbie
Posts: 12
Joined: 02 Mar 2015, 12:33
Znuny Version: Version 4

Re: Different Custom Translations (URL depending?)

Post by lrahas »

Am I right that udpates could overwrite these template files?

Unfortunatelly I am only working for this company a few more months. Because of unclear otrs-care after this I want to keep it as simple as possible (thought solution within lang-files is really easy)

If it's really not possible within lang-files I will change translation a little bit that it works ok for both and will wait if anybody bothers.
Post Reply