mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
- Replace static message text by resource strings.
- Add German translation for those strings. svn path=/trunk/; revision=38909
This commit is contained in:
parent
747111402a
commit
c8b896e660
4 changed files with 28 additions and 5 deletions
|
@ -219,3 +219,10 @@ BEGIN
|
|||
IDS_ELEMENT_21 "Quickinfo"
|
||||
IDS_ELEMENT_22 "Symbol"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_DISPLAY_SETTINGS "Anzeigeeinstellungen"
|
||||
IDS_APPLY_FAILED "Beim Anwenden Ihrer Änderungen ist ein Fehler aufgetreten..."
|
||||
IDS_APPLY_NEEDS_RESTART "Sie müssen Ihren Computer neu starten, damit die Änderungen wirksam werden."
|
||||
END
|
||||
|
|
|
@ -221,3 +221,10 @@ BEGIN
|
|||
IDS_ELEMENT_21 "Quickinfo"
|
||||
IDS_ELEMENT_22 "Symbol"
|
||||
END
|
||||
|
||||
STRINGTABLE DISCARDABLE
|
||||
BEGIN
|
||||
IDS_DISPLAY_SETTINGS "Display settings"
|
||||
IDS_APPLY_FAILED "Failed to apply new settings..."
|
||||
IDS_APPLY_NEEDS_RESTART "You need to restart your computer to apply changes."
|
||||
END
|
||||
|
|
|
@ -157,6 +157,11 @@
|
|||
#define IDS_UNKNOWNMONITOR 3301
|
||||
#define IDS_ADVANCEDTITLEFMT 3302
|
||||
|
||||
#define IDS_DISPLAY_SETTINGS 3400
|
||||
|
||||
#define IDS_APPLY_FAILED 3500
|
||||
#define IDS_APPLY_NEEDS_RESTART 3501
|
||||
|
||||
/* Advanced General Dialog */
|
||||
#define IDC_FONTSIZE_COMBO 5000
|
||||
#define IDC_FONTSIZE_COSTOM 5001
|
||||
|
|
|
@ -628,6 +628,8 @@ SettingsPageProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lPar
|
|||
|
||||
pGlobalData = (PGLOBAL_DATA)GetWindowLongPtr(hwndDlg, DWLP_USER);
|
||||
|
||||
TCHAR Message[1024], Title[256];
|
||||
|
||||
switch(uMsg)
|
||||
{
|
||||
case WM_INITDIALOG:
|
||||
|
@ -710,14 +712,16 @@ SettingsPageProc(IN HWND hwndDlg, IN UINT uMsg, IN WPARAM wParam, IN LPARAM lPar
|
|||
pGlobalData->CurrentDisplayDevice->InitialSettings.dmPelsHeight = pGlobalData->CurrentDisplayDevice->CurrentSettings->dmPelsHeight;
|
||||
pGlobalData->CurrentDisplayDevice->InitialSettings.dmBitsPerPel = pGlobalData->CurrentDisplayDevice->CurrentSettings->dmBitsPerPel;
|
||||
break;
|
||||
case DISP_CHANGE_FAILED:
|
||||
MessageBox(NULL, TEXT("Failed to apply new settings..."), TEXT("Display settings"), MB_OK | MB_ICONSTOP);
|
||||
break;
|
||||
case DISP_CHANGE_RESTART:
|
||||
MessageBox(NULL, TEXT("You need to restart your computer to apply changes."), TEXT("Display settings"), MB_OK | MB_ICONINFORMATION);
|
||||
LoadString(hApplet, IDS_DISPLAY_SETTINGS, Title, sizeof(Title) / sizeof(TCHAR));
|
||||
LoadString(hApplet, IDS_APPLY_NEEDS_RESTART, Message, sizeof(Message) / sizeof (TCHAR));
|
||||
MessageBox(hwndDlg, Message, Title, MB_OK | MB_ICONINFORMATION);
|
||||
break;
|
||||
case DISP_CHANGE_FAILED:
|
||||
default:
|
||||
MessageBox(NULL, TEXT("Unknown error when applying new settings..."), TEXT("Display settings"), MB_OK | MB_ICONSTOP);
|
||||
LoadString(hApplet, IDS_DISPLAY_SETTINGS, Title, sizeof(Title) / sizeof(TCHAR));
|
||||
LoadString(hApplet, IDS_APPLY_FAILED, Message, sizeof(Message) / sizeof (TCHAR));
|
||||
MessageBox(hwndDlg, Message, Title, MB_OK | MB_ICONSTOP);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue