[apps][escher] I18n

Change-Id: I4d6f40155a8a182184af9ef2a583d0469196ffd5
This commit is contained in:
Émilie Feral
2017-03-14 16:21:36 +01:00
parent a1442674c7
commit adc80cd71b
207 changed files with 1384 additions and 669 deletions

View File

@@ -16,8 +16,8 @@ VariableBoxController::ContentViewController::ContentViewController(Responder *
{
}
const char * VariableBoxController::ContentViewController::title() const {
return "Variable";
const char * VariableBoxController::ContentViewController::title() {
return I18n::translate(I18n::Message::Variables);
}
View * VariableBoxController::ContentViewController::view() {
@@ -106,9 +106,9 @@ int VariableBoxController::ContentViewController::reusableCellCount(int type) {
void VariableBoxController::ContentViewController::willDisplayCellForIndex(HighlightCell * cell, int index) {
if (m_currentPage == Page::RootMenu) {
const char * label = nodeLabelAtIndex(index);
I18n::Message label = nodeLabelAtIndex(index);
PointerTableCell * myCell = (PointerTableCell *)cell;
myCell->setText(label);
myCell->setMessage(label);
return;
}
VariableBoxLeafCell * myCell = (VariableBoxLeafCell *)cell;
@@ -213,9 +213,9 @@ void VariableBoxController::ContentViewController::putLabelAtIndexInBuffer(int i
}
}
const char * VariableBoxController::ContentViewController::nodeLabelAtIndex(int index) {
I18n::Message VariableBoxController::ContentViewController::nodeLabelAtIndex(int index) {
assert(m_currentPage == Page::RootMenu);
const char * labels[3] = {"Nombre", "Liste", "Matrice"};
I18n::Message labels[3] = {I18n::Message::Number, I18n::Message::List, I18n::Message::Matrix};
return labels[index];
}