[apps] Split the i18n in multiple files

A Python script aggregates all i18n files and merges them.
We now can pick a list of locales to build in EPSILON_I18N_LANGUAGES
This commit is contained in:
Romain Goyet
2017-09-28 17:11:39 +02:00
committed by Ecco
parent 4a0e4af52f
commit e6ed6c74a4
89 changed files with 1621 additions and 889 deletions

View File

@@ -196,10 +196,8 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
return;
}
if (index == 4) {
I18n::Message languages[I18n::NumberOfLanguages] = {I18n::Message::English, I18n::Message::French, I18n::Message::Spanish, I18n::Message::German, I18n::Message::Portuguese};
int index = (int)GlobalPreferences::sharedGlobalPreferences()->language()-1;
MessageTableCellWithChevronAndMessage * myTextCell = static_cast<MessageTableCellWithChevronAndMessage *>(cell);
myTextCell->setSubtitle(languages[index]);
static_cast<MessageTableCellWithChevronAndMessage *>(cell)->setSubtitle(I18n::LanguageNames[index]);
return;
}
#if OS_WITH_SOFTWARE_UPDATE_PROMPT