[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: String access & metamethods
- From: "Brett Kugler" <bkugler@...>
- Date: Wed, 12 Dec 2007 18:16:39 -0600
Yes, in the end I agree. The __tostring thing is neat, but it fails to work in instances outside of print() etc. So the original translation function L would seem to meet my needs the best.
Again, I thank all of you for your comments and help.
On Dec 12, 2007 5:50 PM, Miles Bader <firstname.lastname@example.org
Yeah, I think for this sort of task, you really want _source_ strings to
"Carlos Augusto Teixeira Mendes" <email@example.com
> you will get <<<foobar>>>
> and not <<<foo>>><<<bar>>> as you might be expecting for your translation
I think it's better to byte the bullet and use the prefix (e.g. L"...")
though, because translating _every_ string by default seems way too
dangerous. Some strings are not meant to be translated, and only the
programmer really knows which is which.
if output_of_some_script == "succeeded" then
It's pretty likely the first should be translated but not the second.]
`Cars give people wonderful freedom and increase their opportunities.
But they also destroy the environment, to an extent so drastic that
they kill all social life' (from _A Pattern Language_)