We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3ceba1 commit 88dfaf6Copy full SHA for 88dfaf6
1 file changed
src/LibNppPlugin/LocalizedPlugin.cpp
@@ -45,7 +45,11 @@ void LocalizedPlugin::setLanguage() {
45
path_t LocalizedPlugin::getNativeLangFile() const {
46
path_t path;
47
if (editor().windowHandle() != 0)
48
+ // portable installation ?
49
path = pluginsHomeDir().parent_path() / path_t(L"nativeLang.xml");
50
+ if (!std::filesystem::exists(path))
51
+ // system-wide installation ?
52
+ path = pluginsConfigDir().parent_path().parent_path() / path_t(L"nativeLang.xml");
53
return path;
54
}
55
// --------------------------------------------------------------------------------------
0 commit comments