Anonymous | Login | Signup for a new account | 2024-03-29 02:07 CDT |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Dependency Graph | [ View Issue ] [ Relation Graph ] [ Vertical ] | |||
|
||||
|
Viewing Issue Simple Details | |||||
ID | Category | Type | Reproducibility | Date Submitted | Last Update |
0000848 | [In-Portal CMS] Database | bug report | always | 2010-08-31 14:06 | 2011-03-30 09:53 |
Reporter | alex | View Status | public | ||
Assigned To | alex | ||||
Priority | normal | Resolution | fixed | ||
Status | closed | ||||
Summary | 0000848: Copying missing translatable data when Primary language is changed | ||||
Description |
There are 2 types of columns in database tables, that In-Portal uses: * columns, that have different value on each language (e.g. l1_Name, l2_Name, l3_Name, l1_Description, etc.); * columns, that have same value on each language (Status, FieldName, Type). In case, when language-dependent column doesn't have value on given language, then value from primary language is displayed. All works fine, until primary language is changed. Best way to solve this is to copy data language-dependent data from old primary language columns into new primary language columns. I think, that kMultiLanguageHelper is perfectly suited for this task, since it already keeps track of all language-dependent columns through all database. For each language-dependent column will issue database query that will copy only missing data, so any entered data on new primary language will be preserved. Code described above should on primary language change (Set Primary button on toolbar or primary checkbox on language editing). |
||||
Additional Information |
Main | My View | View Issues | Change Log | Roadmap | Docs | Wiki | Repositories |
Web Development by Intechnic In-Portal Open Source CMS |