diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-28 11:31:31 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-01-28 11:31:31 +0000 |
commit | f91d4f5026f86b67c4ad13a71a9d54835d024482 (patch) | |
tree | c1200ac5a7cf7c73c076a581f83a2dae2c7863d4 /plugins | |
parent | cd6972996f5645c1c3fcc55a1673499b266285e6 (diff) |
- MetaContacts: translation fix (patch from Basil)
git-svn-id: http://svn.miranda-ng.org/main/trunk@3316 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/MetaContacts/src/meta_services.cpp | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/plugins/MetaContacts/src/meta_services.cpp b/plugins/MetaContacts/src/meta_services.cpp index de38597302..290d0acd52 100755 --- a/plugins/MetaContacts/src/meta_services.cpp +++ b/plugins/MetaContacts/src/meta_services.cpp @@ -1031,45 +1031,45 @@ int Meta_ModulesLoaded(WPARAM wParam, LPARAM lParam) ////////////////////////////////////////////////////////////////////////////
CLISTMENUITEM mi = { sizeof(mi) };
mi.flags = CMIM_ALL | CMIF_ICONFROMICOLIB;
-
- // main menu item
- mi.icolibItem = GetIconHandle(I_MENUOFF);
- mi.pszName = "Toggle MetaContacts Off";
- mi.pszService = "MetaContacts/OnOff";
- mi.position = 500010000;
- hMenuOnOff = Menu_AddMainMenuItem(&mi);
-
- // contact menu items
- mi.icolibItem = GetIconHandle(I_CONVERT);
- mi.position = -200010;
- mi.pszName = "Convert to MetaContact";
- mi.pszService = "MetaContacts/Convert";
- hMenuConvert = Menu_AddContactMenuItem(&mi);
-
- mi.icolibItem = GetIconHandle(I_ADD);
- mi.position = -200009;
- mi.pszName = "Add to existing MetaContact...";
- mi.pszService = "MetaContacts/AddTo";
- hMenuAdd = Menu_AddContactMenuItem(&mi);
-
- mi.icolibItem = GetIconHandle(I_EDIT);
- mi.position = -200010;
- mi.pszName = "Edit MetaContact...";
- mi.pszService = "MetaContacts/Edit";
- hMenuEdit = Menu_AddContactMenuItem(&mi);
-
- mi.icolibItem = GetIconHandle(I_SETDEFAULT);
- mi.position = -200009;
- mi.pszName = "Set as MetaContact default";
- mi.pszService = "MetaContacts/Default";
- hMenuDefault = Menu_AddContactMenuItem(&mi);
-
- mi.icolibItem = GetIconHandle(I_REMOVE);
- mi.position = -200008;
- mi.pszName = "Delete MetaContact";
- mi.pszService = "MetaContacts/Delete";
- hMenuDelete = Menu_AddContactMenuItem(&mi);
-
+ + // main menu item + mi.icolibItem = GetIconHandle(I_MENUOFF); + mi.pszName = LPGEN("Toggle MetaContacts Off"); + mi.pszService = "MetaContacts/OnOff"; + mi.position = 500010000; + hMenuOnOff = Menu_AddMainMenuItem(&mi); +
+ // contact menu items + mi.icolibItem = GetIconHandle(I_CONVERT); + mi.position = -200010; + mi.pszName = LPGEN("Convert to MetaContact"); + mi.pszService = "MetaContacts/Convert"; + hMenuConvert = Menu_AddContactMenuItem(&mi); + + mi.icolibItem = GetIconHandle(I_ADD); + mi.position = -200009; + mi.pszName = LPGEN("Add to existing MetaContact..."); + mi.pszService = "MetaContacts/AddTo"; + hMenuAdd = Menu_AddContactMenuItem(&mi); + + mi.icolibItem = GetIconHandle(I_EDIT); + mi.position = -200010; + mi.pszName = LPGEN("Edit MetaContact..."); + mi.pszService = "MetaContacts/Edit"; + hMenuEdit = Menu_AddContactMenuItem(&mi); + + mi.icolibItem = GetIconHandle(I_SETDEFAULT); + mi.position = -200009; + mi.pszName = LPGEN("Set as MetaContact default"); + mi.pszService = "MetaContacts/Default"; + hMenuDefault = Menu_AddContactMenuItem(&mi); + + mi.icolibItem = GetIconHandle(I_REMOVE); + mi.position = -200008; + mi.pszName = LPGEN("Delete MetaContact"); + mi.pszService = "MetaContacts/Delete"; + hMenuDelete = Menu_AddContactMenuItem(&mi); + mi.flags |= CMIF_HIDDEN;
mi.pszContactOwner = META_PROTO;
@@ -1105,13 +1105,13 @@ int Meta_ModulesLoaded(WPARAM wParam, LPARAM lParam) Meta_HideLinkedContacts();
if ( !Meta_IsEnabled()) {
- // modify main menu item
- mi.flags = CMIM_NAME | CMIM_ICON;
- mi.icolibItem = GetIconHandle(I_MENU);
- mi.pszName = "Toggle MetaContacts On";
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuOnOff, (LPARAM)&mi);
-
- Meta_HideMetaContacts(TRUE);
+ // modify main menu item + mi.flags = CMIM_NAME | CMIM_ICON; + mi.icolibItem = GetIconHandle(I_MENU); + mi.pszName = LPGEN("Toggle MetaContacts On"); + CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuOnOff, (LPARAM)&mi); + + Meta_HideMetaContacts(TRUE); }
else Meta_SuppressStatus(options.suppress_status);
@@ -1408,18 +1408,18 @@ INT_PTR Meta_OnOff(WPARAM wParam, LPARAM lParam) mi.flags = CMIM_NAME | CMIM_ICON;
// just write to db - the rest is handled in the Meta_SettingChanged function
if (db_get_b(0, META_PROTO, "Enabled", 1)) {
- db_set_b(0, META_PROTO, "Enabled", 0);
- // modify main mi item
- mi.icolibItem = GetIconHandle(I_MENU);
- mi.pszName = "Toggle MetaContacts On";
- } else {
- db_set_b(0, META_PROTO, "Enabled", 1);
- // modify main mi item
- mi.icolibItem = GetIconHandle(I_MENUOFF);
- mi.pszName = "Toggle MetaContacts Off";
- }
- CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuOnOff, (LPARAM)&mi);
- return 0;
+ db_set_b(0, META_PROTO, "Enabled", 0); + // modify main mi item + mi.icolibItem = GetIconHandle(I_MENU); + mi.pszName = LPGEN("Toggle MetaContacts On"); + } else { + db_set_b(0, META_PROTO, "Enabled", 1); + // modify main mi item + mi.icolibItem = GetIconHandle(I_MENUOFF); + mi.pszName = LPGEN("Toggle MetaContacts Off"); + } + CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuOnOff, (LPARAM)&mi); + return 0; }
|