From 6ccf01fe8ab89c436c0ba557795aa6080bc5dee9 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 3 Nov 2008 12:00:42 +0100 Subject: [PATCH] winecfg: Display an nicer error when the mount manager cannot be accessed. --- programs/winecfg/Bg.rc | 3 ++- programs/winecfg/Cs.rc | 3 ++- programs/winecfg/Da.rc | 3 ++- programs/winecfg/De.rc | 3 ++- programs/winecfg/En.rc | 3 ++- programs/winecfg/Es.rc | 3 ++- programs/winecfg/Fi.rc | 3 ++- programs/winecfg/Fr.rc | 3 ++- programs/winecfg/Hu.rc | 3 ++- programs/winecfg/It.rc | 3 ++- programs/winecfg/Ja.rc | 3 ++- programs/winecfg/Ko.rc | 3 ++- programs/winecfg/Nl.rc | 3 ++- programs/winecfg/No.rc | 3 ++- programs/winecfg/Pl.rc | 3 ++- programs/winecfg/Pt.rc | 3 ++- programs/winecfg/Ro.rc | 3 ++- programs/winecfg/Ru.rc | 3 ++- programs/winecfg/Si.rc | 3 ++- programs/winecfg/Sv.rc | 3 ++- programs/winecfg/Tr.rc | 3 ++- programs/winecfg/Zh.rc | 3 ++- programs/winecfg/driveui.c | 17 ++++++++++++++++- programs/winecfg/resource.h | 2 ++ 24 files changed, 62 insertions(+), 23 deletions(-) diff --git a/programs/winecfg/Bg.rc b/programs/winecfg/Bg.rc index ea1f9fa0d9a..8861657a4e1 100644 --- a/programs/winecfg/Bg.rc +++ b/programs/winecfg/Bg.rc @@ -130,6 +130,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&...",IDC_BUTTON_ADD,15,98,47,14 @@ -137,7 +138,7 @@ BEGIN PUSHBUTTON "&...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&:",IDC_STATIC,15,123,20,9 + LTEXT "&:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Cs.rc b/programs/winecfg/Cs.rc index 81e6ce2f73b..07f035f0a67 100644 --- a/programs/winecfg/Cs.rc +++ b/programs/winecfg/Cs.rc @@ -129,6 +129,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Mapovn disk ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "Pid&at...",IDC_BUTTON_ADD,15,98,37,14 @@ -136,7 +137,7 @@ BEGIN PUSHBUTTON "Auto&detekce...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&Cesta:",IDC_STATIC,15,123,20,9 + LTEXT "&Cesta:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Prochzet...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Da.rc b/programs/winecfg/Da.rc index d64361ac437..1d655adf5b8 100644 --- a/programs/winecfg/Da.rc +++ b/programs/winecfg/Da.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Enhedsoversttelse ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Tilfj...",IDC_BUTTON_ADD,15,98,37,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "Auto&detekter...",IDC_BUTTON_AUTODETECT,187,98,59,14 /* editing drive details */ - LTEXT "&Sti:",IDC_STATIC,15,123,20,9 + LTEXT "&Sti:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,150,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Gennemse...",IDC_BUTTON_BROWSE_PATH,196,120,50,13 diff --git a/programs/winecfg/De.rc b/programs/winecfg/De.rc index 4e80c4dbfa3..9ed3d63fcd7 100644 --- a/programs/winecfg/De.rc +++ b/programs/winecfg/De.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Laufwerkszuordnung ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Hinzufgen",IDC_BUTTON_ADD,15,98,41,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "&Automatisch", IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&Pfad:",IDC_STATIC,15,123,20,9 + LTEXT "&Pfad:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,155,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Durchsuchen",IDC_BUTTON_BROWSE_PATH,201,120,45,13 diff --git a/programs/winecfg/En.rc b/programs/winecfg/En.rc index c93bfa95b5d..ebdde0cf50a 100644 --- a/programs/winecfg/En.rc +++ b/programs/winecfg/En.rc @@ -126,6 +126,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Drive &mappings ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Add...",IDC_BUTTON_ADD,15,98,37,14 @@ -133,7 +134,7 @@ BEGIN PUSHBUTTON "Auto&detect...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&Path:",IDC_STATIC,15,123,20,9 + LTEXT "&Path:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Browse...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Es.rc b/programs/winecfg/Es.rc index 01f9c70ead9..440ea715293 100644 --- a/programs/winecfg/Es.rc +++ b/programs/winecfg/Es.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Mapeos de unidad ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Aadir...",IDC_BUTTON_ADD,15,98,37,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "Auto&detectar...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&Ruta:",IDC_STATIC,15,123,20,9 + LTEXT "&Ruta:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Examinar...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Fi.rc b/programs/winecfg/Fi.rc index fb1a41faf43..1d761f83860 100644 --- a/programs/winecfg/Fi.rc +++ b/programs/winecfg/Fi.rc @@ -125,6 +125,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Asemien mappaukset ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Lis...",IDC_BUTTON_ADD,15,98,37,14 @@ -132,7 +133,7 @@ BEGIN PUSHBUTTON "&Hae automaattisesti",IDC_BUTTON_AUTODETECT,177,98,69,14 /* editing drive details */ - LTEXT "&Polku:",IDC_STATIC,15,123,25,9 + LTEXT "&Polku:",IDC_STATIC_PATH,15,123,25,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Selaa...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Fr.rc b/programs/winecfg/Fr.rc index 36902ba6b09..818c50ffa00 100644 --- a/programs/winecfg/Fr.rc +++ b/programs/winecfg/Fr.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Assignation des lecteurs ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Ajouter...",IDC_BUTTON_ADD,15,98,37,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "Auto&dtection...",IDC_BUTTON_AUTODETECT,191,98,55,14 /* editing drive details */ - LTEXT "&Chemin :",IDC_STATIC,15,123,30,9 + LTEXT "&Chemin :",IDC_STATIC_PATH,15,123,30,9 EDITTEXT IDC_EDIT_PATH,49,120,152,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Parcourir...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Hu.rc b/programs/winecfg/Hu.rc index 360d277c197..5afbf91d16e 100644 --- a/programs/winecfg/Hu.rc +++ b/programs/winecfg/Hu.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Meghajt hozzrendelsek ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "Hozz&ad...",IDC_BUTTON_ADD,15,98,37,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "Auto&felism...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&tv.:",IDC_STATIC,15,123,20,9 + LTEXT "&tv.:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Tallzs...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/It.rc b/programs/winecfg/It.rc index 337da946b4f..8681de5030b 100644 --- a/programs/winecfg/It.rc +++ b/programs/winecfg/It.rc @@ -85,6 +85,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX "Altri Drive",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "Aggiungi...",IDC_BUTTON_ADD,15,98,37,14 @@ -92,7 +93,7 @@ BEGIN PUSHBUTTON "Rileva automaticamente...",IDC_BUTTON_AUTODETECT,157,98,89,14 /* editing drive details */ - LTEXT "&Path:",IDC_STATIC,15,123,20,9 + LTEXT "&Path:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Browse...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Ja.rc b/programs/winecfg/Ja.rc index dbb230aabd0..8eaa60368b8 100644 --- a/programs/winecfg/Ja.rc +++ b/programs/winecfg/Ja.rc @@ -129,6 +129,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 9, "MS Shell Dlg" BEGIN GROUPBOX " ドライブのマッピング ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "追加(&A)...",IDC_BUTTON_ADD,15,98,37,14 @@ -136,7 +137,7 @@ BEGIN PUSHBUTTON "自動検出(&D)...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "パス(&P):",IDC_STATIC,15,123,20,9 + LTEXT "パス(&P):",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "参照(&B)...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Ko.rc b/programs/winecfg/Ko.rc index 7f72af46ca8..dd47060d0d8 100644 --- a/programs/winecfg/Ko.rc +++ b/programs/winecfg/Ko.rc @@ -127,6 +127,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 9, "MS Shell Dlg" BEGIN GROUPBOX " ̺ (&M) ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Ϻ",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "߰(&A)...",IDC_BUTTON_ADD,15,98,37,14 @@ -134,7 +135,7 @@ BEGIN PUSHBUTTON "ڵ ã(&D)...",IDC_BUTTON_AUTODETECT,195,98,51,14 /* editing drive details */ - LTEXT "(&P):",IDC_STATIC,15,123,30,10 + LTEXT "(&P):",IDC_STATIC_PATH,15,123,30,10 EDITTEXT IDC_EDIT_PATH,50,120,140,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "ãƺ(&B)...",IDC_BUTTON_BROWSE_PATH,195,120,51,13 diff --git a/programs/winecfg/Nl.rc b/programs/winecfg/Nl.rc index 6259fff97e3..fb91290f7e2 100644 --- a/programs/winecfg/Nl.rc +++ b/programs/winecfg/Nl.rc @@ -126,6 +126,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Stations ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Toevoegen",IDC_BUTTON_ADD,15,98,54,14 @@ -133,7 +134,7 @@ BEGIN PUSHBUTTON "&Automatisch instellen",IDC_BUTTON_AUTODETECT,168,98,80,14 /* editing drive details */ - LTEXT "&Pad:",IDC_STATIC,15,123,20,9 + LTEXT "&Pad:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Bladeren...",IDC_BUTTON_BROWSE_PATH,208,120,40,13 diff --git a/programs/winecfg/No.rc b/programs/winecfg/No.rc index b48a4ed606f..aaa64c3283f 100644 --- a/programs/winecfg/No.rc +++ b/programs/winecfg/No.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Stasjonkartlegging ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listevisning",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Legg til...",IDC_BUTTON_ADD,15,98,45,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "&Automatisk...",IDC_BUTTON_AUTODETECT,190,98,56,14 /* editing drive details */ - LTEXT "&Sti:",IDC_STATIC,15,123,20,9 + LTEXT "&Sti:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Bla...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Pl.rc b/programs/winecfg/Pl.rc index 7e7d98574e0..c426443a077 100644 --- a/programs/winecfg/Pl.rc +++ b/programs/winecfg/Pl.rc @@ -127,6 +127,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Przyporzdkowanie dyskw ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Dodaj...",IDC_BUTTON_ADD,15,98,37,14 @@ -134,7 +135,7 @@ BEGIN PUSHBUTTON "Automatyczne wykrywanie",IDC_BUTTON_AUTODETECT,127,98,119,14 /* editing drive details */ - LTEXT "&cieka:",IDC_STATIC,15,123,25,9 + LTEXT "&cieka:",IDC_STATIC_PATH,15,123,25,9 EDITTEXT IDC_EDIT_PATH,46,120,145,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Przegldaj...",IDC_BUTTON_BROWSE_PATH,196,120,50,13 diff --git a/programs/winecfg/Pt.rc b/programs/winecfg/Pt.rc index 68fc52a43f4..830cabf8c30 100644 --- a/programs/winecfg/Pt.rc +++ b/programs/winecfg/Pt.rc @@ -207,6 +207,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Outras unidades",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Adicionar...",IDC_BUTTON_ADD,15,98,44,14 @@ -214,7 +215,7 @@ BEGIN PUSHBUTTON "Auto&detectar...",IDC_BUTTON_AUTODETECT,190,98,56,14 /* editing drive details */ - LTEXT "&Path:",IDC_STATIC,15,123,20,9 + LTEXT "&Path:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Browse...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Ro.rc b/programs/winecfg/Ro.rc index 9fb47120f45..a4b0cad331a 100644 --- a/programs/winecfg/Ro.rc +++ b/programs/winecfg/Ro.rc @@ -126,6 +126,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Mapare de discuri ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Adaugă",IDC_BUTTON_ADD,15,98,37,14 @@ -133,7 +134,7 @@ BEGIN PUSHBUTTON "&Detectează",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&Calea:",IDC_STATIC,15,123,20,9 + LTEXT "&Calea:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Navigează",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Ru.rc b/programs/winecfg/Ru.rc index 692b5eeb977..782e1fd85a2 100644 --- a/programs/winecfg/Ru.rc +++ b/programs/winecfg/Ru.rc @@ -128,6 +128,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&...",IDC_BUTTON_ADD,15,98,45,14 @@ -135,7 +136,7 @@ BEGIN PUSHBUTTON "&...",IDC_BUTTON_AUTODETECT,165,98,80,14 /* editing drive details */ - LTEXT "&:",IDC_STATIC,15,123,20,9 + LTEXT "&:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Si.rc b/programs/winecfg/Si.rc index 8a8b5efff7a..8c76e4745e2 100644 --- a/programs/winecfg/Si.rc +++ b/programs/winecfg/Si.rc @@ -126,6 +126,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Preslikave &pogonov ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Dodaj ...",IDC_BUTTON_ADD,15,98,37,14 @@ -133,7 +134,7 @@ BEGIN PUSHBUTTON "&Samozaznaj ...",IDC_BUTTON_AUTODETECT,187,98,59,14 /* editing drive details */ - LTEXT "&Pot:",IDC_STATIC,15,123,20,9 + LTEXT "&Pot:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Brskaj ...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Sv.rc b/programs/winecfg/Sv.rc index 768d830de72..14cea0c9e64 100644 --- a/programs/winecfg/Sv.rc +++ b/programs/winecfg/Sv.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Enhets&mappningar ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listvy",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Lgg till...",IDC_BUTTON_ADD,15,98,37,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "Auto&detect...",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "&Skvg:",IDC_STATIC,15,123,20,9 + LTEXT "&Skvg:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Blddra...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Tr.rc b/programs/winecfg/Tr.rc index 45885c1ed9b..4157f865c39 100644 --- a/programs/winecfg/Tr.rc +++ b/programs/winecfg/Tr.rc @@ -124,6 +124,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 8, "MS Shell Dlg" BEGIN GROUPBOX " Src Eletirmesi ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "&Ekle...",IDC_BUTTON_ADD,15,98,37,14 @@ -131,7 +132,7 @@ BEGIN PUSHBUTTON "Otomatik &Algla...",IDC_BUTTON_AUTODETECT,186,98,60,14 /* editing drive details */ - LTEXT "&Yol:",IDC_STATIC,15,123,20,9 + LTEXT "&Yol:",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "&Gzat...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/Zh.rc b/programs/winecfg/Zh.rc index 87cdcf1f073..f83b282afd5 100644 --- a/programs/winecfg/Zh.rc +++ b/programs/winecfg/Zh.rc @@ -128,6 +128,7 @@ STYLE WS_CHILD | WS_DISABLED FONT 9, "MS Song" BEGIN GROUPBOX " 驱动器映射(&m) ",IDC_STATIC,8,4,244,240 + LTEXT "Failed to connect to the mount manager, the drive configuration cannot be edited.", IDC_STATIC_MOUNTMGR_ERROR, 15,30,220,76 CONTROL "Listview",IDC_LIST_DRIVES,"SysListView32",LVS_REPORT | LVS_AUTOARRANGE | LVS_ALIGNLEFT | LVS_SINGLESEL | WS_BORDER | WS_TABSTOP, 15,18,232,76 PUSHBUTTON "加入(&A)",IDC_BUTTON_ADD,15,98,37,14 @@ -135,7 +136,7 @@ BEGIN PUSHBUTTON "自动侦测(&d)",IDC_BUTTON_AUTODETECT,197,98,49,14 /* editing drive details */ - LTEXT "路径(&P):",IDC_STATIC,15,123,20,9 + LTEXT "路径(&P):",IDC_STATIC_PATH,15,123,20,9 EDITTEXT IDC_EDIT_PATH,41,120,160,13,ES_AUTOHSCROLL | WS_TABSTOP PUSHBUTTON "浏览(&B)...",IDC_BUTTON_BROWSE_PATH,206,120,40,13 diff --git a/programs/winecfg/driveui.c b/programs/winecfg/driveui.c index a15d59982ff..375eccbce1c 100644 --- a/programs/winecfg/driveui.c +++ b/programs/winecfg/driveui.c @@ -675,7 +675,22 @@ DriveDlgProc (HWND dialog, UINT msg, WPARAM wParam, LPARAM lParam) { case WM_INITDIALOG: init_listview_columns(dialog); - load_drives(); + if (!load_drives()) + { + ShowWindow( GetDlgItem( dialog, IDC_STATIC_MOUNTMGR_ERROR ), SW_SHOW ); + ShowWindow( GetDlgItem( dialog, IDC_LIST_DRIVES ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_BUTTON_ADD ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_BUTTON_REMOVE ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_BUTTON_AUTODETECT ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_STATIC_PATH ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_EDIT_PATH ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_BUTTON_BROWSE_PATH ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_COMBO_TYPE ), SW_HIDE ); + ShowWindow( GetDlgItem( dialog, IDC_BUTTON_SHOW_HIDE_ADVANCED ), SW_HIDE ); + set_advanced(dialog); + break; + } + ShowWindow( GetDlgItem( dialog, IDC_STATIC_MOUNTMGR_ERROR ), SW_HIDE ); load_drive_options(dialog); if (!drives[2].in_use) diff --git a/programs/winecfg/resource.h b/programs/winecfg/resource.h index 2182c297462..a18fe7651b2 100644 --- a/programs/winecfg/resource.h +++ b/programs/winecfg/resource.h @@ -90,6 +90,7 @@ #define IDS_SELECT_EXECUTABLE 8020 /* drive editing */ +#define IDC_STATIC_MOUNTMGR_ERROR 1041 #define IDC_LIST_DRIVES 1042 #define IDC_BUTTON_ADD 1043 #define IDC_BUTTON_REMOVE 1044 @@ -112,6 +113,7 @@ #define IDC_EDIT_LABEL 1060 #define IDC_EDIT_PATH 1061 #define IDC_EDIT_SERIAL 1062 +#define IDC_STATIC_PATH 1063 #define IDC_COMBO_TYPE 1065 #define IDC_EDIT_DEVICE 1066 #define IDC_BUTTON_BROWSE_PATH 1067