Data.TicketNumber empty with Spanish

Moderator: crythias

Locked
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Data.TicketNumber empty with Spanish

Post by drodralv »

Hello,

We received a complaint that when having OTRS language set as Spanish (Spain), on the screen of email outbound does not show the ticket number (they stated that was working few weeks ago...)

For English is working fine. I was checking some language and code files and i don´t know what is happening.

In Outbound.tt i could find:

Code: Select all

<div class="Header">
            <h1>[% Translate("Outbound Email for %s%s", Config('Ticket::Hook'), Data.TicketNumber) | html %] &mdash; [% Data.Title | html %]</h1>
            <p class="AsteriskExplanation">[% Translate("All fields marked with an asterisk (*) are mandatory.") | html %]</p>
So why Data.TicketNumber is empty in SP?

Thank you
You do not have the required permissions to view the files attached to this post.
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Data.TicketNumber empty with Spanish

Post by jojo »

((OTRS)) Community Edition 5 is out of support, means no bugfixing and no security fixes.

You should try with latest version of ((OTRS)) Community Edition 6
"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
root
Administrator
Posts: 4251
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Data.TicketNumber empty with Spanish

Post by root »

Hi,

I guess you talking about AgentTicketEmailOutbound.tt
My line looks different there. Any changes made to this file? Or another one below Custom/?

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: Data.TicketNumber empty with Spanish

Post by drodralv »

Hi guys,

We about to upgrade to newer version but takes time for our organization.

The code i provided to you is from 5.0.3 as i don´t have direct access to our files for 5.0.28

So for what i understood checking the files, es.pm does not contain anything else that:

Code: Select all

 # Template: AgentTicketEmailOutbound
        'Outbound Email for %s%s%s' => 'Email de Salida para %s%s',
So i understand the part of the Ticket.Hook is coming from different side. What is weird for me is that language is affecting that Ticket number, i tried to find any translation for that but i could not.

Any idea? I will request that .tt file from our current system.

Thanks
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Data.TicketNumber empty with Spanish

Post by jojo »

Looks like a bug in the translation file for spanish

it should be:

Code: Select all

'Outbound Email for %s%s%s' => 'Email de Salida para %s%s%s',

If the issue is also existant in ((OTRS)) Community Edition 6 you should create a bug (https://bugs.otrs.com)
"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
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: Data.TicketNumber empty with Spanish

Post by drodralv »

Hi jojo!

Yup, its different:

In our current installation we have:
EmailOutbound.tt

Code: Select all

<h1>[% Translate("Outbound Email for %s%s%s", Config('Ticket::Hook'), Config('Ticket::HookDivider'), Data.TicketNumber) | html %] &mdash; [% Data.Title | html %]</h1>
            <p class="AsteriskExplanation">[% Translate("All fields marked with an asterisk (*) are mandatory.") | html %]</p>
es.pm

Code: Select all

 # Template: AgentTicketEmailOutbound
        'Outbound Email for %s%s%s' => 'Email de Salida para %s%s',
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: Data.TicketNumber empty with Spanish

Post by drodralv »

Solved

Adding a "%s" to the translation fixed the bug.

Thank you
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Data.TicketNumber empty with Spanish

Post by jojo »

did you open a bug via https://bugs.otrs.org? it seems that the issue is also present in version 6
"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
drodralv
Znuny advanced
Posts: 102
Joined: 26 Jul 2019, 08:25
Znuny Version: 5.0.28

Re: Data.TicketNumber empty with Spanish

Post by drodralv »

Hi!

Yes i checked es.pm file for latest OTRS 6 version and the bug is in there. I already logged a bug.

Thank you
Locked