Ticket #8092: fsutil.patch

File fsutil.patch, 3.2 KB (added by starsseed, 12 years ago)
  • haiku/trunk/src/kits/tracker/FSUtils.cpp

     
    135135
    136136status_t empty_trash(void *);
    137137
     138#define OS_NAME "Haiku"
    138139
    139140static const char* kDeleteConfirmationStr =
    140141    B_TRANSLATE_MARK("Are you sure you want to delete the "
     
    633634    if (DirectoryMatchesOrContains(entry, B_SYSTEM_DIRECTORY)) {
    634635        warning.SetTo(
    635636            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 "
    637638            "want to do this? To %toDoAction the system folder or its "
    638639            "contents anyway, hold down the Shift key and click "
    639640            "\"%toConfirmAction\"."));
    640641    } else if (DirectoryMatches(entry, B_COMMON_DIRECTORY)) {
    641642        warning.SetTo(
    642             B_TRANSLATE("If you %ifYouDoAction the common folder, Haiku "
     643            B_TRANSLATE("If you %ifYouDoAction the common folder, %OsName "
    643644            "may not behave properly! Are you sure you want to do this? "
    644645            "To %toDoAction the common folder anyway, hold down the "
    645646            "Shift key and click \"%toConfirmAction\"."));
    646647    } else if (DirectoryMatches(entry, B_USER_DIRECTORY)) {
    647648        warning .SetTo(
    648             B_TRANSLATE("If you %ifYouDoAction the home folder, Haiku "
     649            B_TRANSLATE("If you %ifYouDoAction the home folder, %OsName "
    649650            "may not behave properly! Are you sure you want to do this? "
    650651            "To %toDoAction the home folder anyway, hold down the "
    651652            "Shift key and click \"%toConfirmAction\"."));
     
    657658            || DirectoryMatchesOrContains(entry, "beos_mime",
    658659                B_COMMON_SETTINGS_DIRECTORY)) {
    659660            warning.SetTo(
    660                 B_TRANSLATE("If you %ifYouDoAction the mime settings, Haiku "
     661                B_TRANSLATE("If you %ifYouDoAction the mime settings, %OsName "
    661662                "may not behave properly! Are you sure you want to do this? "
    662663                "To %toDoAction the mime settings anyway, click "
    663664                "\"%toConfirmAction\"."));
    664665            requireOverride = false;
    665666        } else if (DirectoryMatches(entry, B_USER_CONFIG_DIRECTORY)) {
    666667            warning.SetTo(
    667                 B_TRANSLATE("If you %ifYouDoAction the config folder, Haiku "
     668                B_TRANSLATE("If you %ifYouDoAction the config folder, %OsName "
    668669                "may not behave properly! Are you sure you want to do this? "
    669670                "To %toDoAction the config folder anyway, click "
    670671                "\"%toConfirmAction\"."));
     
    672673        } else if (DirectoryMatches(entry, B_USER_SETTINGS_DIRECTORY)
    673674            || DirectoryMatches(entry, B_COMMON_SETTINGS_DIRECTORY)) {
    674675            warning.SetTo(
    675                 B_TRANSLATE("If you %ifYouDoAction the settings folder, Haiku "
     676                B_TRANSLATE("If you %ifYouDoAction the settings folder, %OsName "
    676677                "may not behave properly! Are you sure you want to do this? "
    677678                "To %toDoAction the settings folder anyway, click "
    678679                "\"%toConfirmAction\"."));
     
    691692        // we already warned about moving home this time around
    692693        return true;
    693694
     695    warning.ReplaceFirst("%OsName", OS_NAME);
    694696    warning.ReplaceFirst("%ifYouDoAction", ifYouDoAction);
    695697    warning.ReplaceFirst("%toDoAction", toDoAction);
    696698    warning.ReplaceFirst("%toConfirmAction", toConfirmAction);