Changing button names

English! place to talk about development, programming and coding
Post Reply
RagnaXBL
Znuny newbie
Posts: 16
Joined: 21 Jan 2015, 15:08
Znuny Version: 4.0.4

Changing button names

Post by RagnaXBL »

I'd like to change the text om the buttons of the ticket zoom screen. i couldn't see where the text for the buttons was being generated from in the tt files. if anyone could could point me in the right direction, any help would be appreciated.

i've attached a screenshot of the buttons in case you're not sure which ones i was talking about
You do not have the required permissions to view the files attached to this post.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Changing button names

Post by RStraub »

This is configured in the .xml file for the generic Menu Module (for the Free Fields Button):

Code: Select all

    <ConfigItem Name="Ticket::Frontend::MenuModule###310-FreeText" Required="0" Valid="1">
        <Description Translatable="1">Shows a link in the menu to add a free text field in the ticket zoom view of the agent interface.</Description>
        <Group>Ticket</Group>
        <SubGroup>Frontend::Agent::Ticket::MenuModule</SubGroup>
        <Setting>
            <Hash>
                <Item Key="Module">Kernel::Output::HTML::TicketMenuGeneric</Item>
                <Item Key="Name">Free Fields</Item>
                <Item Key="Description" Translatable="1">Change the free fields for this ticket</Item>
                <Item Key="Action">AgentTicketFreeText</Item>
                <Item Key="Link">Action=AgentTicketFreeText;TicketID=[% Data.TicketID | html %]</Item>
                <Item Key="Target"></Item>
                <Item Key="PopupType">TicketAction</Item>
            </Hash>
        </Setting>
    </ConfigItem>
You might consider to just add a custom translation instead of editing the files.
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Changing button names

Post by jojo »

you can change tne names via sysconfig
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
RagnaXBL
Znuny newbie
Posts: 16
Joined: 21 Jan 2015, 15:08
Znuny Version: 4.0.4

Re: Changing button names

Post by RagnaXBL »

Thanks guys, didn't realise it could be done through the sysconfig. generally try to avoid messing with the tt files if possible
Post Reply