diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 5ad21a3c1..345ead3f3 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -594,6 +594,7 @@ imageinfo.image Image: imageinfo.kernel Kernel: imageinfo.license Lizenz: imageinfo.version Version: +imageinfo.vcs Git: inetradio.name Internetradio infoviewer.epgnotload Informationen noch nicht geladen... infoviewer.epgwait Warte auf EPG-Informationen... diff --git a/data/locale/english.locale b/data/locale/english.locale index 3c06a634c..a1c07e52a 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -594,6 +594,7 @@ imageinfo.image Image: imageinfo.kernel Kernel: imageinfo.license License: imageinfo.version Version: +imageinfo.vcs Git: inetradio.name Internetradio infoviewer.epgnotload EPG not loaded.... infoviewer.epgwait waiting for EPG... diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 57437c477..11fd9118f 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -40,8 +40,7 @@ #include #include "version.h" -#define GIT_DESC "GIT Desc.:" -#define GIT_REV "GIT Build:" + #define LICENSEDIR DATADIR "/neutrino/license/" using namespace std; @@ -168,13 +167,13 @@ void CImageInfo::InitInfos() { v_info.clear(); -#ifdef GITVERSION - const char * builddate = GITVERSION; +#ifdef BUILT_DATE + const char * builddate = BUILT_DATE; #else - const char * builddate = config.getString("builddate", BUILT_DATE).c_str(); + const char * builddate = config.getString("builddate", "n/a").c_str(); #endif - const char * _version = config.getString("version", "no version").c_str(); + const char * _version = config.getString("version", "n/a").c_str(); static CFlashVersionInfo versionInfo(_version); std::string version_string; @@ -186,10 +185,14 @@ void CImageInfo::InitInfos() image_info_t imagename = {LOCALE_IMAGEINFO_IMAGE, config.getString("imagename", "Neutrino-HD")}; v_info.push_back(imagename); - image_info_t date = {LOCALE_IMAGEINFO_DATE, builddate}; - v_info.push_back(date); image_info_t version = {LOCALE_IMAGEINFO_VERSION, version_string}; v_info.push_back(version); +#ifdef VCS + image_info_t vcs = {LOCALE_IMAGEINFO_VCS, VCS}; + v_info.push_back(vcs); +#endif + image_info_t date = {LOCALE_IMAGEINFO_DATE, builddate}; + v_info.push_back(date); if (uname(&uts_info) == 0) { image_info_t kernel = {LOCALE_IMAGEINFO_KERNEL, uts_info.release}; v_info.push_back(kernel); diff --git a/src/system/locals.h b/src/system/locals.h index 75b97d407..1e894c219 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -621,6 +621,7 @@ typedef enum LOCALE_IMAGEINFO_KERNEL, LOCALE_IMAGEINFO_LICENSE, LOCALE_IMAGEINFO_VERSION, + LOCALE_IMAGEINFO_VCS, LOCALE_INETRADIO_NAME, LOCALE_INFOVIEWER_EPGNOTLOAD, LOCALE_INFOVIEWER_EPGWAIT, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index e0238f57c..3fce2b016 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -621,6 +621,7 @@ const char * locale_real_names[] = "imageinfo.kernel", "imageinfo.license", "imageinfo.version", + "imageinfo.vcs", "inetradio.name", "infoviewer.epgnotload", "infoviewer.epgwait",