Update languages
This commit is contained in:
@@ -446,6 +446,9 @@ STR_UPTIME: "Uptime"
|
||||
STR_CHARGING: "Charging"
|
||||
STR_GATHERING_DATA: "Gathering data..."
|
||||
STR_READING: "Reading..."
|
||||
STR_UNSUPPORTED_IMAGE_FORMAT: "Unsupported image format"
|
||||
STR_COULD_NOT_RENDER_IMAGE: "Could not render image"
|
||||
STR_FAILED_TO_SET_SLEEP_SCREEN: "Failed to set sleep screen"
|
||||
STR_SET_SLEEP_SCREEN: "Set Sleep"
|
||||
STR_SLEEP_SCREEN_SET: "Sleep screen updated!"
|
||||
STR_WEATHER_MOON_INFO: "Moon"
|
||||
|
||||
@@ -66,6 +66,10 @@ STR_SLEEP_COVER_MODE: "Standby-Bildmodus"
|
||||
STR_HIDE_BATTERY: "Batterie % ausblenden"
|
||||
STR_EXTRA_SPACING: "Absatzabstand"
|
||||
STR_TEXT_AA: "Schriftglättung"
|
||||
STR_IMAGE_DITHERING: "Bild-Dithering"
|
||||
STR_IMAGE_DITHER_BAYER: "Bayer"
|
||||
STR_IMAGE_DITHER_ATKINSON: "Atkinson"
|
||||
STR_IMAGE_DITHER_DIFFUSED_BAYER: "Diffundiertes Bayer"
|
||||
STR_SHORT_PWR_BTN: "An-Taste kurz drücken"
|
||||
STR_ORIENTATION: "Leseausrichtung"
|
||||
STR_SIDE_BTN_LAYOUT: "Seitliche Tasten (Lesen)"
|
||||
@@ -320,6 +324,11 @@ STR_UPTIME: "Laufzeit"
|
||||
STR_CHARGING: "Lädt"
|
||||
STR_GATHERING_DATA: "Daten werden gesammelt..."
|
||||
STR_READING: "Lese..."
|
||||
STR_UNSUPPORTED_IMAGE_FORMAT: "Nicht unterstütztes Bildformat"
|
||||
STR_COULD_NOT_RENDER_IMAGE: "Bild konnte nicht dargestellt werden"
|
||||
STR_FAILED_TO_SET_SLEEP_SCREEN: "Standby-Bild konnte nicht gesetzt werden"
|
||||
STR_SET_SLEEP_SCREEN: "Standby-Bild setzen"
|
||||
STR_SLEEP_SCREEN_SET: "Standby-Bild aktualisiert!"
|
||||
|
||||
STR_WEATHER: "Wetter"
|
||||
STR_WEATHER_LOCATION: "Ort"
|
||||
|
||||
@@ -108,13 +108,13 @@ bool BmpViewerActivity::renderCurrentImage(const bool showControls) {
|
||||
void BmpViewerActivity::onEnter() {
|
||||
Activity::onEnter();
|
||||
if (!isSupportedImageFile(filePath)) {
|
||||
renderError("Unsupported image format");
|
||||
renderError(tr(STR_UNSUPPORTED_IMAGE_FORMAT));
|
||||
return;
|
||||
}
|
||||
|
||||
const bool rendered = renderCurrentImage();
|
||||
if (!rendered) {
|
||||
renderError("Could not render image");
|
||||
renderError(tr(STR_COULD_NOT_RENDER_IMAGE));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -235,7 +235,7 @@ void BmpViewerActivity::cycleDitherMode() {
|
||||
imageDitherSettingsDirty = (imageDitherMode != initialImageDitherMode);
|
||||
|
||||
if (!renderCurrentImage()) {
|
||||
renderError("Could not render image");
|
||||
renderError(tr(STR_COULD_NOT_RENDER_IMAGE));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,7 +266,7 @@ void BmpViewerActivity::setAsSleepScreen() {
|
||||
if (FsHelpers::hasBmpExtension(filePath)) {
|
||||
success = (filePath == SLEEP_BMP_PATH) ? true : Storage.copyFile("BMP", filePath, SLEEP_BMP_PATH);
|
||||
} else {
|
||||
const bool renderedForCapture = isBmpFile(filePath) ? renderBmpImage(false) : renderDecodedImage(false);
|
||||
const bool renderedForCapture = renderDecodedImage(false);
|
||||
if (renderedForCapture) {
|
||||
Storage.remove(SLEEP_BMP_TMP_PATH);
|
||||
if (ScreenshotUtil::saveFramebufferAsBmp(SLEEP_BMP_TMP_PATH, renderer.getFrameBuffer(), display.getDisplayWidth(),
|
||||
@@ -282,7 +282,7 @@ void BmpViewerActivity::setAsSleepScreen() {
|
||||
|
||||
if (!success) {
|
||||
LOG_ERR("BMP", "Failed to set %s as sleep screen", filePath.c_str());
|
||||
GUI.drawPopup(renderer, "Failed to set sleep screen");
|
||||
GUI.drawPopup(renderer, tr(STR_FAILED_TO_SET_SLEEP_SCREEN));
|
||||
renderer.displayBuffer(HalDisplay::HALF_REFRESH);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user