Preferences Translations for User

14 views
Skip to first unread message

Rémy B.

unread,
Jul 27, 2011, 7:12:20 AM7/27/11
to rails...@googlegroups.com
We have users Preferences with Standard Value.

First Table : Preference_Topics : ID, Title
Second Table : Preference_topic_options : ID, Value,
Preference_topic_id

One Topic Title have many options Value.

I want to add a Translation for each language in the website to these
Topic Title and theirs options associated.

I want to know what is the best way to implement this translation module
in the admin website.

The first idea is :

To make 2 another table :

One for Topic Title Translate with ID, title, Preference_topic_id
Second for Options Value translate with ID, value, preference_topic_id,
preference_topic_option_id

The second idea is :

To use YML and build an interface to add translation of each terms who
need to be translated.

We don't want edit the YML but he can be edited directly accross the
Admin Website.


I want to know what is the best way to implement translation for each
topic and theirs options. And if i do it with the tables how i can
display the associated model in the view for the translate value of each
language

--
Posted via http://www.ruby-forum.com/.

Reply all
Reply to author
Forward
0 new messages