Added translations (without translating)

This commit is contained in:
redgl0w
2020-01-10 07:55:58 +01:00
parent ae91706bce
commit 71ad0cce74
8 changed files with 34 additions and 7 deletions

View File

@@ -26,6 +26,7 @@ i18n_files += $(addprefix apps/external/,\
base.es.i18n\
base.fr.i18n\
base.pt.i18n\
base.universal.i18n\
)
$(eval $(call depends_on_image,apps/external/app.cpp,apps/external/external_icon.png))

View File

@@ -2,3 +2,8 @@ ExternalApp = "External"
ExternalAppCapital = "EXTERNAL"
ExternalAppApiMismatch = "API mismatch"
ExternalAppExecError = "Cannot execute file"
ExternalNotCompatible = "External is not compatible"
WithSimulator = "with the simulator"
WithN0100 = "with n0100"
GetMoreAppsAt = "Get more apps at"
NoAppsInstalled = "No apps installed"

View File

@@ -2,3 +2,8 @@ ExternalApp = "External"
ExternalAppCapital = "EXTERNAL"
ExternalAppApiMismatch = "API mismatch"
ExternalAppExecError = "Cannot execute file"
ExternalNotCompatible = "External is not compatible"
WithSimulator = "with the simulator"
WithN0100 = "with n0100"
GetMoreAppsAt = "Get more apps at"
NoAppsInstalled = "No apps installed"

View File

@@ -2,3 +2,8 @@ ExternalApp = "External"
ExternalAppCapital = "EXTERNAL"
ExternalAppApiMismatch = "API mismatch"
ExternalAppExecError = "Cannot execute file"
ExternalNotCompatible = "External is not compatible"
WithSimulator = "with the simulator"
WithN0100 = "with n0100"
GetMoreAppsAt = "Get more apps at"
NoAppsInstalled = "No apps installed"

View File

@@ -2,3 +2,8 @@ ExternalApp = "External"
ExternalAppCapital = "EXTERNAL"
ExternalAppApiMismatch = "API mismatch"
ExternalAppExecError = "Cannot execute file"
ExternalNotCompatible = "External is not compatible"
WithSimulator = "with the simulator"
WithN0100 = "with n0100"
GetMoreAppsAt = "Get more apps at"
NoAppsInstalled = "No apps installed"

View File

@@ -2,3 +2,8 @@ ExternalApp = "External"
ExternalAppCapital = "EXTERNAL"
ExternalAppApiMismatch = "API mismatch"
ExternalAppExecError = "Cannot execute file"
ExternalNotCompatible = "External is not compatible"
WithSimulator = "with the simulator"
WithN0100 = "with n0100"
GetMoreAppsAt = "Get more apps at"
NoAppsInstalled = "No apps installed"

1
apps/external/base.universal.i18n vendored Normal file
View File

@@ -0,0 +1 @@
URL = "zardam.github.io/nw-external-apps/"

View File

@@ -89,25 +89,25 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
#ifdef DEVICE
if(Ion::fccId() == "2ALWP-N0100"){
if(index == 0){
myTextCell->setText("External is not compatible");
myTextCell->setText(I18n::translate(I18n::Message::ExternalNotCompatible));
myTextCell->setTextColor(Palette::Red);
} else {
myTextCell->setText("with n0100");
myTextCell->setText(I18n::translate(I18n::Message::WithN0100));
myTextCell->setTextColor(Palette::Red);
}
}else{
if(index == k_numberOfCells-1){
myTextCell->setText("zardam.github.io/nw-external-apps/");
myTextCell->setText(I18n::translate(I18n::Message::URL));
myTextCell->setTextColor(Palette::AccentText);
return;
}
if(index == k_numberOfCells-2){
myTextCell->setText("Get more apps at");
myTextCell->setText(I18n::translate(I18n::Message::GetMoreAppsAt));
myTextCell->setTextColor(Palette::AccentText);
return;
}
if(index == 0 && numberOfFiles() == 0){
myTextCell->setText("No apps installed");
myTextCell->setText(I18n::translate(I18n::Message::NoAppsInstalled));
myTextCell->setTextColor(Palette::Red);
}
if(numberOfFiles() > 0){
@@ -119,10 +119,10 @@ void MainController::willDisplayCellForIndex(HighlightCell * cell, int index) {
}
#else
if(index == 0){
myTextCell->setText("External is not compatible");
myTextCell->setText(I18n::translate(I18n::Message::ExternalNotCompatible));
myTextCell->setTextColor(Palette::Red);
} else {
myTextCell->setText("with the simulator");
myTextCell->setText(I18n::translate(I18n::Message::WithSimulator));
myTextCell->setTextColor(Palette::Red);
}
#endif