/
Multi-language import creates all languages as primary [5.2.2-B1]

Multi-language import creates all languages as primary [5.2.2-B1]

Language-related information (e.g. phrases, emails) in In-Portal can be transferred between In-Portal installations via language pack export/import functionality.

When multiple languages are imported at once, but only 1st of imported languages exists in database and is marked as primary, then all created languages would be marked as primary as well.

Solution

In the "\LanguageImportHelper::_processLanguage" method, when language doesn't exist do "$this->lang_object->Clear();" before "$this->lang_object->SetFieldsFromHash($fields_hash);" line.

Related Tasks