From: "Hal E. Fulton" Date: 2003-07-01T22:42:13+09:00 Subject: Re: Message catalogs (I18N) overnight hack... ----- Original Message ----- From: To: "ruby-talk ML" Sent: Tuesday, July 01, 2003 7:50 AM Subject: Re: Message catalogs (I18N) overnight hack... > At Tue, 1 Jul 2003 19:01:06 +0900, > Brian Candler wrote: > > Also I'd be a bit concerned about phrases where the word order might need to > > be different in different languages: > > > > printf("I gave the %s to %s", thing, recipient) > > > > It could perhaps use tags which were automatically stripped out in > > translation: > > > > printf("I gave the to ", thing, recipient) > > printf("I gave the %1$s to %2$s", thing, recipient) > > -- > Nobu Nakada Yes, that is how I have done it in C on AIX. :) But I simplified it in my code -- it does not require any change to printf or to its format string. I use markers in the translated strings themselves: "I gave the %1 to %2." --> "Ich habe den %2 zu %1 gegeben." # Word ending issues! Apparently you know something about I18N. How are issues like word endings usually handled? With different messages?? For example, "I saw the %1" in English -- in German, "Ich sah den Wagen" (I saw the car) but "Ich sah die Bruecke" (I saw the bridge). My German is flawed, but you see what I am asking about den/die I think. Hal -- Hal Fulton hal9000@hypermetrics.com