[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 @@ BoxController::BoxController(Responder * parentResponder, ButtonRowController *
{
}
const char * BoxController::title() const {
return "Boite";
const char * BoxController::title() {
return I18n::translate(I18n::Message::BoxTab);
}
View * BoxController::view() {
@@ -52,8 +52,9 @@ bool BoxController::isEmpty() const {
}
return false;
}
const char * BoxController::emptyMessage() {
return "Aucune donnee a tracer";
I18n::Message BoxController::emptyMessage() {
return I18n::Message::NoDataToPlot;
}
Responder * BoxController::defaultController() {
@@ -65,8 +66,8 @@ Responder * BoxController::tabController() const {
}
void BoxController::reloadBannerView() {
const char * calculationName[5] = {"Minimum", "Premier quartile", "Mediane", "Troisieme quartile", "Maximum"};
m_boxBannerView.setLegendAtIndex((char *)calculationName[(int)m_view.selectedQuantile()], 0);
I18n::Message calculationName[5] = {I18n::Message::Minimum, I18n::Message::FirstQuartile, I18n::Message::Median, I18n::Message::ThirdQuartile, I18n::Message::Maximum};
m_boxBannerView.setMessageAtIndex(calculationName[(int)m_view.selectedQuantile()], 0);
char buffer[Complex::bufferSizeForFloatsWithPrecision(Constant::LargeNumberOfSignificantDigits)];
CalculPointer calculationMethods[5] = {&Store::minValue, &Store::firstQuartile, &Store::median, &Store::thirdQuartile,
&Store::maxValue};