Hi Maciej,
I strongly favour option 1. In fact, what would be great would to
provide either a binary or rake task that allows import of PO files or
YAML files into the database.
This effectively relegates the database to a 'cache' - the developer
can use PO or YAML files (and I am working on Java ResourceBundles)
directly with the PO and YAML providers, or can use import them and
use the database providers.
I know Ruby Gettext provides support for creating po-files from AR
(although I don't know how that works in practice)? I am guessing it
doesn't work the other way around.
http://www.yotabanana.com/hiki/ruby-gettext.html
Alex
Are you going to target this to release 0.0.3?
Probably not unless I finish before Thursday. The priority is the new
parser.
I have a question about the place of the importing code:
1. In the provider classes (as optional methods)
Pros: Simple, using already established classes. They also know the best
about state.
Cons: Unless I find something it seems that the gettext would have to
have 2 mixed implementations - gettext gem, which use native gettext,
and our parser. It may provide a confusion within the code.
2. In separate classes (Importers/Exporters?)
Pros: Split the different functions. Do not confuse in native/our own
mixing as with the gettext.
Cons: Against SPOT.
3. Other?
Regards