diff --git a/src/diskcapa.c b/src/diskcapa.c index 57264afe..7aacdbbd 100644 --- a/src/diskcapa.c +++ b/src/diskcapa.c @@ -48,7 +48,7 @@ static int interface_check_disk_capacity_ncurses(disk_t *disk_car) wmove(stdscr,4,0); wprintw(stdscr,"%s\n",disk_car->description(disk_car)); wmove(stdscr,6,0); - wprintw(stdscr,"The Harddisk size seems to be 137GB."); + wprintw(stdscr,"The Hard disk size seems to be 137GB."); wmove(stdscr,7,0); wprintw(stdscr,"Support for 48-bit Logical Block Addressing (LBA) is needed to access"); wmove(stdscr,8,0); diff --git a/src/godmode.c b/src/godmode.c index 565993cb..f3f539e6 100644 --- a/src/godmode.c +++ b/src/godmode.c @@ -53,11 +53,11 @@ #define RO 1 #define RW 0 #define MAX_SEARCH_LOCATION 1024 +extern const arch_fnct_t arch_none; extern const arch_fnct_t arch_gpt; extern const arch_fnct_t arch_humax; extern const arch_fnct_t arch_i386; extern const arch_fnct_t arch_mac; -extern const arch_fnct_t arch_none; extern const arch_fnct_t arch_sun; extern const arch_fnct_t arch_xbox; #ifdef HAVE_NCURSES @@ -189,11 +189,11 @@ static int interface_part_bad_ncurses(disk_t *disk_car, list_part_t *list_part) char buffer_disk_size_found[100]; size_to_unit(disk_car->disk_size, buffer_disk_size); size_to_unit(disk_size, buffer_disk_size_found); - wprintw(stdscr,"The harddisk (%s) seems too small! (< %s)", + wprintw(stdscr,"The hard disk (%s) seems too small! (< %s)", buffer_disk_size, buffer_disk_size_found); } wmove(stdscr,7,0); - wprintw(stdscr,"Check the harddisk size: HD jumper settings, BIOS detection..."); + wprintw(stdscr,"Check the hard disk size: HD jumper settings, BIOS detection..."); #if defined(__CYGWIN__) || defined(__MINGW32__) if(disk_car->disk_size<=((uint64_t)1<<(28-1)) && disk_size>=((uint64_t)1<<(28-1))) { @@ -312,7 +312,7 @@ static int interface_part_bad_log(disk_t *disk_car, list_part_t *list_part) } } log_warning("%s\n",disk_car->description(disk_car)); - log_warning("Check the harddisk size: HD jumper settings, BIOS detection...\n"); + log_warning("Check the hard disk size: HD jumper settings, BIOS detection...\n"); #if defined(__CYGWIN__) || defined(__MINGW32__) if(disk_car->disk_size<=((uint64_t)1<<(28-1)) && disk_size>=((uint64_t)1<<(28-1))) { @@ -324,7 +324,7 @@ static int interface_part_bad_log(disk_t *disk_car, list_part_t *list_part) char buffer_disk_size_found[100]; size_to_unit(disk_car->disk_size, buffer_disk_size); size_to_unit(disk_size, buffer_disk_size_found); - log_warning("The harddisk (%s) seems too small! (< %s)\n", + log_warning("The hard disk (%s) seems too small! (< %s)\n", buffer_disk_size, buffer_disk_size_found); } if(list_part->next==NULL) @@ -1344,6 +1344,13 @@ static void warning_geometry(const list_part_t *list_part, disk_t *disk, const i } } +/*@ + @ requires valid_list_part(list_part_org); + @ requires valid_disk(disk_car); + @ requires \valid(current_cmd); + @ requires \valid(menu); + @ requires \valid(fast_mode); + @*/ static int ask_write_partition_table(const list_part_t *list_part_org, disk_t *disk_car, const int verbose, const int dump_ind, const int ask_part_order, const unsigned int expert, char **current_cmd, unsigned int *menu, int *fast_mode) { int res_interface_write; diff --git a/src/hfsp_struct.h b/src/hfsp_struct.h index a03997b8..02cbb922 100644 --- a/src/hfsp_struct.h +++ b/src/hfsp_struct.h @@ -99,7 +99,7 @@ typedef struct hfsp_vh { uint32_t blocksize; // 28 // must be multiple of HFSPLUS_SECTOR_SIZE, - // should be a multiple of 4k for harddisk + // should be a multiple of 4k for hard disk uint32_t total_blocks; // 2C uint32_t free_blocks; // 30 // The total number of unused allocation blocks on the disk. diff --git a/src/nodisk.c b/src/nodisk.c index 279f08bd..4b31ade1 100644 --- a/src/nodisk.c +++ b/src/nodisk.c @@ -50,7 +50,7 @@ int intrf_no_disk_ncurses(const char *prog_name) wmove(stdscr,5,0); wprintw(stdscr,"comes with ABSOLUTELY NO WARRANTY."); wmove(stdscr,7,0); - wprintw(stdscr,"No harddisk found\n"); + wprintw(stdscr,"No hard disk found\n"); #if defined(__CYGWIN__) || defined(__MINGW32__) wmove(stdscr,8,0); wprintw(stdscr,"You need to be administrator to use %s.\n", prog_name); diff --git a/src/qphotorec.cpp b/src/qphotorec.cpp index 40b3e102..3771ef41 100644 --- a/src/qphotorec.cpp +++ b/src/qphotorec.cpp @@ -374,9 +374,9 @@ QWidget *QPhotorec::copyright(QWidget * qwparent) int QPhotorec::no_disk_warning() { QString msg; - msg=tr("No harddisk found"); + msg=tr("No hard disk found"); #if defined(__CYGWIN__) || defined(__MINGW32__) - msg=tr("No harddisk found\n" + msg=tr("No hard disk found\n" "You need to be administrator to use this program.\n" "Under Win9x, use the DOS version instead.\n" "Under Vista or later, select this program, right-click and choose \"Run as administrator\"."); @@ -385,7 +385,7 @@ int QPhotorec::no_disk_warning() #ifdef HAVE_GETEUID if(geteuid()!=0) { - msg=tr("No harddisk found\n" + msg=tr("No hard disk found\n" "You need to be root to use PhotoRec."); } #endif @@ -924,7 +924,7 @@ void QPhotorec::qphotorec_about() { QPixmap pixmap_img = QPixmap(":res/photorec_64x64.png"); QMessageBox msg; - msg.setText(tr("QPhotoRec is is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.\n\nQPhotoRec is is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with QPhotoRec. If not, see .")); + msg.setText(tr("QPhotoRec is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.\n\nQPhotoRec is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with QPhotoRec. If not, see .")); msg.setWindowTitle(tr("QPhotoRec: About")); msg.addButton(QMessageBox::Close); msg.setIconPixmap(pixmap_img);