1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-11-23 04:45:54 +02:00

Fix translations in user directory not correctly loaded

This commit is contained in:
Paul Cercueil 2013-07-18 17:14:21 -04:00
parent 32d100ee2a
commit 9029deceeb

View File

@ -820,10 +820,14 @@ void GMenu2X::options() {
#endif #endif
bool showRootFolder = fileExists(CARD_ROOT); bool showRootFolder = fileExists(CARD_ROOT);
FileLister fl_tr(getHome() + "/translations"); FileLister fl_tr(GMENU2X_SYSTEM_DIR "/translations");
fl_tr.browse(); fl_tr.browse();
fl_tr.setPath(GMENU2X_SYSTEM_DIR "/translations", false);
string tr_path = getHome() + "/translations";
if (fileExists(tr_path)) {
fl_tr.setPath(tr_path, false);
fl_tr.browse(false); fl_tr.browse(false);
}
fl_tr.insertFile("English"); fl_tr.insertFile("English");
string lang = tr.lang(); string lang = tr.lang();