From 4e0fea1d8b8a7a7c640581d7aa0c50a85e67475c Mon Sep 17 00:00:00 2001 From: ysc3839 Date: Sat, 3 Dec 2016 20:20:26 +0800 Subject: [PATCH] Use plugin_dir variable. --- plugins/Sidebar/SidebarPlugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Sidebar/SidebarPlugin.py b/plugins/Sidebar/SidebarPlugin.py index 9b785a8e..c9e71f13 100644 --- a/plugins/Sidebar/SidebarPlugin.py +++ b/plugins/Sidebar/SidebarPlugin.py @@ -24,7 +24,7 @@ sys.path.append(plugin_dir) # To able to load geoip lib loc_cache = {} if "_" not in locals(): - _ = Translate("plugins/Sidebar/languages/") + _ = Translate(plugin_dir + "/languages/") @PluginManager.registerTo("UiRequest")