[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

@@ -1,6 +1,7 @@
#include "language_controller.h"
#include "../global_preferences.h"
#include "../apps_container.h"
#include "../i18n.h"
namespace Shared {
@@ -60,9 +61,7 @@ int LanguageController::reusableCellCount() {
}
void LanguageController::willDisplayCellForIndex(HighlightCell * cell, int index) {
MessageTableCell * myCell = (MessageTableCell *) cell;
I18n::Message languages[I18n::NumberOfLanguages] = {I18n::Message::English, I18n::Message::French, I18n::Message::Spanish, I18n::Message::German, I18n::Message::Portuguese};
myCell->setMessage(languages[index]);
static_cast<MessageTableCell *>(cell)->setMessage(I18n::LanguageNames[index]);
}
}