summaryrefslogtreecommitdiff
path: root/src/modules/langpack
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/langpack')
-rw-r--r--src/modules/langpack/lpservices.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp
index 36f9e3c40b..01a1f9cf07 100644
--- a/src/modules/langpack/lpservices.cpp
+++ b/src/modules/langpack/lpservices.cpp
@@ -80,7 +80,7 @@ static INT_PTR srvPcharToTchar(WPARAM wParam, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
-INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
+static INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
{
ReloadLangpack(( TCHAR* )lParam);
return 0;
@@ -88,6 +88,13 @@ INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
/////////////////////////////////////////////////////////////////////////////////////////
+static INT_PTR srvGetPluginLangpack(WPARAM wParam, LPARAM lParam)
+{
+ return GetPluginLangByInstance(( HINSTANCE )lParam);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
MIR_CORE_DLL(int) LoadLangPackModule(void);
int LoadLangpackModule(void)
@@ -101,5 +108,7 @@ int LoadLangpackModule(void)
CreateServiceFunction(MS_LANGPACK_PCHARTOTCHAR, srvPcharToTchar);
CreateServiceFunction(MS_LANGPACK_REGISTER, srvRegisterLP);
CreateServiceFunction(MS_LANGPACK_RELOAD, srvReloadLangpack);
+ CreateServiceFunction(MS_LANGPACK_LOOKUPHANDLE, srvGetPluginLangpack);
+
return 0;
}