mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 15:32:59 +02:00
Imageinfo: add lua API info
Conflicts: data/locale/deutsch.locale data/locale/english.locale data/locale/nederlands.locale src/system/locals.h src/system/locals_intern.h
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -38,9 +38,13 @@
|
||||
#include <string>
|
||||
#include <daemonc/remotecontrol.h>
|
||||
#include <system/flashtool.h>
|
||||
#include <system/helpers.h>
|
||||
#include "version.h"
|
||||
#include <gui/buildinfo.h>
|
||||
#define LICENSEDIR DATADIR "/neutrino/license/"
|
||||
#ifdef ENABLE_LUA
|
||||
#include <gui/lua/lua_api_version.h>
|
||||
#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);
|
||||
|
@@ -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,
|
||||
|
@@ -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",
|
||||
|
Reference in New Issue
Block a user