Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-681

Copying missing translatable data when Primary language is changed

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.0
    • Fix Version/s: 5.1.2-B1
    • Component/s: Database
    • Labels:
      None

      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).

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: