Index: branches/5.2.x/core/install/upgrades.php =================================================================== diff -u -N -r14585 -r14588 --- branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 14585) +++ branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 14588) @@ -1,6 +1,6 @@ Application->recallObject('kMultiLanguageHelper'); /* @var $ml_helper kMultiLanguageHelper */ - $ml_helper->createFields('phrases'); - $delete_ids = Array (); - $language_count = $ml_helper->getLanguageCount(); + $ml_helper->createFields('phrases'); + $languages = $ml_helper->getLanguages(); foreach ($column_phrases as $phrase_key => $phrase_info) { $field_phrase_key = 'LA_FLD_' . substr($phrase_key, 7); @@ -1796,12 +1795,8 @@ $fields_hash = Array (); // copy column phrase main translation into field phrase column translation - for ($i = 1; $i <= $language_count; $i++) { - if ( !$ml_helper->LanguageFound($i) ) { - continue; - } - - $fields_hash['l' . $i . '_ColumnTranslation'] = $phrase_info['l' . $i . '_Translation']; + foreach ($languages as $language_id) { + $fields_hash['l' . $language_id . '_ColumnTranslation'] = $phrase_info['l' . $language_id . '_Translation']; } $delete_ids[] = $phrase_info['PhraseId'];