Re: Full locale support now in SVN!

new topic     » goto parent     » topic index » view thread      » older message » newer message

CChris wrote:
>  
> Your scheme doesn't even take care of the following. Even in the extremely
> simple
> "Hllo, World!" example. In spanish, sentences that end with an emphasis mark
> (!) start with an inverted emphasis mark (¡Hola, Mundo!). Changing word order
> just doesn't help.
> Completely agreeing with you, Kat.
> 

The scheme does support it just fine.

-- English.po
hello Hello
world World
message=$1%s, $2%s!

---- Spanish.po
hello Hola
world Mundo
message=!$2%s $1%s(!)


l:set("English")
puts(1, l:translate("message", {l:w("hello"), l:w("world")}))

l:set("Spanish")
puts(1, l:translate("message", {l:w("hello"), l:w("world")}))


---- Output:
Hello, World!
!Mundo, Hola(!)

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu