[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: A NetBSD system installer with Lua scripting, i18n
- From: Marc Balmer <marc@...>
- Date: Sun, 10 Feb 2013 01:40:00 +0000 (GMT)
Am 07.02.2013 um 14:26 schrieb Thijs Schreijer <firstname.lastname@example.org>:
>> Attached are three files (not very elaborate code, just meant as proof of
>> concept): i18n.lua, a "library" that translates messages, and i18n.de,
>> i18n.fr two sample message catalogs for german and french.
>> So far it can translate messages and change the order of parameters. Is
>> that enough?
> Have you checked existing implementations?
> By Kikito; https://github.com/kikito/i18n.lua
> By OlivineLabs; https://github.com/Olivine-Labs/say
> What I don't like about Say is that it requires ordered arguments, not named ones. Luassert uses it and it's been a pita. Probably nicest would be if you could also include formatting in the placeholders, but then it would almost become a template engine...
I looked at Kikito and seems quite heavy, I am not sure if I need to go that far.
Then I find to chatty to use (i.e. you have to write much text, imo)