[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: International support in Lua
- From: Tony Finch <dot@...>
- Date: Thu, 14 Jun 2007 09:39:31 +0100
On Wed, 13 Jun 2007, Patrick Donnelly wrote:
> Make a couple files, each for their respective nationality, and fill
> them with global strings. You can probably make some function if not in
> Lua then in C (I assume you are using) that will get the location of the
> user of your program. Simply at the top of the chunk (the file)
> put:First file: if not GetLocation = "X" then return end; ERROR1 =
> "Attempt to index a nil value";Second file: if not GetLocation = "Y"
> then return end; ERROR1 = "Attempt to index a nil value"; --In Y language
Gnu gettext does exactly this. What the original poster is asking for is
to have hooks in the Lua core that support this functionality.
Tony.
--
f.a.n.finch <dot@dotat.at> http://dotat.at/
SOUTH FITZROY: SOUTHWEST VEERING WEST 5 TO 7, PERHAPS GALE 8 LATER. MODERATE
OR ROUGH, OCCASIONALLY VERY ROUGH LATER. RAIN OR SHOWERS. MODERATE OR GOOD.