lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
Re: i18n in Lua
From
: Xavier Wang <weasley.wx@
...
>
Date
: Thu, 13 Jan 2011 09:13:56 +0800
maybe you can use a translate table.
tr = {}
tr.zh_CN = {}
tr.en_US = {}
tr.zh_CN["hello"] = "你好"
tr.en_US["hello"] = "hello"
print(tr[lang]["hello"])
2011/1/13 Gustavo de Sá Carvalho Honorato
<
gustavohonorato@gmail.com
>
Hi,
what is the best way to i18n Lua scripts? I've seen nothing about it in the web.
Thanks,
Gustavo
Follow-Ups
:
Re: i18n in Lua
,
Robert G. Jakabosky
Re: i18n in Lua
,
Yuri Takhteyev
References
:
i18n in Lua
,
Gustavo de Sá Carvalho Honorato
Prev by Date:
Re: Lua Popularity FYI
Next by Date:
LuaJIT 64 bit integers (was: the purpose of lightuserdata)
Previous by thread:
i18n in Lua
Next by thread:
Re: i18n in Lua
Index(es):
Date
Thread