mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-11-26 19:50:35 +02:00
Fix translations in user directory not correctly loaded
This commit is contained in:
parent
32d100ee2a
commit
9029deceeb
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user