From e3105b8c29038e124a00bb8890477b10c2afdf30 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 21 Oct 2018 23:56:22 +0200 Subject: [PATCH] identify self-made images Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/551cd5f289c39fe52222d6f282b85e935494fb65 Author: vanhofen Date: 2018-10-21 (Sun, 21 Oct 2018) Origin message was: ------------------ - identify self-made images --- 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 d82be524f..fdac5a8f7 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -774,6 +774,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 c0dd96832..b50d25380 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -774,6 +774,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 761b44f20..65a7ba4e9 100644 --- a/src/system/flashtool.cpp +++ b/src/system/flashtool.cpp @@ -557,6 +557,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 8357d4084..7dba9c2d2 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -801,6 +801,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 92c25c9f2..c30e4f8fb 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -801,6 +801,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",