Few case to translate in French

English! place to talk about development, programming and coding
Post Reply
ebernier
Znuny newbie
Posts: 18
Joined: 20 Jan 2012, 20:52
Znuny Version: 3.0.2
Real Name: Evans Bernier
Company: Solutions Libergia inc.
Location: Victoriaville, Quebec, Canada
Contact:

Few case to translate in French

Post by ebernier »

Hello,

Is there a way to translate the message of a case like that :
if ( !$Self->{TicketID} ) {
return $Self->{LayoutObject}->ErrorScreen(
Message => 'No TicketID is given!',
Comment => 'Please contact the admin.',
);
}

I tried to put the sentense "No TicketID is given!" in the language file, but it is not translated.
How can I translate it?


Another case :
Example :
if ( !$Self->{$Needed} ) {
$Self->{LayoutObject}->FatalError( Message => "Got no $Needed!" );
}
It is possible to translate "Got no $Needed!" ?

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

Re: Few case to translate in French

Post by jojo »

please read doc.otrs.org/developer/3.0/en/html/contributing.html
"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
ebernier
Znuny newbie
Posts: 18
Joined: 20 Jan 2012, 20:52
Znuny Version: 3.0.2
Real Name: Evans Bernier
Company: Solutions Libergia inc.
Location: Victoriaville, Quebec, Canada
Contact:

Re: Few case to translate in French

Post by ebernier »

I looked in doc, but nothing about that. We really need to translate error message. How can we do that?
Can we modify the system to translate this kind of message?

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

Re: Few case to translate in French

Post by jojo »

error messages are not run through translating code. As this is a hard error all systems will display english messages, also webserver etc.
"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
Post Reply