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

Fix language import, when single "lang" file contains several languages

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.3
    • Fix Version/s: 5.2.0-RC1
    • Component/s: Localization
    • Labels:
      None

      Description

      Problem #1:

      If you have 1 language and you import language pack, that has 5 new languages, then it will fail with SQL error, that no l6_Translation column exists.

      This happens, because there are only columns for first 5 languages after clean In-Portal installation.

      I think, that after new record is created in Languages database table we should also create corresponding new columns in all database tables, that have translatable fields in them. Not sure if this happens already (maybe after language import was finished) or after each new language is created (as I would like it to work).

      It seems, that problem was there right after we changed how phrases/e-mail events are stored in 5.1.0.

      Problem #2:
      If you have language pack that has 1 language with not translated phrase and 2 languages where this phrase is translated then you'll get "Column count doesn't match value count" sql error during import.

      Problem #3:
      <?xml version="1.0" encoding="utf-8"?> is not being added to language pack.

        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: