Improve some help text for commands

Consistently use the imperative mood and expand some overly terse help
messages.
This commit is contained in:
Thomas Goyne 2013-10-25 13:54:20 -07:00
parent c5e30709a6
commit 51d516979b
11 changed files with 78 additions and 78 deletions

View file

@ -82,7 +82,7 @@ struct app_display_audio_subs : public Command {
CMD_NAME("app/display/audio_subs") CMD_NAME("app/display/audio_subs")
STR_MENU("&Audio+Subs View") STR_MENU("&Audio+Subs View")
STR_DISP("Audio+Subs View") STR_DISP("Audio+Subs View")
STR_HELP("Display audio and subtitles only") STR_HELP("Display audio and the subtitles grid only")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
void operator()(agi::Context *) { void operator()(agi::Context *) {
@ -104,7 +104,7 @@ struct app_display_full : public Command {
CMD_NAME("app/display/full") CMD_NAME("app/display/full")
STR_MENU("&Full view") STR_MENU("&Full view")
STR_DISP("Full view") STR_DISP("Full view")
STR_HELP("Display audio, video and subtitles") STR_HELP("Display audio, video and then subtitles grid")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
@ -126,7 +126,7 @@ struct app_display_subs : public Command {
CMD_NAME("app/display/subs") CMD_NAME("app/display/subs")
STR_MENU("S&ubs Only View") STR_MENU("S&ubs Only View")
STR_DISP("Subs Only View") STR_DISP("Subs Only View")
STR_HELP("Display subtitles only") STR_HELP("Display the subtitles grid only")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
@ -144,7 +144,7 @@ struct app_display_video_subs : public Command {
CMD_NAME("app/display/video_subs") CMD_NAME("app/display/video_subs")
STR_MENU("&Video+Subs View") STR_MENU("&Video+Subs View")
STR_DISP("Video+Subs View") STR_DISP("Video+Subs View")
STR_HELP("Display video and subtitles only") STR_HELP("Display video and the subtitles grid only")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
@ -246,7 +246,7 @@ struct app_toggle_global_hotkeys : public Command {
CMD_NAME("app/toggle/global_hotkeys") CMD_NAME("app/toggle/global_hotkeys")
STR_MENU("Toggle global hotkey overrides") STR_MENU("Toggle global hotkey overrides")
STR_DISP("Toggle global hotkey overrides") STR_DISP("Toggle global hotkey overrides")
STR_HELP("Toggle global hotkey overrides") STR_HELP("Toggle global hotkey overrides (Medusa Mode)")
CMD_TYPE(COMMAND_TOGGLE) CMD_TYPE(COMMAND_TOGGLE)
bool IsActive(const agi::Context *) { bool IsActive(const agi::Context *) {

View file

@ -72,7 +72,7 @@ struct audio_close : public validate_audio_open {
CMD_NAME("audio/close") CMD_NAME("audio/close")
STR_MENU("&Close Audio") STR_MENU("&Close Audio")
STR_DISP("Close Audio") STR_DISP("Close Audio")
STR_HELP("Closes the currently open audio file") STR_HELP("Close the currently open audio file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->audioController->CloseAudio(); c->audioController->CloseAudio();
@ -85,7 +85,7 @@ struct audio_open : public Command {
CMD_NAME("audio/open") CMD_NAME("audio/open")
STR_MENU("&Open Audio File...") STR_MENU("&Open Audio File...")
STR_DISP("Open Audio File") STR_DISP("Open Audio File")
STR_HELP("Opens an audio file") STR_HELP("Open an audio file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
wxString str = _("Audio Formats") + " (*.aac,*.ac3,*.ape,*.dts,*.flac,*.m4a,*.mka,*.mp3,*.mp4,*.ogg,*.w64,*.wav,*.wma)|*.aac;*.ac3;*.ape;*.dts;*.flac;*.m4a;*.mka;*.mp3;*.mp4;*.ogg;*.w64;*.wav;*.wma|" wxString str = _("Audio Formats") + " (*.aac,*.ac3,*.ape,*.dts,*.flac,*.m4a,*.mka,*.mp3,*.mp4,*.ogg,*.w64,*.wav,*.wma)|*.aac;*.ac3;*.ape;*.dts;*.flac;*.m4a;*.mka;*.mp3;*.mp4;*.ogg;*.w64;*.wav;*.wma|"
@ -146,7 +146,7 @@ struct audio_open_video : public Command {
CMD_NAME("audio/open/video") CMD_NAME("audio/open/video")
STR_MENU("Open Audio from &Video") STR_MENU("Open Audio from &Video")
STR_DISP("Open Audio from Video") STR_DISP("Open Audio from Video")
STR_HELP("Opens the audio from the current video file") STR_HELP("Open the audio from the current video file")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {
@ -205,7 +205,7 @@ struct audio_save_clip : public Command {
CMD_NAME("audio/save/clip") CMD_NAME("audio/save/clip")
STR_MENU("Create audio clip") STR_MENU("Create audio clip")
STR_DISP("Create audio clip") STR_DISP("Create audio clip")
STR_HELP("Create an audio clip of the selected line") STR_HELP("Save an audio clip of the selected line")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {
@ -246,7 +246,7 @@ struct audio_play_current_line : public validate_audio_open {
CMD_NAME("audio/play/line") CMD_NAME("audio/play/line")
STR_MENU("Play current line") STR_MENU("Play current line")
STR_DISP("Play current line") STR_DISP("Play current line")
STR_HELP("Play current line") STR_HELP("Play the audio for the current line")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -274,7 +274,7 @@ struct audio_play_toggle : public validate_audio_open {
CMD_NAME("audio/play/toggle") CMD_NAME("audio/play/toggle")
STR_MENU("Play audio selection or stop") STR_MENU("Play audio selection or stop")
STR_DISP("Play audio selection or stop") STR_DISP("Play audio selection or stop")
STR_HELP("Play selection or stop playback if it's already playing") STR_HELP("Play selection, or stop playback if it's already playing")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (c->audioController->IsPlaying()) if (c->audioController->IsPlaying())
@ -291,7 +291,7 @@ struct audio_stop : public Command {
CMD_NAME("audio/stop") CMD_NAME("audio/stop")
STR_MENU("Stop playing") STR_MENU("Stop playing")
STR_DISP("Stop playing") STR_DISP("Stop playing")
STR_HELP("Stop") STR_HELP("Stop audio and video playback")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {
@ -446,7 +446,7 @@ struct audio_go_to : public validate_audio_open {
CMD_NAME("audio/go_to") CMD_NAME("audio/go_to")
STR_MENU("Go to selection") STR_MENU("Go to selection")
STR_DISP("Go to selection") STR_DISP("Go to selection")
STR_HELP("Go to selection") STR_HELP("Scroll the audio display to center on the current audio selection")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->audioBox->ScrollToActiveLine(); c->audioBox->ScrollToActiveLine();
@ -485,9 +485,9 @@ static inline void toggle(const char *opt) {
/// Toggle autoscrolling the audio display to the selected line when switch lines /// Toggle autoscrolling the audio display to the selected line when switch lines
struct audio_autoscroll : public Command { struct audio_autoscroll : public Command {
CMD_NAME("audio/opt/autoscroll") CMD_NAME("audio/opt/autoscroll")
STR_MENU("Auto scrolls audio display to selected line") STR_MENU("Auto scroll audio display to selected line")
STR_DISP("Auto scrolls audio display to selected line") STR_DISP("Auto scroll audio display to selected line")
STR_HELP("Auto scrolls audio display to selected line") STR_HELP("Auto scroll audio display to selected line")
CMD_TYPE(COMMAND_TOGGLE) CMD_TYPE(COMMAND_TOGGLE)
bool IsActive(const agi::Context *) { bool IsActive(const agi::Context *) {
@ -519,9 +519,9 @@ struct audio_autocommit : public Command {
/// Toggle automatically advancing to the next line after a commit /// Toggle automatically advancing to the next line after a commit
struct audio_autonext : public Command { struct audio_autonext : public Command {
CMD_NAME("audio/opt/autonext") CMD_NAME("audio/opt/autonext")
STR_MENU("Auto goes to next line on commit") STR_MENU("Auto go to next line on commit")
STR_DISP("Auto goes to next line on commit") STR_DISP("Auto go to next line on commit")
STR_HELP("Auto goes to next line on commit") STR_HELP("Automatically go to next line on commit")
CMD_TYPE(COMMAND_TOGGLE) CMD_TYPE(COMMAND_TOGGLE)
bool IsActive(const agi::Context *) { bool IsActive(const agi::Context *) {

View file

@ -96,7 +96,7 @@ struct meta : public Command {
CMD_NAME("am/meta") CMD_NAME("am/meta")
STR_MENU("&Automation...") STR_MENU("&Automation...")
STR_DISP("Automation") STR_DISP("Automation")
STR_HELP("Open automation manager") STR_HELP("Open automation manager. Ctrl: Rescan autoload folder. Ctrl+Shift: Rescan autoload folder and reload all automation scripts")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (wxGetMouseState().CmdDown()) { if (wxGetMouseState().CmdDown()) {

View file

@ -515,7 +515,7 @@ struct edit_line_copy : public validate_sel_nonempty {
CMD_NAME("edit/line/copy") CMD_NAME("edit/line/copy")
STR_MENU("&Copy Lines") STR_MENU("&Copy Lines")
STR_DISP("Copy Lines") STR_DISP("Copy Lines")
STR_HELP("Copy subtitles") STR_HELP("Copy subtitles to the clipboard")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
// Ideally we'd let the control's keydown handler run and only deal // Ideally we'd let the control's keydown handler run and only deal
@ -703,7 +703,7 @@ struct edit_line_join_as_karaoke : public validate_sel_multiple {
CMD_NAME("edit/line/join/as_karaoke") CMD_NAME("edit/line/join/as_karaoke")
STR_MENU("As &Karaoke") STR_MENU("As &Karaoke")
STR_DISP("As Karaoke") STR_DISP("As Karaoke")
STR_HELP("Joins selected lines in a single one, as karaoke") STR_HELP("Join selected lines in a single one, as karaoke")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
combine_lines(c, combine_karaoke, _("join as karaoke")); combine_lines(c, combine_karaoke, _("join as karaoke"));
@ -716,7 +716,7 @@ struct edit_line_join_concatenate : public validate_sel_multiple {
CMD_NAME("edit/line/join/concatenate") CMD_NAME("edit/line/join/concatenate")
STR_MENU("&Concatenate") STR_MENU("&Concatenate")
STR_DISP("Concatenate") STR_DISP("Concatenate")
STR_HELP("Joins selected lines in a single one, concatenating text together") STR_HELP("Join selected lines in a single one, concatenating text together")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
combine_lines(c, combine_concat, _("join lines")); combine_lines(c, combine_concat, _("join lines"));
@ -729,7 +729,7 @@ struct edit_line_join_keep_first : public validate_sel_multiple {
CMD_NAME("edit/line/join/keep_first") CMD_NAME("edit/line/join/keep_first")
STR_MENU("Keep &First") STR_MENU("Keep &First")
STR_DISP("Keep First") STR_DISP("Keep First")
STR_HELP("Joins selected lines in a single one, keeping text of first and discarding remaining") STR_HELP("Join selected lines in a single one, keeping text of first and discarding remaining")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
combine_lines(c, combine_drop, _("join lines")); combine_lines(c, combine_drop, _("join lines"));
@ -897,7 +897,7 @@ struct edit_line_recombine : public validate_sel_multiple {
CMD_NAME("edit/line/recombine") CMD_NAME("edit/line/recombine")
STR_MENU("Recom&bine Lines") STR_MENU("Recom&bine Lines")
STR_DISP("Recombine Lines") STR_DISP("Recombine Lines")
STR_HELP("Recombine subtitles when they have been split and merged") STR_HELP("Recombine subtitles which have been split and merged")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
auto sel_set = c->selectionController->GetSelectedSet(); auto sel_set = c->selectionController->GetSelectedSet();
@ -974,7 +974,7 @@ struct edit_line_split_by_karaoke : public validate_sel_nonempty {
CMD_NAME("edit/line/split/by_karaoke") CMD_NAME("edit/line/split/by_karaoke")
STR_MENU("Split Lines (by karaoke)") STR_MENU("Split Lines (by karaoke)")
STR_DISP("Split Lines (by karaoke)") STR_DISP("Split Lines (by karaoke)")
STR_HELP("Uses karaoke timing to split line into multiple smaller lines") STR_HELP("Use karaoke timing to split line into multiple smaller lines")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
AssKaraoke::SplitLines(c->selectionController->GetSelectedSet(), c); AssKaraoke::SplitLines(c->selectionController->GetSelectedSet(), c);
@ -1025,7 +1025,7 @@ struct edit_line_split_preserve : public validate_sel_nonempty {
/// Redoes last action. /// Redoes last action.
struct edit_redo : public Command { struct edit_redo : public Command {
CMD_NAME("edit/redo") CMD_NAME("edit/redo")
STR_HELP("Redoes last action") STR_HELP("Redo last undone action")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_DYNAMIC_NAME) CMD_TYPE(COMMAND_VALIDATE | COMMAND_DYNAMIC_NAME)
wxString StrMenu(const agi::Context *c) const { wxString StrMenu(const agi::Context *c) const {
@ -1051,7 +1051,7 @@ struct edit_redo : public Command {
/// Undoes last action. /// Undoes last action.
struct edit_undo : public Command { struct edit_undo : public Command {
CMD_NAME("edit/undo") CMD_NAME("edit/undo")
STR_HELP("Undoes last action") STR_HELP("Undo last action")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_DYNAMIC_NAME) CMD_TYPE(COMMAND_VALIDATE | COMMAND_DYNAMIC_NAME)
wxString StrMenu(const agi::Context *c) const { wxString StrMenu(const agi::Context *c) const {

View file

@ -411,7 +411,7 @@ struct grid_swap : public Command {
CMD_NAME("grid/swap") CMD_NAME("grid/swap")
STR_MENU("Swap Lines") STR_MENU("Swap Lines")
STR_DISP("Swap Lines") STR_DISP("Swap Lines")
STR_HELP("Swaps the two selected lines") STR_HELP("Swap the two selected lines")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {

View file

@ -55,7 +55,7 @@ struct keyframe_close : public Command {
CMD_NAME("keyframe/close") CMD_NAME("keyframe/close")
STR_MENU("Close Keyframes") STR_MENU("Close Keyframes")
STR_DISP("Close Keyframes") STR_DISP("Close Keyframes")
STR_HELP("Closes the currently open keyframes list") STR_HELP("Discard the currently loaded keyframes and use those from the video, if any")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {
@ -72,7 +72,7 @@ struct keyframe_open : public Command {
CMD_NAME("keyframe/open") CMD_NAME("keyframe/open")
STR_MENU("Open Keyframes...") STR_MENU("Open Keyframes...")
STR_DISP("Open Keyframes") STR_DISP("Open Keyframes")
STR_HELP("Opens a keyframe list file") STR_HELP("Open a keyframe list file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
auto filename = OpenFileSelector( auto filename = OpenFileSelector(
@ -91,7 +91,7 @@ struct keyframe_save : public Command {
CMD_NAME("keyframe/save") CMD_NAME("keyframe/save")
STR_MENU("Save Keyframes...") STR_MENU("Save Keyframes...")
STR_DISP("Save Keyframes") STR_DISP("Save Keyframes")
STR_HELP("Saves the current keyframe list") STR_HELP("Save the current list of keyframes to a file")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {

View file

@ -87,7 +87,7 @@ struct subtitle_attachment : public Command {
CMD_NAME("subtitle/attachment") CMD_NAME("subtitle/attachment")
STR_MENU("A&ttachments...") STR_MENU("A&ttachments...")
STR_DISP("Attachments") STR_DISP("Attachments")
STR_HELP("Open the attachment list") STR_HELP("Open the attachment manager dialog")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -101,7 +101,7 @@ struct subtitle_find : public Command {
CMD_NAME("subtitle/find") CMD_NAME("subtitle/find")
STR_MENU("&Find...") STR_MENU("&Find...")
STR_DISP("Find") STR_DISP("Find")
STR_HELP("Find words in subtitles") STR_HELP("Search for text the in subtitles")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -114,7 +114,7 @@ struct subtitle_find_next : public Command {
CMD_NAME("subtitle/find/next") CMD_NAME("subtitle/find/next")
STR_MENU("Find &Next") STR_MENU("Find &Next")
STR_DISP("Find Next") STR_DISP("Find Next")
STR_HELP("Find next match of last word") STR_HELP("Find next match of last search")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -146,7 +146,7 @@ struct subtitle_insert_after : public validate_nonempty_selection {
CMD_NAME("subtitle/insert/after") CMD_NAME("subtitle/insert/after")
STR_MENU("&After Current") STR_MENU("&After Current")
STR_DISP("After Current") STR_DISP("After Current")
STR_HELP("Inserts a line after current") STR_HELP("Insert a new line after the current one")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
AssDialogue *active_line = c->selectionController->GetActiveLine(); AssDialogue *active_line = c->selectionController->GetActiveLine();
@ -183,7 +183,7 @@ struct subtitle_insert_after_videotime : public validate_nonempty_selection_vide
CMD_NAME("subtitle/insert/after/videotime") CMD_NAME("subtitle/insert/after/videotime")
STR_MENU("After Current, at Video Time") STR_MENU("After Current, at Video Time")
STR_DISP("After Current, at Video Time") STR_DISP("After Current, at Video Time")
STR_HELP("Inserts a line after current, starting at video time") STR_HELP("Insert a new line after the current one, starting at video time")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
insert_subtitle_at_video(c, true); insert_subtitle_at_video(c, true);
@ -196,7 +196,7 @@ struct subtitle_insert_before : public validate_nonempty_selection {
CMD_NAME("subtitle/insert/before") CMD_NAME("subtitle/insert/before")
STR_MENU("&Before Current") STR_MENU("&Before Current")
STR_DISP("Before Current") STR_DISP("Before Current")
STR_HELP("Inserts a line before current") STR_HELP("Insert a new line before the current one")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
AssDialogue *active_line = c->selectionController->GetActiveLine(); AssDialogue *active_line = c->selectionController->GetActiveLine();
@ -231,7 +231,7 @@ struct subtitle_insert_before_videotime : public validate_nonempty_selection_vid
CMD_NAME("subtitle/insert/before/videotime") CMD_NAME("subtitle/insert/before/videotime")
STR_MENU("Before Current, at Video Time") STR_MENU("Before Current, at Video Time")
STR_DISP("Before Current, at Video Time") STR_DISP("Before Current, at Video Time")
STR_HELP("Inserts a line before current, starting at video time") STR_HELP("Insert a new line before the current one, starting at video time")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
insert_subtitle_at_video(c, false); insert_subtitle_at_video(c, false);
@ -258,7 +258,7 @@ struct subtitle_open : public Command {
CMD_NAME("subtitle/open") CMD_NAME("subtitle/open")
STR_MENU("&Open Subtitles...") STR_MENU("&Open Subtitles...")
STR_DISP("Open Subtitles") STR_DISP("Open Subtitles")
STR_HELP("Opens a subtitles file") STR_HELP("Open a subtitles file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (c->subsController->TryToClose() == wxCANCEL) return; if (c->subsController->TryToClose() == wxCANCEL) return;
@ -287,7 +287,7 @@ struct subtitle_open_charset : public Command {
CMD_NAME("subtitle/open/charset") CMD_NAME("subtitle/open/charset")
STR_MENU("Open Subtitles with &Charset...") STR_MENU("Open Subtitles with &Charset...")
STR_DISP("Open Subtitles with Charset") STR_DISP("Open Subtitles with Charset")
STR_HELP("Opens a subtitles file with a specific charset") STR_HELP("Open a subtitles file with a specific file encoding")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (c->subsController->TryToClose() == wxCANCEL) return; if (c->subsController->TryToClose() == wxCANCEL) return;
@ -307,7 +307,7 @@ struct subtitle_open_video : public Command {
CMD_NAME("subtitle/open/video") CMD_NAME("subtitle/open/video")
STR_MENU("Open Subtitles from &Video") STR_MENU("Open Subtitles from &Video")
STR_DISP("Open Subtitles from Video") STR_DISP("Open Subtitles from Video")
STR_HELP("Opens the subtitles from the current video file") STR_HELP("Open the subtitles from the current video file")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
@ -362,7 +362,7 @@ struct subtitle_save : public Command {
CMD_NAME("subtitle/save") CMD_NAME("subtitle/save")
STR_MENU("&Save Subtitles") STR_MENU("&Save Subtitles")
STR_DISP("Save Subtitles") STR_DISP("Save Subtitles")
STR_HELP("Saves subtitles") STR_HELP("Save the current subtitles")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
@ -380,7 +380,7 @@ struct subtitle_save_as : public Command {
CMD_NAME("subtitle/save/as") CMD_NAME("subtitle/save/as")
STR_MENU("Save Subtitles &as...") STR_MENU("Save Subtitles &as...")
STR_DISP("Save Subtitles as") STR_DISP("Save Subtitles as")
STR_HELP("Saves subtitles with another name") STR_HELP("Save subtitles with another name")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
save_subtitles(c, ""); save_subtitles(c, "");
@ -392,7 +392,7 @@ struct subtitle_select_all : public Command {
CMD_NAME("subtitle/select/all") CMD_NAME("subtitle/select/all")
STR_MENU("Select &All") STR_MENU("Select &All")
STR_DISP("Select All") STR_DISP("Select All")
STR_HELP("Selects all dialogue lines") STR_HELP("Select all dialogue lines")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
SubtitleSelection sel; SubtitleSelection sel;
@ -408,7 +408,7 @@ struct subtitle_select_visible : public Command {
CMD_NAME("subtitle/select/visible") CMD_NAME("subtitle/select/visible")
STR_MENU("Select Visible") STR_MENU("Select Visible")
STR_DISP("Select Visible") STR_DISP("Select Visible")
STR_HELP("Selects all lines that are currently visible on video frame") STR_HELP("Select all dialogue lines that visible on the current video frame")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
void operator()(agi::Context *c) { void operator()(agi::Context *c) {

View file

@ -119,7 +119,7 @@ struct time_continuous_end : public validate_adjoinable {
CMD_NAME("time/continuous/end") CMD_NAME("time/continuous/end")
STR_MENU("Change &End") STR_MENU("Change &End")
STR_DISP("Change End") STR_DISP("Change End")
STR_HELP("Changes times of subs so end times begin on next's start time") STR_HELP("Change end times of lines to the next line's start time")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
adjoin_lines(c, false); adjoin_lines(c, false);
@ -131,7 +131,7 @@ struct time_continuous_start : public validate_adjoinable {
CMD_NAME("time/continuous/start") CMD_NAME("time/continuous/start")
STR_MENU("Change &Start") STR_MENU("Change &Start")
STR_DISP("Change Start") STR_DISP("Change Start")
STR_HELP("Changes times of subs so start times begin on previous's end time") STR_HELP("Change start times of lines to the previous line's end time")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
adjoin_lines(c, true); adjoin_lines(c, true);
@ -259,7 +259,7 @@ struct time_add_lead_both : public Command {
CMD_NAME("time/lead/both") CMD_NAME("time/lead/both")
STR_MENU("Add lead in and out") STR_MENU("Add lead in and out")
STR_DISP("Add lead in and out") STR_DISP("Add lead in and out")
STR_HELP("Add lead in and out") STR_HELP("Add both lead in and out to the selected lines")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (AudioTimingController *tc = c->audioController->GetTimingController()) { if (AudioTimingController *tc = c->audioController->GetTimingController()) {
tc->AddLeadIn(); tc->AddLeadIn();
@ -272,7 +272,7 @@ struct time_add_lead_in : public Command {
CMD_NAME("time/lead/in") CMD_NAME("time/lead/in")
STR_MENU("Add lead in") STR_MENU("Add lead in")
STR_DISP("Add lead in") STR_DISP("Add lead in")
STR_HELP("Add lead in") STR_HELP("Add the lead in time to the selected lines")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (c->audioController->GetTimingController()) if (c->audioController->GetTimingController())
c->audioController->GetTimingController()->AddLeadIn(); c->audioController->GetTimingController()->AddLeadIn();
@ -283,7 +283,7 @@ struct time_add_lead_out : public Command {
CMD_NAME("time/lead/out") CMD_NAME("time/lead/out")
STR_MENU("Add lead out") STR_MENU("Add lead out")
STR_DISP("Add lead out") STR_DISP("Add lead out")
STR_HELP("Add lead out") STR_HELP("Add the lead out time to the selected lines")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (c->audioController->GetTimingController()) if (c->audioController->GetTimingController())
c->audioController->GetTimingController()->AddLeadOut(); c->audioController->GetTimingController()->AddLeadOut();

View file

@ -55,7 +55,7 @@ struct timecode_close : public Command {
CMD_NAME("timecode/close") CMD_NAME("timecode/close")
STR_MENU("Close Timecodes File") STR_MENU("Close Timecodes File")
STR_DISP("Close Timecodes File") STR_DISP("Close Timecodes File")
STR_HELP("Closes the currently open timecodes file") STR_HELP("Close the currently open timecodes file")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {
@ -73,7 +73,7 @@ struct timecode_open : public Command {
CMD_NAME("timecode/open") CMD_NAME("timecode/open")
STR_MENU("Open Timecodes File...") STR_MENU("Open Timecodes File...")
STR_DISP("Open Timecodes File") STR_DISP("Open Timecodes File")
STR_HELP("Opens a VFR timecodes v1 or v2 file") STR_HELP("Open a VFR timecodes v1 or v2 file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
auto str = _("All Supported Formats") + " (*.txt)|*.txt|" + _("All Files") + " (*.*)|*.*"; auto str = _("All Supported Formats") + " (*.txt)|*.txt|" + _("All Files") + " (*.*)|*.*";
@ -88,7 +88,7 @@ struct timecode_save : public Command {
CMD_NAME("timecode/save") CMD_NAME("timecode/save")
STR_MENU("Save Timecodes File...") STR_MENU("Save Timecodes File...")
STR_DISP("Save Timecodes File") STR_DISP("Save Timecodes File")
STR_HELP("Saves a VFR timecodes v2 file") STR_HELP("Save a VFR timecodes v2 file")
CMD_TYPE(COMMAND_VALIDATE) CMD_TYPE(COMMAND_VALIDATE)
bool Validate(const agi::Context *c) { bool Validate(const agi::Context *c) {

View file

@ -72,7 +72,7 @@ struct tool_assdraw : public Command {
CMD_NAME("tool/assdraw") CMD_NAME("tool/assdraw")
STR_MENU("ASSDraw3...") STR_MENU("ASSDraw3...")
STR_DISP("ASSDraw3") STR_DISP("ASSDraw3")
STR_HELP("Launch ASSDraw3 tool for vector drawing") STR_HELP("Launch the ASSDraw3 tool for vector drawing")
void operator()(agi::Context *) { void operator()(agi::Context *) {
wxExecute("\"" + config::path->Decode("?data/ASSDraw3.exe").wstring() + "\""); wxExecute("\"" + config::path->Decode("?data/ASSDraw3.exe").wstring() + "\"");
@ -84,7 +84,7 @@ struct tool_export : public Command {
CMD_NAME("tool/export") CMD_NAME("tool/export")
STR_MENU("&Export Subtitles...") STR_MENU("&Export Subtitles...")
STR_DISP("Export Subtitles") STR_DISP("Export Subtitles")
STR_HELP("Saves a copy of subtitles with processing applied to it") STR_HELP("Save a copy of subtitles in a different format or with processing applied to it")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -109,7 +109,7 @@ struct tool_line_select : public Command {
CMD_NAME("tool/line/select") CMD_NAME("tool/line/select")
STR_MENU("S&elect Lines...") STR_MENU("S&elect Lines...")
STR_DISP("Select Lines") STR_DISP("Select Lines")
STR_HELP("Selects lines based on defined criteria") STR_HELP("Select lines based on defined criteria")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->dialog->Show<DialogSelection>(c); c->dialog->Show<DialogSelection>(c);
@ -121,7 +121,7 @@ struct tool_resampleres : public Command {
CMD_NAME("tool/resampleres") CMD_NAME("tool/resampleres")
STR_MENU("&Resample Resolution...") STR_MENU("&Resample Resolution...")
STR_DISP("Resample Resolution") STR_DISP("Resample Resolution")
STR_HELP("Changes resolution and modifies subtitles to conform to change") STR_HELP("Resample subtitles to maintain their current appearance at a different script resolution")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -180,7 +180,7 @@ struct tool_style_manager : public Command {
CMD_NAME("tool/style/manager") CMD_NAME("tool/style/manager")
STR_MENU("&Styles Manager...") STR_MENU("&Styles Manager...")
STR_DISP("Styles Manager") STR_DISP("Styles Manager")
STR_HELP("Open styles manager") STR_HELP("Open the styles manager")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->dialog->Show<DialogStyleManager>(c); c->dialog->Show<DialogStyleManager>(c);
@ -192,7 +192,7 @@ struct tool_time_kanji : public Command {
CMD_NAME("tool/time/kanji") CMD_NAME("tool/time/kanji")
STR_MENU("&Kanji Timer...") STR_MENU("&Kanji Timer...")
STR_DISP("Kanji Timer") STR_DISP("Kanji Timer")
STR_HELP("Open Kanji timer") STR_HELP("Open the Kanji timer copier")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
DialogKanjiTimer(c).ShowModal(); DialogKanjiTimer(c).ShowModal();
@ -204,7 +204,7 @@ struct tool_time_postprocess : public Command {
CMD_NAME("tool/time/postprocess") CMD_NAME("tool/time/postprocess")
STR_MENU("&Timing Post-Processor...") STR_MENU("&Timing Post-Processor...")
STR_DISP("Timing Post-Processor") STR_DISP("Timing Post-Processor")
STR_HELP("Runs a post-processor for timing to deal with lead-ins, lead-outs, scene timing and etc") STR_HELP("Post-process the subtitle timing to add lead-ins and lead-outs, snap timing to scene changes, etc.")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
DialogTimingProcessor(c).ShowModal(); DialogTimingProcessor(c).ShowModal();

View file

@ -96,7 +96,7 @@ struct video_aspect_cinematic : public validator_video_loaded {
CMD_NAME("video/aspect/cinematic") CMD_NAME("video/aspect/cinematic")
STR_MENU("&Cinematic (2.35)") STR_MENU("&Cinematic (2.35)")
STR_DISP("Cinematic (2.35)") STR_DISP("Cinematic (2.35)")
STR_HELP("Forces video to 2.35 aspect ratio") STR_HELP("Force video to 2.35 aspect ratio")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
bool IsActive(const agi::Context *c) { bool IsActive(const agi::Context *c) {
@ -115,7 +115,7 @@ struct video_aspect_custom : public validator_video_loaded {
CMD_NAME("video/aspect/custom") CMD_NAME("video/aspect/custom")
STR_MENU("C&ustom...") STR_MENU("C&ustom...")
STR_DISP("Custom") STR_DISP("Custom")
STR_HELP("Forces video to a custom aspect ratio") STR_HELP("Force video to a custom aspect ratio")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
bool IsActive(const agi::Context *c) { bool IsActive(const agi::Context *c) {
@ -159,7 +159,7 @@ struct video_aspect_default : public validator_video_loaded {
CMD_NAME("video/aspect/default") CMD_NAME("video/aspect/default")
STR_MENU("&Default") STR_MENU("&Default")
STR_DISP("Default") STR_DISP("Default")
STR_HELP("Leave video on original aspect ratio") STR_HELP("Use video's original aspect ratio")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
bool IsActive(const agi::Context *c) { bool IsActive(const agi::Context *c) {
@ -178,7 +178,7 @@ struct video_aspect_full : public validator_video_loaded {
CMD_NAME("video/aspect/full") CMD_NAME("video/aspect/full")
STR_MENU("&Fullscreen (4:3)") STR_MENU("&Fullscreen (4:3)")
STR_DISP("Fullscreen (4:3)") STR_DISP("Fullscreen (4:3)")
STR_HELP("Forces video to 4:3 aspect ratio") STR_HELP("Force video to 4:3 aspect ratio")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
bool IsActive(const agi::Context *c) { bool IsActive(const agi::Context *c) {
@ -197,7 +197,7 @@ struct video_aspect_wide : public validator_video_loaded {
CMD_NAME("video/aspect/wide") CMD_NAME("video/aspect/wide")
STR_MENU("&Widescreen (16:9)") STR_MENU("&Widescreen (16:9)")
STR_DISP("Widescreen (16:9)") STR_DISP("Widescreen (16:9)")
STR_HELP("Forces video to 16:9 aspect ratio") STR_HELP("Force video to 16:9 aspect ratio")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO) CMD_TYPE(COMMAND_VALIDATE | COMMAND_RADIO)
bool IsActive(const agi::Context *c) { bool IsActive(const agi::Context *c) {
@ -216,7 +216,7 @@ struct video_close : public validator_video_loaded {
CMD_NAME("video/close") CMD_NAME("video/close")
STR_MENU("&Close Video") STR_MENU("&Close Video")
STR_DISP("Close Video") STR_DISP("Close Video")
STR_HELP("Closes the currently open video file") STR_HELP("Close the currently open video file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->SetVideo(""); c->videoController->SetVideo("");
@ -239,7 +239,7 @@ struct video_cycle_subtitles_provider : public cmd::Command {
CMD_NAME("video/subtitles_provider/cycle") CMD_NAME("video/subtitles_provider/cycle")
STR_MENU("Cycle active subtitles provider") STR_MENU("Cycle active subtitles provider")
STR_DISP("Cycle active subtitles provider") STR_DISP("Cycle active subtitles provider")
STR_HELP("Cycle active subtitles provider") STR_HELP("Cycle through the available subtitles providers")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
auto providers = SubtitlesProviderFactory::GetClasses(); auto providers = SubtitlesProviderFactory::GetClasses();
@ -259,7 +259,7 @@ struct video_detach : public validator_video_loaded {
CMD_NAME("video/detach") CMD_NAME("video/detach")
STR_MENU("&Detach Video") STR_MENU("&Detach Video")
STR_DISP("Detach Video") STR_DISP("Detach Video")
STR_HELP("Detach video, displaying it in a separate Window") STR_HELP("Detach the video display from the main window, displaying it in a separate Window")
CMD_TYPE(COMMAND_VALIDATE | COMMAND_TOGGLE) CMD_TYPE(COMMAND_VALIDATE | COMMAND_TOGGLE)
bool IsActive(const agi::Context *c) { bool IsActive(const agi::Context *c) {
@ -279,7 +279,7 @@ struct video_details : public validator_video_loaded {
CMD_NAME("video/details") CMD_NAME("video/details")
STR_MENU("Show &Video Details") STR_MENU("Show &Video Details")
STR_DISP("Show Video Details") STR_DISP("Show Video Details")
STR_HELP("Shows video details") STR_HELP("Show video details")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
c->videoController->Stop(); c->videoController->Stop();
@ -292,7 +292,7 @@ struct video_focus_seek : public validator_video_loaded {
CMD_NAME("video/focus_seek") CMD_NAME("video/focus_seek")
STR_MENU("Toggle video slider focus") STR_MENU("Toggle video slider focus")
STR_DISP("Toggle video slider focus") STR_DISP("Toggle video slider focus")
STR_HELP("Toggle focus between the video slider and other things") STR_HELP("Toggle focus between the video slider and the previous thing to have focus")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
wxWindow *curFocus = wxWindow::FindFocus(); wxWindow *curFocus = wxWindow::FindFocus();
@ -347,7 +347,7 @@ struct video_frame_next_boundary : public validator_video_loaded {
CMD_NAME("video/frame/next/boundary") CMD_NAME("video/frame/next/boundary")
STR_MENU("Next Boundary") STR_MENU("Next Boundary")
STR_DISP("Next Boundary") STR_DISP("Next Boundary")
STR_HELP("Seek to the next subtitle boundary") STR_HELP("Seek to the next beginning or end of a subtitle")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
AssDialogue *active_line = c->selectionController->GetActiveLine(); AssDialogue *active_line = c->selectionController->GetActiveLine();
@ -418,7 +418,7 @@ struct video_frame_prev_boundary : public validator_video_loaded {
CMD_NAME("video/frame/prev/boundary") CMD_NAME("video/frame/prev/boundary")
STR_MENU("Previous Boundary") STR_MENU("Previous Boundary")
STR_DISP("Previous Boundary") STR_DISP("Previous Boundary")
STR_HELP("Seek to the previous subtitle boundary") STR_HELP("Seek to the previous beginning or end of a subtitle")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
AssDialogue *active_line = c->selectionController->GetActiveLine(); AssDialogue *active_line = c->selectionController->GetActiveLine();
@ -563,7 +563,7 @@ struct video_jump_end : public validator_video_loaded {
CMD_NAME("video/jump/end") CMD_NAME("video/jump/end")
STR_MENU("Jump Video to &End") STR_MENU("Jump Video to &End")
STR_DISP("Jump Video to End") STR_DISP("Jump Video to End")
STR_HELP("Jumps the video to the end frame of current subtitle") STR_HELP("Jump the video to the end frame of current subtitle")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (AssDialogue *active_line = c->selectionController->GetActiveLine()) { if (AssDialogue *active_line = c->selectionController->GetActiveLine()) {
@ -577,7 +577,7 @@ struct video_jump_start : public validator_video_loaded {
CMD_NAME("video/jump/start") CMD_NAME("video/jump/start")
STR_MENU("Jump Video to &Start") STR_MENU("Jump Video to &Start")
STR_DISP("Jump Video to Start") STR_DISP("Jump Video to Start")
STR_HELP("Jumps the video to the start frame of current subtitle") STR_HELP("Jump the video to the start frame of current subtitle")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
if (AssDialogue *active_line = c->selectionController->GetActiveLine()) if (AssDialogue *active_line = c->selectionController->GetActiveLine())
@ -590,7 +590,7 @@ struct video_open : public Command {
CMD_NAME("video/open") CMD_NAME("video/open")
STR_MENU("&Open Video...") STR_MENU("&Open Video...")
STR_DISP("Open Video") STR_DISP("Open Video")
STR_HELP("Opens a video file") STR_HELP("Open a video file")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
auto str = _("Video Formats") + " (*.asf,*.avi,*.avs,*.d2v,*.m2ts,*.m4v,*.mkv,*.mov,*.mp4,*.mpeg,*.mpg,*.ogm,*.webm,*.wmv,*.ts,*.y4m,*.yuv)|*.asf;*.avi;*.avs;*.d2v;*.m2ts;*.m4v;*.mkv;*.mov;*.mp4;*.mpeg;*.mpg;*.ogm;*.webm;*.wmv;*.ts;*.y4m;*.yuv|" auto str = _("Video Formats") + " (*.asf,*.avi,*.avs,*.d2v,*.m2ts,*.m4v,*.mkv,*.mov,*.mp4,*.mpeg,*.mpg,*.ogm,*.webm,*.wmv,*.ts,*.y4m,*.yuv)|*.asf;*.avi;*.avs;*.d2v;*.m2ts;*.m4v;*.mkv;*.mov;*.mp4;*.mpeg;*.mpg;*.ogm;*.webm;*.wmv;*.ts;*.y4m;*.yuv|"
@ -606,7 +606,7 @@ struct video_open_dummy : public Command {
CMD_NAME("video/open/dummy") CMD_NAME("video/open/dummy")
STR_MENU("&Use Dummy Video...") STR_MENU("&Use Dummy Video...")
STR_DISP("Use Dummy Video") STR_DISP("Use Dummy Video")
STR_HELP("Opens a video clip with solid color") STR_HELP("Open a placeholder video clip with solid color")
void operator()(agi::Context *c) { void operator()(agi::Context *c) {
std::string fn = DialogDummyVideo::CreateDummyVideo(c->parent); std::string fn = DialogDummyVideo::CreateDummyVideo(c->parent);
@ -620,7 +620,7 @@ struct video_opt_autoscroll : public Command {
CMD_NAME("video/opt/autoscroll") CMD_NAME("video/opt/autoscroll")
STR_MENU("Toggle autoscroll of video") STR_MENU("Toggle autoscroll of video")
STR_DISP("Toggle autoscroll of video") STR_DISP("Toggle autoscroll of video")
STR_HELP("Toggle autoscroll of video") STR_HELP("Toggle automatically seeking video to the start time of selected lines")
CMD_TYPE(COMMAND_TOGGLE) CMD_TYPE(COMMAND_TOGGLE)
bool IsActive(const agi::Context *) { bool IsActive(const agi::Context *) {