mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
Imageinfo: resort image and gui relevant entries
This commit is contained in:
@@ -806,6 +806,7 @@ imageinfo.creator Ersteller:
|
|||||||
imageinfo.date Datum:
|
imageinfo.date Datum:
|
||||||
imageinfo.dokumentation Dokus:
|
imageinfo.dokumentation Dokus:
|
||||||
imageinfo.forum Forum:
|
imageinfo.forum Forum:
|
||||||
|
imageinfo.gui GUI:
|
||||||
imageinfo.head Image-Informationen
|
imageinfo.head Image-Informationen
|
||||||
imageinfo.homepage Homepage:
|
imageinfo.homepage Homepage:
|
||||||
imageinfo.image Image:
|
imageinfo.image Image:
|
||||||
|
@@ -806,6 +806,7 @@ imageinfo.creator Creator:
|
|||||||
imageinfo.date Date:
|
imageinfo.date Date:
|
||||||
imageinfo.dokumentation Docs:
|
imageinfo.dokumentation Docs:
|
||||||
imageinfo.forum Forum:
|
imageinfo.forum Forum:
|
||||||
|
imageinfo.gui GUI:
|
||||||
imageinfo.head Image info:
|
imageinfo.head Image info:
|
||||||
imageinfo.homepage Home page:
|
imageinfo.homepage Home page:
|
||||||
imageinfo.image Image:
|
imageinfo.image Image:
|
||||||
|
@@ -17,10 +17,8 @@
|
|||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
GNU General Public License for more details.
|
GNU General Public License for more details.
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public
|
You should have received a copy of the GNU General Public License
|
||||||
License along with this program; if not, write to the
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
|
||||||
Boston, MA 02110-1301, USA.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
#ifdef HAVE_CONFIG_H
|
||||||
@@ -299,20 +297,36 @@ void CImageInfo::InitInfoData()
|
|||||||
}else
|
}else
|
||||||
printf("[CImageInfo]\t[%s - %d], WARNING! %s contains possible wrong version format, content = [%s], internal release cycle [%s]\n", __func__, __LINE__, VERSION_FILE, version_string.c_str(), RELEASE_CYCLE);
|
printf("[CImageInfo]\t[%s - %d], WARNING! %s contains possible wrong version format, content = [%s], internal release cycle [%s]\n", __func__, __LINE__, VERSION_FILE, version_string.c_str(), RELEASE_CYCLE);
|
||||||
#endif
|
#endif
|
||||||
struct utsname uts_info;
|
|
||||||
|
|
||||||
image_info_t imagename = {LOCALE_IMAGEINFO_IMAGE, config.getString("imagename", PACKAGE_NAME)};
|
image_info_t imagename = {LOCALE_IMAGEINFO_IMAGE, config.getString("imagename", PACKAGE_NAME)};
|
||||||
v_info.push_back(imagename);
|
|
||||||
if (!version_string.empty()){
|
if (!version_string.empty()){
|
||||||
image_info_t version = {LOCALE_IMAGEINFO_VERSION, version_string};
|
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
|
#ifdef VCS
|
||||||
image_info_t vcs = {LOCALE_IMAGEINFO_VCS, VCS};
|
image_info_t vcs = {LOCALE_IMAGEINFO_VCS, VCS};
|
||||||
v_info.push_back(vcs);
|
v_info.push_back(vcs);
|
||||||
#endif
|
#endif
|
||||||
image_info_t date = {LOCALE_IMAGEINFO_DATE, builddate};
|
|
||||||
v_info.push_back(date);
|
|
||||||
string s_api;
|
string s_api;
|
||||||
#ifdef ENABLE_LUA
|
#ifdef ENABLE_LUA
|
||||||
s_api += "LUA " + to_string(LUA_API_VERSION_MAJOR) + "." + to_string(LUA_API_VERSION_MINOR);
|
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;
|
s_api += YHTTPD_VERSION;
|
||||||
image_info_t api = {LOCALE_IMAGEINFO_API, s_api};
|
image_info_t api = {LOCALE_IMAGEINFO_API, s_api};
|
||||||
v_info.push_back(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")};
|
image_info_t www = {LOCALE_IMAGEINFO_HOMEPAGE, config.getString("homepage", "n/a")};
|
||||||
v_info.push_back(www);
|
v_info.push_back(www);
|
||||||
image_info_t doc = {LOCALE_IMAGEINFO_DOKUMENTATION, config.getString("docs", "http://wiki.neutrino-hd.de")};
|
image_info_t doc = {LOCALE_IMAGEINFO_DOKUMENTATION, config.getString("docs", "http://wiki.neutrino-hd.de")};
|
||||||
|
@@ -833,6 +833,7 @@ typedef enum
|
|||||||
LOCALE_IMAGEINFO_DATE,
|
LOCALE_IMAGEINFO_DATE,
|
||||||
LOCALE_IMAGEINFO_DOKUMENTATION,
|
LOCALE_IMAGEINFO_DOKUMENTATION,
|
||||||
LOCALE_IMAGEINFO_FORUM,
|
LOCALE_IMAGEINFO_FORUM,
|
||||||
|
LOCALE_IMAGEINFO_GUI,
|
||||||
LOCALE_IMAGEINFO_HEAD,
|
LOCALE_IMAGEINFO_HEAD,
|
||||||
LOCALE_IMAGEINFO_HOMEPAGE,
|
LOCALE_IMAGEINFO_HOMEPAGE,
|
||||||
LOCALE_IMAGEINFO_IMAGE,
|
LOCALE_IMAGEINFO_IMAGE,
|
||||||
|
@@ -833,6 +833,7 @@ const char * locale_real_names[] =
|
|||||||
"imageinfo.date",
|
"imageinfo.date",
|
||||||
"imageinfo.dokumentation",
|
"imageinfo.dokumentation",
|
||||||
"imageinfo.forum",
|
"imageinfo.forum",
|
||||||
|
"imageinfo.gui",
|
||||||
"imageinfo.head",
|
"imageinfo.head",
|
||||||
"imageinfo.homepage",
|
"imageinfo.homepage",
|
||||||
"imageinfo.image",
|
"imageinfo.image",
|
||||||
|
Reference in New Issue
Block a user