Some changes to .dtl

Moderator: crythias

Locked
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Some changes to .dtl

Post by yuri0001 »

Crythias wrote in http://forums.otrs.org/viewtopic.php?f=60&t=5156
Re: Some changes to .dtl and .pm files.
Postby crythias » 29 Jun 2011, 16:52
It's a table, just add the column titles above the list.
<tr><th>column title1</th><th>column title2</th> ...</tr>
I did it

Code: Select all

 <tr><th>Prior</th>
                            <th>None</th>
                           <th>Ticket</th>
                           <th>Title</th>
                           <th>Queue</th>
                           <th>Owner</th>
                           <th>State</th>
                           <th>Customer</th>
                           <th>Created</th>
                          <th>Time</th>
            </tr>
The questions:
1. How to align the column headings to the center column and make the font bold
2. How to translate created columns. In my Russian interface they did't translated, although the files with the translation of terms (ru_Custom.pm) is presented in system
Dashboard.png
You do not have the required permissions to view the files attached to this post.
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)
renee
Znuny expert
Posts: 241
Joined: 06 Feb 2009, 11:15
Znuny Version: 3.0.x
Company: Perl-Services.de
Contact:

Re: Some changes to .dtl

Post by renee »

Regarding your second question:

Code: Select all

<tr><th>Prior</th>
                            <th>None</th>
                           <th>Ticket</th>
                           <th>Title</th>
                           <th>Queue</th>
                           <th>Owner</th>
                           <th>State</th>
                           <th>Customer</th>
                           <th>Created</th>
                          <th>Time</th>
            </tr>
should look like

Code: Select all

<tr><th>$Text{"Prior"}</th>
                            <th>$Text{"None"}</th>
                           <th>$Text{"Ticket"}</th>
                           <th>$Text{"Title"}</th>
                           <th>$Text{"Queue"}</th>
                           <th>$Text{"Owner"}</th>
                           <th>$Text{"State"}</th>
                           <th>$Text{"Customer"}</th>
                           <th>$Text{"Created"}</th>
                          <th>$Text{"Time"}</th>
            </tr>
For every column that is sill in english, you have to add a translation. Create a file called ru_MyTranslations.pm in <OTRS_HOME>/Kernel/Language:

Code: Select all

package Kernel::Language::ru_MyTranslations;

use strict;

sub Data {
    my $Self = shift;

    my $Lang = $Self->{Translation};
    $Lang->{'Column Name that is still in english'} = 'you russian translation';
    $Lang->{'Another Column'} = 'another translation';
}

1;
Need a Perl/OTRS developer? You can contact me at info@perl-services.de
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Some changes to .dtl

Post by yuri0001 »

renee wrote:Regarding your second question:
Thank you very much, I understand this and did it.
And how with first question? :?
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)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: Some changes to .dtl

Post by yuri0001 »

I found a guide to HTML, and figured out. Thanks for all. :D
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)
Locked