From a682d1065782a570b2c9ed679ba96e8bdb599655 Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Sat, 20 Jul 2013 21:21:36 -0400 Subject: [PATCH] Load the localized title and description of an OPK if available --- src/linkapp.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/linkapp.cpp b/src/linkapp.cpp index 650c957..b3dc7ee 100644 --- a/src/linkapp.cpp +++ b/src/linkapp.cpp @@ -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)