Created
February 18, 2014 03:34
-
-
Save artzub/9064231 to your computer and use it in GitHub Desktop.
Localization Consts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit ConstsRus; | |
interface | |
implementation | |
uses Windows, Consts; | |
procedure HookResourceString(ResStringRec: pResStringRec; NewStr: pChar) ; | |
var | |
OldProtect: DWORD; | |
begin | |
VirtualProtect(ResStringRec, SizeOf(ResStringRec^), PAGE_EXECUTE_READWRITE, @OldProtect) ; | |
ResStringRec^.Identifier := Integer(NewStr) ; | |
VirtualProtect(ResStringRec, SizeOf(ResStringRec^), OldProtect, @OldProtect) ; | |
end; | |
initialization | |
{ | |
SMsgDlgWarning = 'Warning'; | |
SMsgDlgError = 'Error'; | |
SMsgDlgInformation = 'Information'; | |
SMsgDlgConfirm = 'Confirm'; | |
SMsgDlgYes = '&Yes'; | |
SMsgDlgNo = '&No'; | |
SMsgDlgOK = 'OK'; | |
SMsgDlgCancel = 'Cancel'; | |
SMsgDlgHelp = '&Help'; | |
SMsgDlgHelpNone = 'No help available'; | |
SMsgDlgHelpHelp = 'Help'; | |
SMsgDlgAbort = '&Abort'; | |
SMsgDlgRetry = '&Retry'; | |
SMsgDlgIgnore = '&Ignore'; | |
SMsgDlgAll = '&All'; | |
SMsgDlgNoToAll = 'N&o to All'; | |
SMsgDlgYesToAll = 'Yes to &All'; | |
} | |
HookResourceString(@SMsgDlgWarning, 'Предупреждение'); | |
HookResourceString(@SMsgDlgError, 'Ошибка'); | |
HookResourceString(@SMsgDlgInformation, 'Оповещение'); | |
HookResourceString(@SMsgDlgConfirm, 'Подтверждение'); | |
HookResourceString(@SMsgDlgYes, 'Да'); | |
HookResourceString(@SMsgDlgNo, 'Нет'); | |
HookResourceString(@SMsgDlgCancel, 'Отмена'); | |
HookResourceString(@SMsgDlgHelp, 'Помощь'); | |
HookResourceString(@SMsgDlgHelpNone, 'Помощь не доступна'); | |
HookResourceString(@SMsgDlgHelpHelp, 'Помощь'); | |
HookResourceString(@SMsgDlgAbort, 'Прервать'); | |
HookResourceString(@SMsgDlgRetry, 'Повторить'); | |
HookResourceString(@SMsgDlgIgnore, 'Пропустить'); | |
HookResourceString(@SMsgDlgAll, 'Все'); | |
HookResourceString(@SMsgDlgNoToAll, 'Нет для всех'); | |
HookResourceString(@SMsgDlgYesToAll, 'Да для всех'); | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment