[apps/i18n] Remove Language::Default

We never translate a i18n message to something else than the currrent
language selected
This commit is contained in:
Léa Saviot
2020-04-06 11:41:26 +02:00
committed by EmilieNumworks
parent c58456a058
commit 19b5653851
6 changed files with 10 additions and 17 deletions

View File

@@ -164,7 +164,7 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
MessageTableCell * myCell = (MessageTableCell *)cell;
myCell->setMessage(title);
if (index == k_indexOfLanguageCell) {
int index = (int)globalPreferences->language()-1;
int index = (int)(globalPreferences->language());
static_cast<MessageTableCellWithChevronAndMessage *>(cell)->setSubtitle(I18n::LanguageNames[index]);
return;
}