summaryrefslogtreecommitdiff
path: root/src/modules/langpack/lpservices.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-03 20:59:43 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-03 20:59:43 +0000
commit81ff20eeeb59aa2c72b737d7c6e18baa1a2478d5 (patch)
tree23ba4f180287ca66042c1d90c06d0816b4b99165 /src/modules/langpack/lpservices.cpp
parentd08dc5de734505b7016a517e27f7ab6eef06e271 (diff)
MS_LANGPACK_RELOAD - dynamically reloads a language pack
git-svn-id: http://svn.miranda-ng.org/main/trunk@290 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/langpack/lpservices.cpp')
-rw-r--r--src/modules/langpack/lpservices.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp
index 3f7ae689e6..48c0aea155 100644
--- a/src/modules/langpack/lpservices.cpp
+++ b/src/modules/langpack/lpservices.cpp
@@ -124,16 +124,22 @@ static INT_PTR LPRegister(WPARAM wParam, LPARAM lParam)
return 0;
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
static INT_PTR GetDefaultCodePage(WPARAM,LPARAM)
{
return LangPackGetDefaultCodePage();
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
static INT_PTR GetDefaultLocale(WPARAM, LPARAM)
{
return LangPackGetDefaultLocale();
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
static INT_PTR PcharToTchar(WPARAM wParam, LPARAM lParam)
{
char* pszStr = ( char* )lParam;
@@ -154,6 +160,10 @@ static INT_PTR PcharToTchar(WPARAM wParam, LPARAM lParam)
#endif
}
+/////////////////////////////////////////////////////////////////////////////////////////
+
+INT_PTR ReloadLangpack(WPARAM wParam, LPARAM lParam);
+
int LoadLangPackServices(void)
{
CreateServiceFunction(MS_LANGPACK_TRANSLATESTRING,TranslateString);
@@ -163,6 +173,7 @@ int LoadLangPackServices(void)
CreateServiceFunction(MS_LANGPACK_GETLOCALE,GetDefaultLocale);
CreateServiceFunction(MS_LANGPACK_PCHARTOTCHAR,PcharToTchar);
CreateServiceFunction(MS_LANGPACK_REGISTER,LPRegister);
+ CreateServiceFunction(MS_LANGPACK_RELOAD,ReloadLangpack);
return 0;
}