Hello,

I would like to update the different language file for certain entry with
translation contained in database...

So I would do something like that :

fr-ca.py dict.update(translate_ui_tables_names)
or
fr-fr.py dict.update(translate_ui_tables_names)

But I don't know the name of the the variable name of the different dict
that are contained in language files...

And since those file are automatically generated I can't just do :

fr-ca.py file dict : {key:vaule}.update(translate_ui_tables_names)

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 <ml.richard.vez...@gmail.com
> 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
>
>
>

Reply via email to