Linux-kernel mailing list archive 1998-49,: Re: Internationalizing Linux

# Re: Internationalizing Linux

Roger Gammans (rgammans@computer-surgery.co.uk)
Tue, 8 Dec 1998 18:34:23 +0000

- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Jesper Juhl: "Patch to make APM_NOINTS configurable from 'make config' etc. in"
- Previous message: Gregory Maxwell: "Re: Dumb question: Which is "better" SCSI or IDE disks?"

In article <Pine.LNX.3.96.981207165213.12761Q-100000@52-a-
usw.rb1.blv.nwnexus.net>, Tim Smith <tzs@tzs.net> writes
>One thing to note when internationalizing things is that the *order* of
>arguments sometimes needs to be changed. Something in one language that
>might be written as
>
> Could not do task <X> because of condition <Y>
>
>might, under different grammatical rules of another language, have to be
>written as
>
> A condition <Y> prevented doing task <X>
>
>A truly horrible kludge I've used in that case is to put this in my code:
[kludge snipped]

A neat way I've seen it done, is to leave the format specifiers in the
printks, eg. printk() becomes printk("<TAG>:%d:%s");

And then tag lookup contains postional specifiers so
somewhere in our Language [file|array] we have:-
TAG: A condition %1 prevented doing task %2
or
TAG: Could not do task %2 because of condition %1

The remaining issue with this is choice of seperator character (colon
above).

TTFN

    --
    Roger Gammans

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.rutgers.edu
    Please read the FAQ at http://www.tux.org/lkml/

- Next message: Jesper Juhl: "Patch to make APM_NOINTS configurable from 'make config' etc. in"
- Previous message: Gregory Maxwell: "Re: Dumb question: Which is "better" SCSI or IDE disks?"