diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index 59493f971..8171dacd0 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -900,6 +900,7 @@ imageinfo.creator Ersteller: imageinfo.date Datum: imageinfo.dokumentation Dokus: imageinfo.forum Forum: +imageinfo.gui GUI: imageinfo.head Image-Informationen imageinfo.homepage Homepage: imageinfo.image Image: diff --git a/data/locale/english.locale b/data/locale/english.locale index c2cfdfd20..4e460d07a 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -900,6 +900,7 @@ imageinfo.creator Creator: imageinfo.date Date: imageinfo.dokumentation Docs: imageinfo.forum Forum: +imageinfo.gui GUI: imageinfo.head Image informations imageinfo.homepage Home page: imageinfo.image Image: diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index c52fffd80..4a61b8a94 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -17,10 +17,8 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. - You should have received a copy of the GNU General Public - License along with this program; if not, write to the - Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, - Boston, MA 02110-1301, USA. + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #ifdef HAVE_CONFIG_H @@ -299,20 +297,36 @@ void CImageInfo::InitInfoData() }else printf("[CImageInfo]\t[%s - %d], WARNING! %s contains possible wrong version format, content = [%s]\n", __func__, __LINE__, VERSION_FILE, version_string.c_str()); #endif - struct utsname uts_info; image_info_t imagename = {LOCALE_IMAGEINFO_IMAGE, config.getString("imagename", PACKAGE_NAME)}; - v_info.push_back(imagename); if (!version_string.empty()){ image_info_t version = {LOCALE_IMAGEINFO_VERSION, version_string}; - v_info.push_back(version); + imagename.info_text += " "; + imagename.info_text += version_string; + v_info.push_back(imagename); + }else + v_info.push_back(imagename); + + struct utsname uts_info; + if (uname(&uts_info) == 0) { + image_info_t kernel = {LOCALE_IMAGEINFO_KERNEL, uts_info.release}; + v_info.push_back(kernel); } + + image_info_t date = {LOCALE_IMAGEINFO_DATE, builddate}; + v_info.push_back(date); + + image_info_t creator = {LOCALE_IMAGEINFO_CREATOR, config.getString("creator", "n/a")}; + v_info.push_back(creator); + + image_info_t gui = {LOCALE_IMAGEINFO_GUI, config.getString("gui", PACKAGE_NAME)}; + v_info.push_back(gui); + #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); + string s_api; #ifdef ENABLE_LUA s_api += "LUA " + to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR); @@ -330,12 +344,7 @@ void CImageInfo::InitInfoData() s_api += YHTTPD_VERSION; image_info_t api = {LOCALE_IMAGEINFO_API, s_api}; v_info.push_back(api); - if (uname(&uts_info) == 0) { - image_info_t kernel = {LOCALE_IMAGEINFO_KERNEL, uts_info.release}; - v_info.push_back(kernel); - } - image_info_t creator = {LOCALE_IMAGEINFO_CREATOR, config.getString("creator", "n/a")}; - v_info.push_back(creator); + image_info_t www = {LOCALE_IMAGEINFO_HOMEPAGE, config.getString("homepage", "n/a")}; v_info.push_back(www); image_info_t doc = {LOCALE_IMAGEINFO_DOKUMENTATION, config.getString("docs", "http://wiki.neutrino-hd.de")}; diff --git a/src/system/locals.h b/src/system/locals.h index bfd80a50a..782358ed2 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -927,6 +927,7 @@ typedef enum LOCALE_IMAGEINFO_DATE, LOCALE_IMAGEINFO_DOKUMENTATION, LOCALE_IMAGEINFO_FORUM, + LOCALE_IMAGEINFO_GUI, LOCALE_IMAGEINFO_HEAD, LOCALE_IMAGEINFO_HOMEPAGE, LOCALE_IMAGEINFO_IMAGE, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 2687d4843..8bd1e39b7 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -927,6 +927,7 @@ const char * locale_real_names[] = "imageinfo.date", "imageinfo.dokumentation", "imageinfo.forum", + "imageinfo.gui", "imageinfo.head", "imageinfo.homepage", "imageinfo.image",