[ros-diffs] [gschneider] 47504: [RAPPS] Create a new download directory if the user agrees to do so, based on a patch by Seungju Kim. Translations except German and English should be updated to reflect the changed intention. See issue #5196 for more details.

gschneider at svn.reactos.org gschneider at svn.reactos.org
Mon May 31 22:09:14 CEST 2010


Author: gschneider
Date: Mon May 31 22:09:13 2010
New Revision: 47504

URL: http://svn.reactos.org/svn/reactos?rev=47504&view=rev
Log:
[RAPPS] Create a new download directory if the user agrees to do so, based on a patch by Seungju Kim. Translations except German and English should be updated to reflect the changed intention.

See issue #5196 for more details.

Modified:
    trunk/reactos/base/applications/rapps/lang/de-DE.rc
    trunk/reactos/base/applications/rapps/lang/en-US.rc
    trunk/reactos/base/applications/rapps/settingsdlg.c

Modified: trunk/reactos/base/applications/rapps/lang/de-DE.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/lang/de-DE.rc?rev=47504&r1=47503&r2=47504&view=diff
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/de-DE.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/de-DE.rc [iso-8859-1] Mon May 31 22:09:13 2010
@@ -185,7 +185,7 @@
 	IDS_UPDATES "Aktualisierungen"
 	IDS_APPLICATIONS "Anwendungen"
 	IDS_CHOOSE_FOLDER_TEXT "Wählen Sie ein Verzeichnis aus, das zum Herunterladen verwendet werden soll:"
-	IDS_CHOOSE_FOLDER_ERROR "Sie haben ein nicht existentes Verzeichnis angegeben!"
+	IDS_CHOOSE_FOLDER_ERROR "Sie haben ein nicht existierendes Verzeichnis angegeben! Neu anlegen?"
 	IDS_USER_NOT_ADMIN "Sie müssen als Administrator angemeldet sein, um den Anwendungsmanager zu starten!"
 	IDS_APP_REG_REMOVE "Sind Sie sich sicher, dass Sie die Daten dieses Programms aus der Registry entfernen möchten?"
 	IDS_INFORMATION "Informationen"

Modified: trunk/reactos/base/applications/rapps/lang/en-US.rc
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/lang/en-US.rc?rev=47504&r1=47503&r2=47504&view=diff
==============================================================================
--- trunk/reactos/base/applications/rapps/lang/en-US.rc [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/lang/en-US.rc [iso-8859-1] Mon May 31 22:09:13 2010
@@ -185,7 +185,7 @@
 	IDS_UPDATES "Updates"
 	IDS_APPLICATIONS "Applications"
 	IDS_CHOOSE_FOLDER_TEXT "Choose a folder which will store Downloads:"
-	IDS_CHOOSE_FOLDER_ERROR "The folder you have specified does not exist."
+	IDS_CHOOSE_FOLDER_ERROR "The folder you have specified does not exist. Create it?"
 	IDS_USER_NOT_ADMIN "You must be an administrator to start ""ReactOS Applications Manager""!"
 	IDS_APP_REG_REMOVE "Are you sure you want to delete the data on the installed program from the registry?"
 	IDS_INFORMATION "Information"

Modified: trunk/reactos/base/applications/rapps/settingsdlg.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/rapps/settingsdlg.c?rev=47504&r1=47503&r2=47504&view=diff
==============================================================================
--- trunk/reactos/base/applications/rapps/settingsdlg.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/rapps/settingsdlg.c [iso-8859-1] Mon May 31 22:09:13 2010
@@ -115,7 +115,14 @@
                                     IDS_CHOOSE_FOLDER_ERROR,
                                     szMsgText, sizeof(szMsgText) / sizeof(WCHAR));
 
-                        MessageBoxW(hDlg, szMsgText, NULL, MB_OK | MB_ICONERROR);
+                        if (MessageBoxW(hDlg, szMsgText, NULL, MB_YESNO) == IDYES)
+                        {
+                            if (CreateDirectoryW(szDir, NULL))
+                            {
+                                EndDialog(hDlg, LOWORD(wParam));
+                            }
+                        }
+
                         SetFocus(GetDlgItem(hDlg, IDC_DOWNLOAD_DIR_EDIT));
                         break;
                     }




More information about the Ros-diffs mailing list