HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [hylafax-users] Translation of the faxstatus

On 20 April 2010 09:28, Sebastian Mayer <sebastian.mayer@xxxxxxxxxxx> wrote:
> Hi Aidan,
> is it possible to lookup the "STATUSCODE" lookup table in the system?
> I don't want to translate in more than 1 language, but for my hylafax users
> the errorcodes just should be in german.
> Have I understood it right, that this just not possible? If I am wrong,
> where in the system do I have to search?

USER aidan
230 User aidan logged in.
JOB 81
200 Current job: jobid: 81 groupid: 81.
213 000

<-- USER aidan
--> 230 User aidan logged in.
<-- JOB 1000394
--> 200 Current job: jobid: 1000394 groupid: 1000394.
--> 213 SLEEPING
--> 213 No answer from remote
--> 213 003
<-- QUIT
--> 221 Goodbye.

And once the job has failed:
<-- JPARM state
--> 213 FAILED
<-- JPARM status
--> 213 REJECT: Too many attempts to dial: 1, max 1
<-- JPARM statuscode
--> 213 333

So instead of trying to "translate" formatted/valued strings, you can
use statuscode to "lookup" what the error was in some other
translated, more descriptive, etc table.

So, as I said, yes and no.  The HylaFAX server messages are all still
in english.  They are going to have to stay that way, and we haven't
found an easy way to "post-translate" all the pre-formatted strings
into a client's prefered language... But we have provided the
locale-independant statuscode paramater, so that someone interested in
"explaining" errors can get a non-changing code representing what the
error is/was, and using that code handle the error in whatever uniform
way they need to.


Aidan Van Dyk                                             aidan@xxxxxxxx
Senior Software Developer                          +1 215 825-8700 x8103
iFAX Solutions, Inc.                                http://www.ifax.com/

____________________ HylaFAX(tm) Users Mailing List _______________________
  To subscribe/unsubscribe, click http://lists.hylafax.org/cgi-bin/lsg2.cgi
 On UNIX: mail -s unsubscribe hylafax-users-request@xxxxxxxxxxx < /dev/null
  *To learn about commercial HylaFAX(tm) support, mail sales@xxxxxxxxx*

Project hosted by iFAX Solutions