String key = availablelangKeys[i];
String explLang = i18nMgr.getLanguageInEnglish(key, I18nModule.isOverlayEnabled());
String all = explLang;
if (explLang != null && !explLang.equals(key)) all += " (" + key + ")";
// count translation status
int keyCount = i18nMgr.countI18nItems(i18nMgr.getLocaleOrNull(key), null, true);
all += " <span class='b_translation_status'>" + (keyCount * 100 / referenceKeyCount) + "%</span>";
availableValues[i] = all;
}
ArrayHelper.sort(availablelangKeys, availableValues, false, true, false);
String[] availableLangCssClasses = i18nMgr.createLanguageFlagsCssClasses(availablelangKeys, "b_with_small_icon_left");