summaryrefslogtreecommitdiff
path: root/src/modules/langpack
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-04 14:14:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-04 14:14:58 +0000
commitf5baf2606966349e067d423a596722b66c401651 (patch)
treed501fa4b011c2c074b12e48284f5f2b824d971b0 /src/modules/langpack
parentfc477d493da24a91dd9d095fbcf74a9b09c15fa8 (diff)
- internal langpack preparation for hLangpack-dependent resource cleaning
- langpack functions' names normalization (2Awk: safe for plugins written in Delphi) git-svn-id: http://svn.miranda-ng.org/main/trunk@758 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/langpack')
-rw-r--r--src/modules/langpack/lpservices.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp
index e828a85c6a..b7ae5ef563 100644
--- a/src/modules/langpack/lpservices.cpp
+++ b/src/modules/langpack/lpservices.cpp
@@ -22,8 +22,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
#include "..\..\core\commonheaders.h"
-MIR_CORE_DLL(int) LangPackMarkPluginLoaded(PLUGININFOEX* pInfo);
-
/////////////////////////////////////////////////////////////////////////////////////////
static INT_PTR srvTranslateString(WPARAM wParam, LPARAM lParam)
@@ -45,7 +43,7 @@ static INT_PTR srvTranslateMenu(WPARAM wParam, LPARAM lParam)
static INT_PTR srvRegisterLP(WPARAM wParam, LPARAM lParam)
{
- *(int*)wParam = LangPackMarkPluginLoaded((PLUGININFOEX*)lParam);
+ *(int*)wParam = Langpack_MarkPluginLoaded((PLUGININFOEX*)lParam);
return 0;
}
@@ -53,14 +51,14 @@ static INT_PTR srvRegisterLP(WPARAM wParam, LPARAM lParam)
static INT_PTR srvGetDefaultCodePage(WPARAM, LPARAM)
{
- return LangPackGetDefaultCodePage();
+ return Langpack_GetDefaultCodePage();
}
/////////////////////////////////////////////////////////////////////////////////////////
static INT_PTR srvGetDefaultLocale(WPARAM, LPARAM)
{
- return LangPackGetDefaultLocale();
+ return Langpack_GetDefaultLocale();
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -73,7 +71,7 @@ static INT_PTR srvPcharToTchar(WPARAM wParam, LPARAM lParam)
int len = (int)strlen(pszStr);
TCHAR* result = (TCHAR*)alloca((len+1)*sizeof(TCHAR));
- MultiByteToWideChar(LangPackGetDefaultCodePage(), 0, pszStr, -1, result, len);
+ MultiByteToWideChar(Langpack_GetDefaultCodePage(), 0, pszStr, -1, result, len);
result[len] = 0;
return (INT_PTR)mir_wstrdup( TranslateW_LP(result, wParam));
}