1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:31:04 +03:00

Load the localized title and description of an OPK if available

This commit is contained in:
Paul Cercueil 2013-07-20 21:21:36 -04:00
parent 9f29618f2e
commit a682d10657

View File

@ -114,10 +114,14 @@ LinkApp::LinkApp(GMenu2X *gmenu2x_, Touchscreen &ts, InputManager &inputMgr_,
category = category.substr(0, pos);
file += category + '/' + opkMount;
} else if (!strncmp(key, "Name", lkey)) {
} else if ((!strncmp(key, "Name", lkey) && title.empty())
|| !strncmp(key, ("Name[" + gmenu2x->tr["Lng"] +
"]").c_str(), lkey)) {
title = buf;
} else if (!strncmp(key, "Comment", lkey)) {
} else if ((!strncmp(key, "Comment", lkey) && description.empty())
|| !strncmp(key, ("Comment[" +
gmenu2x->tr["Lng"] + "]").c_str(), lkey)) {
description = buf;
#if defined(PLATFORM_A320) || defined(PLATFORM_GCW0)