Ticket #7767: Tracker_Do_it_to_OK.diff

File Tracker_Do_it_to_OK.diff, 3.1 KB (added by jscipione, 13 years ago)

Patch to change instances of "Do it" to "OK" in Tracker dialogs

  • src/kits/tracker/FSUtils.cpp

    diff --git src/kits/tracker/FSUtils.cpp src/kits/tracker/FSUtils.cpp
    index 1af1220..eb6f84b 100644
    ConfirmChangeIfWellKnownDirectory(const BEntry *entry, const char *ifYouDoAction  
    640640            B_TRANSLATE("If you %ifYouDoAction the system folder or its "
    641641            "contents, you won't be able to boot " OS_NAME "! Are you sure you "
    642642            "want to do this? To %toDoAction the system folder or its contents "
    643             "anyway, hold down the Shift key and click \"Do it\"."));
     643            "anyway, hold down the Shift key and click \"OK\"."));
    644644    } else if (DirectoryMatches(entry, B_COMMON_DIRECTORY)) {
    645645        warning.SetTo(
    646646            B_TRANSLATE("If you %ifYouDoAction the common folder, " OS_NAME
    647647            " may not behave properly! Are you sure you want to do this? "
    648648            "To %toDoAction the common folder anyway, hold down the "
    649             "Shift key and click \"Do it\"."));
     649            "Shift key and click \"OK\"."));
    650650    } else if (DirectoryMatches(entry, B_USER_DIRECTORY)) {
    651651        warning .SetTo(
    652652            B_TRANSLATE("If you %ifYouDoAction the home folder, " OS_NAME
    653653            " may not behave properly! Are you sure you want to do this? "
    654654            "To %toDoAction the home folder anyway, hold down the "
    655             "Shift key and click \"Do it\"."));
     655            "Shift key and click \"OK\"."));
    656656    } else if (DirectoryMatchesOrContains(entry, B_USER_CONFIG_DIRECTORY)
    657657        || DirectoryMatchesOrContains(entry, B_COMMON_SETTINGS_DIRECTORY)) {
    658658
    ConfirmChangeIfWellKnownDirectory(const BEntry *entry, const char *ifYouDoAction  
    663663            warning.SetTo(
    664664                B_TRANSLATE("If you %ifYouDoAction the mime settings, " OS_NAME
    665665                " may not behave properly! Are you sure you want to do this? "
    666                 "To %toDoAction the mime settings anyway, click \"Do it\"."));
     666                "To %toDoAction the mime settings anyway, click \"OK\"."));
    667667            requireOverride = false;
    668668        } else if (DirectoryMatches(entry, B_USER_CONFIG_DIRECTORY)) {
    669669            warning.SetTo(
    670670                B_TRANSLATE("If you %ifYouDoAction the config folder, " OS_NAME
    671671                " may not behave properly! Are you sure you want to do this? "
    672                 "To %toDoAction the config folder anyway, click \"Do it\"."));
     672                "To %toDoAction the config folder anyway, click \"OK\"."));
    673673            requireOverride = false;
    674674        } else if (DirectoryMatches(entry, B_USER_SETTINGS_DIRECTORY)
    675675            || DirectoryMatches(entry, B_COMMON_SETTINGS_DIRECTORY)) {
    676676            warning.SetTo(
    677677                B_TRANSLATE("If you %ifYouDoAction the settings folder, " OS_NAME
    678678                " may not behave properly! Are you sure you want to do this? "
    679                 "To %toDoAction the settings folder anyway, click \"Do it\"."));
     679                "To %toDoAction the settings folder anyway, click \"OK\"."));
    680680            requireOverride = false;
    681681        }
    682682    }
    ConfirmChangeIfWellKnownDirectory(const BEntry *entry, const char *ifYouDoAction  
    696696    warning.ReplaceFirst("%toDoAction", toDoAction);
    697697
    698698    OverrideAlert *alert = new OverrideAlert("", warning.String(),
    699         B_TRANSLATE("Do it"), (requireOverride ? B_SHIFT_KEY : 0),
     699        B_TRANSLATE("OK"), (requireOverride ? B_SHIFT_KEY : 0),
    700700        B_TRANSLATE("Cancel"), 0, NULL, 0, B_WIDTH_AS_USUAL, B_WARNING_ALERT);
    701701    alert->SetShortcut(1, B_ESCAPE);
    702702    if (alert->Go() == 1) {