[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: String access & metamethods
- From: "steve donovan" <steve.j.donovan@...>
- Date: Fri, 14 Dec 2007 07:18:42 +0200
Yes, someone got some Afrikaans in there somewhere ! I know that a
linguist would consider that a _kind of German_, but so is English ;)
I agree with lhf, this is a classic case where token filters would
work nicely. Remember also that you don't have to _define_ new token
types, because something like '$' will pass through untranslated -
The big payoff is that your translation occurs at compile time. So you
could use luac to generate bytecode and store that - although in my
experience token filters are suprisingly fast.
On Dec 13, 2007 10:32 PM, Ashwin Hirschi <firstname.lastname@example.org> wrote:
> > if language == "German" then
> > DidNotWork = "Operasie het nie geslaag nie"
> > NoAnswer = "Antwoord nie gefind nie"
> > elseif language == "Martian" then
> > DidNotWork = "Pqfsbtjf!ifu!ojf!hftmbbh!ojf"
> > NoAnswer = "Bouxppse!ojf!hfgjoe!ojf"
> > else -- default to English
> > DidNotWork = "Operation did not succeed"
> > NoAnswer = "No answer found"
> > end
> That Martian bit is spot on, obviously. But I'm afraid the German section still needs some work [;-)].
> no signature is a signature.