diff --git a/data/locale/deutsch.locale b/data/locale/deutsch.locale index ef6bbfb99..fc15ae55b 100644 --- a/data/locale/deutsch.locale +++ b/data/locale/deutsch.locale @@ -780,6 +780,7 @@ hdd_statfs_recording nur während Aufnahme hdd_umount Aushängen hdd_umount_warn Laufwerk aushängen hdd_umounted Laufwerk entfernt +imageinfo.api API: imageinfo.creator Ersteller: imageinfo.date Datum: imageinfo.dokumentation Dokus: @@ -789,7 +790,6 @@ imageinfo.homepage Homepage: imageinfo.image Image: imageinfo.kernel Kernel: imageinfo.license Lizenz -imageinfo.lua LUA-API: imageinfo.vcs Git: imageinfo.version Version: inetradio.name Internetradio diff --git a/data/locale/english.locale b/data/locale/english.locale index 4b11dcf6f..3ef0ab02c 100644 --- a/data/locale/english.locale +++ b/data/locale/english.locale @@ -780,6 +780,7 @@ hdd_statfs_recording while recording only hdd_umount Unmount hdd_umount_warn unmount device hdd_umounted Device removed +imageinfo.api API: imageinfo.creator Creator: imageinfo.date Date: imageinfo.dokumentation Docs: @@ -789,7 +790,6 @@ imageinfo.homepage Home page: imageinfo.image Image: imageinfo.kernel Kernel: imageinfo.license License -imageinfo.lua LUA-API: imageinfo.vcs Git: imageinfo.version Version: inetradio.name Internetradio diff --git a/data/locale/nederlands.locale b/data/locale/nederlands.locale index 58960ab60..0deb34b3c 100644 --- a/data/locale/nederlands.locale +++ b/data/locale/nederlands.locale @@ -725,6 +725,7 @@ hdd_statfs_recording alleen tijdens opname hdd_umount Unmount hdd_umount_warn Apparaat ontkoppelen hdd_umounted Device verwijderd +imageinfo.api API: imageinfo.creator Ontwikkelaar: imageinfo.date Datum: imageinfo.dokumentation Documentatie: @@ -734,7 +735,6 @@ imageinfo.homepage Website: imageinfo.image Image: imageinfo.kernel Kernel: imageinfo.license Licentie -imageinfo.lua LUA-API: imageinfo.vcs Git: imageinfo.version Versie: inetradio.name Internetradio diff --git a/data/locale/slovak.locale b/data/locale/slovak.locale index 1faf8c62b..9088325c2 100644 --- a/data/locale/slovak.locale +++ b/data/locale/slovak.locale @@ -775,6 +775,7 @@ hdd_statfs_recording len pri nahrávaní hdd_umount Odpojenie hdd_umount_warn Chyba odpájania disku! hdd_umounted Zariadenie odstránené +imageinfo.api API: imageinfo.creator Vytvoril: imageinfo.date Dátum: imageinfo.dokumentation Dokumentácia: @@ -784,7 +785,6 @@ imageinfo.homepage Adresa: imageinfo.image Image: imageinfo.kernel Jadro: imageinfo.license Licencia: -imageinfo.lua LUA-API: imageinfo.vcs Git: imageinfo.version Verzia: inetradio.name Internetové rádio diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 6a6b499ac..a9ce4fd20 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -38,9 +38,13 @@ #include #include #include +#include #include "version.h" #include #define LICENSEDIR DATADIR "/neutrino/license/" +#ifdef ENABLE_LUA +#include +#endif using namespace std; @@ -294,6 +298,12 @@ void CImageInfo::InitInfoData() #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); +#endif + 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); diff --git a/src/system/locals.h b/src/system/locals.h index 1a132b51a..a80e31df8 100644 --- a/src/system/locals.h +++ b/src/system/locals.h @@ -807,6 +807,7 @@ typedef enum LOCALE_HDD_UMOUNT, LOCALE_HDD_UMOUNT_WARN, LOCALE_HDD_UMOUNTED, + LOCALE_IMAGEINFO_API, LOCALE_IMAGEINFO_CREATOR, LOCALE_IMAGEINFO_DATE, LOCALE_IMAGEINFO_DOKUMENTATION, @@ -816,7 +817,6 @@ typedef enum LOCALE_IMAGEINFO_IMAGE, LOCALE_IMAGEINFO_KERNEL, LOCALE_IMAGEINFO_LICENSE, - LOCALE_IMAGEINFO_LUA, LOCALE_IMAGEINFO_VCS, LOCALE_IMAGEINFO_VERSION, LOCALE_INETRADIO_NAME, diff --git a/src/system/locals_intern.h b/src/system/locals_intern.h index 1e6ca26e5..d759559ab 100644 --- a/src/system/locals_intern.h +++ b/src/system/locals_intern.h @@ -807,6 +807,7 @@ const char * locale_real_names[] = "hdd_umount", "hdd_umount_warn", "hdd_umounted", + "imageinfo.api", "imageinfo.creator", "imageinfo.date", "imageinfo.dokumentation", @@ -816,7 +817,6 @@ const char * locale_real_names[] = "imageinfo.image", "imageinfo.kernel", "imageinfo.license", - "imageinfo.lua", "imageinfo.vcs", "imageinfo.version", "inetradio.name",