Transfer internals

1 view
Skip to first unread message

Maciej Piechotka

unread,
Jun 24, 2008, 4:41:03 PM6/24/08
to Merb Global Mailing List
The current solution is IMHO quick'n'dirty solution. It is based on
subsequent calls of methods.

The potential solutions would be:
1. Transfer it as a big hash - one per language
{:plural => "...",
:nplural => 3,
"Hello world" => "Witaj Świecie",
"Test" => ["Test", "Testy", "Testów"]}

Pros: Easily to debug, easly to implement
Cons: Relativly high memory consumption

2. Split it into a group of translations:
export_language(name, nplural, plural)
export_msgid(language, msgid, msgid_plural)
export_translation(msgid, index, msgstr)

3. Other

What do you think?

signature.asc
Reply all
Reply to author
Forward
0 new messages