language translation dict*.update(translate_ui_tables_names)
I am reading gluon/languages.py
I can't just do :
in the language file (ex.: fr-fr.py)
{key:vaule}.update(translate_ui_tables_names)
Because the file is updated automatically...
Where could I add my update to the regular process of web2py?
Or trigger a function...
Richard
On Mon, Dec 6, 2010 at 12:30 PM, Richard Vézina <[email protected]
> wrote:
> Hello,
>
> I come with that solution... I would have comment...
>
>
> I get my translations like this :
>
> translate_ui_tables_names=dict((r.table_name_en_ui,r.table_name_fr_ui)\
> for r in db().select(db.dict_database.ALL))
>
> Then I just have to :
>
> language translation dict*.append(translate_ui_tables_names)
>
> * Still searching for the name of the dict of the differents language file
> (ex.: fr-ca.py or fr-fr.py)
>
> ;-)
>
> Richard
>
>
>