[Nitro] "babel": new translation system - suggestions&help wanted

Kashia Buch kashia at vfemail.net
Sat Apr 1 06:26:47 EST 2006


[snip sweeet :D~ ]

> 1. I have two classes for storing the translations, which inherit from the
> same class:
>     class Translation
>     class ModelTranslation < Translation
>     class ViewTranslation < Translation
> How do I prevent Og from making a db table for Translation?

class Translation
   is Og::SchemaInheritanceBase

this now only creates the "ogtranslation" table, with an additional column
called "type".

Everything else works as expected.

> 2. as I am automagically translating the fields into the selected
> language, this interferes with the admin interface (i.e. the admin
> interface doesn't show the actual contents of the database, but the
> translations in the base language). Is there a simple way to distinguish
> if the admin interface or the normal web app is accessing the data?

Someone else has to answer this.


Feel the love

More information about the Nitro-general mailing list