In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
851 [In-Portal CMS] Admin Interfaces task N/A 2010-09-01 02:58 2011-12-29 13:05
alex  
 
minor  
active 5.1.0  
open  
 
none  
http://groups.google.com/group/in-portal-design/browse_thread/thread/b8547a2fcd4cc0a1
3
0000851: Improvements to translatable field interface
We have 2 possible layouts of forms, that have translatable fields on them:
1. show all fields on all languages at once
- getting very large form, when there are a lot of translatable fields on it
+ no need to refresh form to enter field value on other language

2. only field on current language is visible
+ small form
- need to refresh form and validate all data to enter value from other language

We need to invent something new, that will allow to enter field values on different languages without form refresh and that doesn't make forms bigger, when new languages are added to the site.

In 2nd approach errors from translatable field on any language are redirected back to field on primary language.

For example:

    * you have l1_Name and l2_Name fields on form;
    * 2nd language is primary;
    * in case of error in l1_Name field it will be shown under l2_Name field.

So here is the solution, that should fit our needs without even requiring extra space for additional controls. No new controls added only existing controls will work a bit different:

   1. each translatable field will have input controls on all languages, but only one control per field will be visible at a time;
   2. dropdown on top (with language list) will affect all translatable fields and will make controls on new selected language become visible (instead of previous current language) without form refresh;
   3. top dropdown name will be "m_lang", so it will be remembered as form language once form is submitted;
   4. translatable fields should use "inp_edit_box_ml" and "inp_edit_textarea_ml" blocks for this to work;
   5. mentioned above blocks needs to be rewritten to support such behavior.

We have JavaScript Form class, that tries to fill empty space at form bottom by resizing textarea, so we should trick it and make it assume, that same field on different languages is actual one field, that uses space on form and not all of them will be always visible.
Issue History
2011-12-29 13:05 administrator Note Added: 0004354
2011-12-29 13:05 administrator Target Version 5.2.0 => Icebox
2011-12-18 15:27 Dmitry Priority normal => minor
2011-10-22 05:38 alex Estimate Points => 3
2011-09-27 05:00 alex Time Estimate Added 5
2011-09-24 13:43 Dmitry Priority minor => normal
2011-09-24 05:30 alex Issue Monitored: Dmitry
2011-09-24 05:30 alex Note Added: 0003896
2011-09-23 21:41 Dmitry Priority normal => minor
2010-09-01 02:58 alex New Issue
2010-09-01 02:58 alex Reference => http://groups.google.com/group/in-portal-design/browse_thread/thread/b8547a2fcd4cc0a1

Notes
(0003896)
alex   
2011-09-24 05:30   
Reminder sent to: Dmitry

I disagree, that this issue has minor priority.

It's obviously very hard for users, who have their website content entered at least on 5 languages to manage it's translations on all languages with all that form reloads on every language change.

Other solution for making all fields from all languages shown at once is bad too, since it makes very large forms.
(0004354)
administrator   
2011-12-29 13:05   
Moving this feature to Icebox until we get to Improvement of Admin Interfaces.