diff options
Diffstat (limited to 'langpacks/en/Plugins/historypp.txt')
-rw-r--r-- | langpacks/en/Plugins/historypp.txt | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/langpacks/en/Plugins/historypp.txt b/langpacks/en/Plugins/historypp.txt index 359dd90bd9..7e47dc43be 100644 --- a/langpacks/en/Plugins/historypp.txt +++ b/langpacks/en/Plugins/historypp.txt @@ -1,5 +1,4 @@ ;#muuid not found, please specify manually!
-;langpack template for historypp
;file \plugins\HistoryPlusPlus\hpp_opt_dialog.rc
[Appearance options]
[Show event icons]
@@ -99,7 +98,7 @@ [History++ module could not be loaded, richedit 2.0+ module is missing.\nPress OK to continue loading Miranda.]
;file \plugins\HistoryPlusPlus\hpp_contacts.pas
[Server]
-[''(Unknown Contact)''' { TRANSLATE-IGNORE } )\r\n else\r\n begin\r\n ci.cbSize := SizeOf(ci);\r\n ci.hContact := hContact;\r\n ci.szProto := PAnsiChar(Proto);\r\n ci.dwFlag := CNF_DISPLAY + CNF_UNICODE;\r\n if CallService(MS_CONTACT_GETCONTACTINFO, 0, LPARAM(@ci)) = 0 then\r\n begin\r\n RetPWideChar := ci.retval.szVal.w;\r\n UW := TranslateW('''(Unknown Contact)''' { TRANSLATE-IGNORE } );\r\n if WideCompareText(RetPWideChar, UW) = 0 then\r\n Result := AnsiToWideString(GetContactID(hContact, Proto), CP_ACP)\r\n else\r\n Result := RetPWideChar;\r\n mir_free(RetPWideChar);\r\n end\r\n else\r\n Result := String(GetContactID(hContact, Proto));\r\n if Result = '' then\r\n Result := TranslateAnsiW(Proto { TRANSLATE-IGNORE } );\r\n end;\r\n end;\r\nend;\r\n\r\nfunction GetContactID(hContact: THandle; Proto: AnsiString = ''; Contact: boolean = false): AnsiString;\r\nvar\r\n uid: PAnsiChar;\r\n dbv: TDBVARIANT;\r\n cgs: TDBCONTACTGETSETTING;\r\n tmp: String;\r\nbegin\r\n Result := '';\r\n if not((hContact = 0) and Contact) then\r\n begin\r\n if Proto = '' then\r\n Proto := GetContactProto(hContact);\r\n uid := PAnsiChar(CallProtoService(PAnsiChar(Proto), PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0));\r\n if (Cardinal(uid) <> CALLSERVICE_NOTFOUND) and (uid <> nil) then\r\n begin\r\n cgs.szModule := PAnsiChar(Proto);\r\n cgs.szSetting := uid;\r\n cgs.pValue := @dbv;\r\n if CallService(MS_DB_CONTACT_GETSETTING, hContact, LPARAM(@cgs)) = 0 then\r\n begin\r\n case dbv._type of\r\n DBVT_BYTE:\r\n Result := AnsiString(intToStr(dbv.bVal));\r\n DBVT_WORD:\r\n Result := AnsiString(intToStr(dbv.wVal));\r\n DBVT_DWORD:\r\n Result := AnsiString(intToStr(dbv.dVal));\r\n DBVT_ASCIIZ:\r\n Result := AnsiString(dbv.szVal.a);\r\n DBVT_UTF8:\r\n begin\r\n tmp := AnsiToWideString(dbv.szVal.a, CP_UTF8);\r\n Result := WideToAnsiString(tmp, hppCodepage);\r\n end;\r\n DBVT_WCHAR:\r\n Result := WideToAnsiString(dbv.szVal.w, hppCodepage);\r\n end;\r\n // free variant\r\n DBFreeVariant(@dbv);\r\n end;\r\n end;\r\n end;\r\nend;\r\n\r\nfunction WriteContactCodePage(hContact: THandle; CodePage: Cardinal; Proto: AnsiString = ']
+[''(Unknown Contact)''' { TRANSLATE-IGNORE } )\r\n else\r\n begin\r\n ci.cbSize := SizeOf(ci);\r\n ci.hContact := hContact;\r\n ci.szProto := PAnsiChar(Proto);\r\n ci.dwFlag := CNF_DISPLAY + CNF_UNICODE;\r\n if CallService(MS_CONTACT_GETCONTACTINFO, 0, LPARAM(@ci)) = 0 then\r\n begin\r\n RetPWideChar := ci.retval.szVal.w;\r\n UW := TranslateW('''(Unknown Contact)''' { TRANSLATE-IGNORE } );\r\n if WideCompareText(RetPWideChar, UW) = 0 then\r\n Result := AnsiToWideString(GetContactID(hContact, Proto), CP_ACP)\r\n else\r\n Result := RetPWideChar;\r\n mir_free(RetPWideChar);\r\n end\r\n else\r\n Result := String(GetContactID(hContact, Proto));\r\n if Result = '' then\r\n Result := TranslateAnsiW(Proto { TRANSLATE-IGNORE } );\r\n end;\r\n end;\r\nend;\r\n\r\nfunction GetContactID(hContact: THandle; Proto: AnsiString = ''; Contact: boolean = false): AnsiString;\r\nvar\r\n uid: PAnsiChar;\r\n dbv: TDBVARIANT;\r\n cgs: TDBCONTACTGETSETTING;\r\n tmp: String;\r\nbegin\r\n Result := '';\r\n if not((hContact = 0) and Contact) then\r\n begin\r\n if Proto = '' then\r\n Proto := GetContactProto(hContact);\r\n uid := PAnsiChar(CallProtoService(PAnsiChar(Proto), PS_GETCAPS, PFLAG_UNIQUEIDSETTING, 0));\r\n if (uint_ptr(uid) <> CALLSERVICE_NOTFOUND) and (uid <> nil) then\r\n begin\r\n cgs.szModule := PAnsiChar(Proto);\r\n cgs.szSetting := uid;\r\n cgs.pValue := @dbv;\r\n if CallService(MS_DB_CONTACT_GETSETTING, hContact, LPARAM(@cgs)) = 0 then\r\n begin\r\n case dbv._type of\r\n DBVT_BYTE:\r\n Result := AnsiString(intToStr(dbv.bVal));\r\n DBVT_WORD:\r\n Result := AnsiString(intToStr(dbv.wVal));\r\n DBVT_DWORD:\r\n Result := AnsiString(intToStr(dbv.dVal));\r\n DBVT_ASCIIZ:\r\n Result := AnsiString(dbv.szVal.a);\r\n DBVT_UTF8:\r\n begin\r\n tmp := AnsiToWideString(dbv.szVal.a, CP_UTF8);\r\n Result := WideToAnsiString(tmp, hppCodepage);\r\n end;\r\n DBVT_WCHAR:\r\n Result := WideToAnsiString(dbv.szVal.w, hppCodepage);\r\n end;\r\n // free variant\r\n DBFreeVariant(@dbv);\r\n end;\r\n end;\r\n end;\r\nend;\r\n\r\nfunction WriteContactCodePage(hContact: THandle; CodePage: Cardinal; Proto: AnsiString = ']
;file \plugins\HistoryPlusPlus\hpp_events.pas
[URL: %s]
[Authorisation request by %s (%s%d): %s]
|