Ticket #8092: fsutil.patch
File fsutil.patch, 3.2 KB (added by , 12 years ago) |
---|
-
haiku/trunk/src/kits/tracker/FSUtils.cpp
135 135 136 136 status_t empty_trash(void *); 137 137 138 #define OS_NAME "Haiku" 138 139 139 140 static const char* kDeleteConfirmationStr = 140 141 B_TRANSLATE_MARK("Are you sure you want to delete the " … … 633 634 if (DirectoryMatchesOrContains(entry, B_SYSTEM_DIRECTORY)) { 634 635 warning.SetTo( 635 636 B_TRANSLATE("If you %ifYouDoAction the system folder or its " 636 "contents, you won't be able to boot Haiku! Are you sure you "637 "contents, you won't be able to boot %OsName! Are you sure you " 637 638 "want to do this? To %toDoAction the system folder or its " 638 639 "contents anyway, hold down the Shift key and click " 639 640 "\"%toConfirmAction\".")); 640 641 } else if (DirectoryMatches(entry, B_COMMON_DIRECTORY)) { 641 642 warning.SetTo( 642 B_TRANSLATE("If you %ifYouDoAction the common folder, Haiku"643 B_TRANSLATE("If you %ifYouDoAction the common folder, %OsName " 643 644 "may not behave properly! Are you sure you want to do this? " 644 645 "To %toDoAction the common folder anyway, hold down the " 645 646 "Shift key and click \"%toConfirmAction\".")); 646 647 } else if (DirectoryMatches(entry, B_USER_DIRECTORY)) { 647 648 warning .SetTo( 648 B_TRANSLATE("If you %ifYouDoAction the home folder, Haiku"649 B_TRANSLATE("If you %ifYouDoAction the home folder, %OsName " 649 650 "may not behave properly! Are you sure you want to do this? " 650 651 "To %toDoAction the home folder anyway, hold down the " 651 652 "Shift key and click \"%toConfirmAction\".")); … … 657 658 || DirectoryMatchesOrContains(entry, "beos_mime", 658 659 B_COMMON_SETTINGS_DIRECTORY)) { 659 660 warning.SetTo( 660 B_TRANSLATE("If you %ifYouDoAction the mime settings, Haiku"661 B_TRANSLATE("If you %ifYouDoAction the mime settings, %OsName " 661 662 "may not behave properly! Are you sure you want to do this? " 662 663 "To %toDoAction the mime settings anyway, click " 663 664 "\"%toConfirmAction\".")); 664 665 requireOverride = false; 665 666 } else if (DirectoryMatches(entry, B_USER_CONFIG_DIRECTORY)) { 666 667 warning.SetTo( 667 B_TRANSLATE("If you %ifYouDoAction the config folder, Haiku"668 B_TRANSLATE("If you %ifYouDoAction the config folder, %OsName " 668 669 "may not behave properly! Are you sure you want to do this? " 669 670 "To %toDoAction the config folder anyway, click " 670 671 "\"%toConfirmAction\".")); … … 672 673 } else if (DirectoryMatches(entry, B_USER_SETTINGS_DIRECTORY) 673 674 || DirectoryMatches(entry, B_COMMON_SETTINGS_DIRECTORY)) { 674 675 warning.SetTo( 675 B_TRANSLATE("If you %ifYouDoAction the settings folder, Haiku"676 B_TRANSLATE("If you %ifYouDoAction the settings folder, %OsName " 676 677 "may not behave properly! Are you sure you want to do this? " 677 678 "To %toDoAction the settings folder anyway, click " 678 679 "\"%toConfirmAction\".")); … … 691 692 // we already warned about moving home this time around 692 693 return true; 693 694 695 warning.ReplaceFirst("%OsName", OS_NAME); 694 696 warning.ReplaceFirst("%ifYouDoAction", ifYouDoAction); 695 697 warning.ReplaceFirst("%toDoAction", toDoAction); 696 698 warning.ReplaceFirst("%toConfirmAction", toConfirmAction);