From 5d9749b1a03df05730405180c832a3f1dcf1bed5 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sun, 21 Oct 2018 23:56:22 +0200 Subject: [PATCH] - identify self-made images Signed-off-by: GetAway --- data/locale/deutsch.locale | 1 + data/locale/english.locale | 1 + src/system/flashtool.cpp | 2 ++ src/system/locals.h | 1 + src/system/locals_intern.h | 1 + 5 files changed, 6 insertions(+) diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index d33b344b0..23888b6f1 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -754,6 +754,7 @@ flashupdate.type_beta Beta flashupdate.type_locale Sprachdatei flashupdate.type_nightly Nightly flashupdate.type_release Release +flashupdate.type_selfmade Eigenbau flashupdate.type_settings Einstellungen flashupdate.type_text Text flashupdate.type_unknown Unbekannt diff --git a/data/locale/english.locale b/data/locale/english.locale index 961404680..3483b63df 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -754,6 +754,7 @@ flashupdate.type_beta Beta flashupdate.type_locale Locale flashupdate.type_nightly Nightly flashupdate.type_release Release +flashupdate.type_selfmade Self made flashupdate.type_settings Settings flashupdate.type_text Text flashupdate.type_unknown Unknown diff --git a/src/system/flashtool.cpp b/src/system/flashtool.cpp index 7c22d5b51..f0db0348e 100644 --- a/src/system/flashtool.cpp +++ b/src/system/flashtool.cpp @@ -539,6 +539,8 @@ const char *CFlashVersionInfo::getType(bool localized) const return (localized ? g_Locale->getText(LOCALE_FLASHUPDATE_TYPE_BETA) : "Beta"); case '2': return (localized ? g_Locale->getText(LOCALE_FLASHUPDATE_TYPE_NIGHTLY) : "Nightly"); + case '9': + return (localized ? g_Locale->getText(LOCALE_FLASHUPDATE_TYPE_SELFMADE) : "Self-made"); case 'L': return (localized ? g_Locale->getText(LOCALE_FLASHUPDATE_TYPE_LOCALE) : "Locale"); case 'S': diff --git a/src/system/locals.h b/src/system/locals.h index 44eaf1cd7..62fc66b95 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -781,6 +781,7 @@ typedef enum LOCALE_FLASHUPDATE_TYPE_LOCALE, LOCALE_FLASHUPDATE_TYPE_NIGHTLY, LOCALE_FLASHUPDATE_TYPE_RELEASE, + LOCALE_FLASHUPDATE_TYPE_SELFMADE, LOCALE_FLASHUPDATE_TYPE_SETTINGS, LOCALE_FLASHUPDATE_TYPE_TEXT, LOCALE_FLASHUPDATE_TYPE_UNKNOWN, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index b8e334632..272a4008b 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -781,6 +781,7 @@ const char * locale_real_names[] = "flashupdate.type_locale", "flashupdate.type_nightly", "flashupdate.type_release", + "flashupdate.type_selfmade", "flashupdate.type_settings", "flashupdate.type_text", "flashupdate.type_unknown",