Use TitleCase for CTL dialog menu options
This is more consistent with other actions exposed in the dialog.
This commit is contained in:
parent
af976e4834
commit
abbc8facc6
2 changed files with 48 additions and 48 deletions
|
@ -2276,33 +2276,33 @@ void LineEdit::_ensure_menu() {
|
|||
|
||||
menu_dir = memnew(PopupMenu);
|
||||
menu_dir->set_name("DirMenu");
|
||||
menu_dir->add_radio_check_item(RTR("Same as layout direction"), MENU_DIR_INHERITED);
|
||||
menu_dir->add_radio_check_item(RTR("Auto-detect direction"), MENU_DIR_AUTO);
|
||||
menu_dir->add_radio_check_item(RTR("Left-to-right"), MENU_DIR_LTR);
|
||||
menu_dir->add_radio_check_item(RTR("Right-to-left"), MENU_DIR_RTL);
|
||||
menu->add_child(menu_dir);
|
||||
menu_dir->add_radio_check_item(RTR("Same as Layout Direction"), MENU_DIR_INHERITED);
|
||||
menu_dir->add_radio_check_item(RTR("Auto-Detect Direction"), MENU_DIR_AUTO);
|
||||
menu_dir->add_radio_check_item(RTR("Left-to-Right"), MENU_DIR_LTR);
|
||||
menu_dir->add_radio_check_item(RTR("Right-to-Left"), MENU_DIR_RTL);
|
||||
menu->add_child(menu_dir, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
menu_ctl = memnew(PopupMenu);
|
||||
menu_ctl->set_name("CTLMenu");
|
||||
menu_ctl->add_item(RTR("Left-to-right mark (LRM)"), MENU_INSERT_LRM);
|
||||
menu_ctl->add_item(RTR("Right-to-left mark (RLM)"), MENU_INSERT_RLM);
|
||||
menu_ctl->add_item(RTR("Start of left-to-right embedding (LRE)"), MENU_INSERT_LRE);
|
||||
menu_ctl->add_item(RTR("Start of right-to-left embedding (RLE)"), MENU_INSERT_RLE);
|
||||
menu_ctl->add_item(RTR("Start of left-to-right override (LRO)"), MENU_INSERT_LRO);
|
||||
menu_ctl->add_item(RTR("Start of right-to-left override (RLO)"), MENU_INSERT_RLO);
|
||||
menu_ctl->add_item(RTR("Pop direction formatting (PDF)"), MENU_INSERT_PDF);
|
||||
menu_ctl->add_item(RTR("Left-to-Right Mark (LRM)"), MENU_INSERT_LRM);
|
||||
menu_ctl->add_item(RTR("Right-to-Left Mark (RLM)"), MENU_INSERT_RLM);
|
||||
menu_ctl->add_item(RTR("Start of Left-to-Right Embedding (LRE)"), MENU_INSERT_LRE);
|
||||
menu_ctl->add_item(RTR("Start of Right-to-Left Embedding (RLE)"), MENU_INSERT_RLE);
|
||||
menu_ctl->add_item(RTR("Start of Left-to-Right Override (LRO)"), MENU_INSERT_LRO);
|
||||
menu_ctl->add_item(RTR("Start of Right-to-Left Override (RLO)"), MENU_INSERT_RLO);
|
||||
menu_ctl->add_item(RTR("Pop Direction Formatting (PDF)"), MENU_INSERT_PDF);
|
||||
menu_ctl->add_separator();
|
||||
menu_ctl->add_item(RTR("Arabic letter mark (ALM)"), MENU_INSERT_ALM);
|
||||
menu_ctl->add_item(RTR("Left-to-right isolate (LRI)"), MENU_INSERT_LRI);
|
||||
menu_ctl->add_item(RTR("Right-to-left isolate (RLI)"), MENU_INSERT_RLI);
|
||||
menu_ctl->add_item(RTR("First strong isolate (FSI)"), MENU_INSERT_FSI);
|
||||
menu_ctl->add_item(RTR("Pop direction isolate (PDI)"), MENU_INSERT_PDI);
|
||||
menu_ctl->add_item(RTR("Arabic Letter Mark (ALM)"), MENU_INSERT_ALM);
|
||||
menu_ctl->add_item(RTR("Left-to-Right Isolate (LRI)"), MENU_INSERT_LRI);
|
||||
menu_ctl->add_item(RTR("Right-to-Left Isolate (RLI)"), MENU_INSERT_RLI);
|
||||
menu_ctl->add_item(RTR("First Strong Isolate (FSI)"), MENU_INSERT_FSI);
|
||||
menu_ctl->add_item(RTR("Pop Direction Isolate (PDI)"), MENU_INSERT_PDI);
|
||||
menu_ctl->add_separator();
|
||||
menu_ctl->add_item(RTR("Zero width joiner (ZWJ)"), MENU_INSERT_ZWJ);
|
||||
menu_ctl->add_item(RTR("Zero width non-joiner (ZWNJ)"), MENU_INSERT_ZWNJ);
|
||||
menu_ctl->add_item(RTR("Word joiner (WJ)"), MENU_INSERT_WJ);
|
||||
menu_ctl->add_item(RTR("Soft hyphen (SHY)"), MENU_INSERT_SHY);
|
||||
menu->add_child(menu_ctl);
|
||||
menu_ctl->add_item(RTR("Zero-Width Joiner (ZWJ)"), MENU_INSERT_ZWJ);
|
||||
menu_ctl->add_item(RTR("Zero-Width Non-Joiner (ZWNJ)"), MENU_INSERT_ZWNJ);
|
||||
menu_ctl->add_item(RTR("Word Joiner (WJ)"), MENU_INSERT_WJ);
|
||||
menu_ctl->add_item(RTR("Soft Hyphen (SHY)"), MENU_INSERT_SHY);
|
||||
menu->add_child(menu_ctl, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
menu->connect("id_pressed", callable_mp(this, &LineEdit::menu_option));
|
||||
menu_dir->connect("id_pressed", callable_mp(this, &LineEdit::menu_option));
|
||||
|
@ -2329,12 +2329,12 @@ void LineEdit::_ensure_menu() {
|
|||
menu->add_item(RTR("Redo"), MENU_REDO, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_redo") : 0);
|
||||
}
|
||||
menu->add_separator();
|
||||
menu->add_submenu_item(RTR("Text writing direction"), "DirMenu");
|
||||
menu->add_submenu_item(RTR("Text Writing Direction"), "DirMenu");
|
||||
menu->add_separator();
|
||||
menu->add_check_item(RTR("Display control characters"), MENU_DISPLAY_UCC);
|
||||
menu->add_check_item(RTR("Display Control Characters"), MENU_DISPLAY_UCC);
|
||||
menu->set_item_checked(menu->get_item_index(MENU_DISPLAY_UCC), draw_control_chars);
|
||||
if (editable) {
|
||||
menu->add_submenu_item(RTR("Insert control character"), "CTLMenu");
|
||||
menu->add_submenu_item(RTR("Insert Control Character"), "CTLMenu");
|
||||
}
|
||||
menu_dir->set_item_checked(menu_dir->get_item_index(MENU_DIR_INHERITED), text_direction == TEXT_DIRECTION_INHERITED);
|
||||
menu_dir->set_item_checked(menu_dir->get_item_index(MENU_DIR_AUTO), text_direction == TEXT_DIRECTION_AUTO);
|
||||
|
|
|
@ -5193,32 +5193,32 @@ void TextEdit::_generate_context_menu() {
|
|||
|
||||
menu_dir = memnew(PopupMenu);
|
||||
menu_dir->set_name("DirMenu");
|
||||
menu_dir->add_radio_check_item(RTR("Same as layout direction"), MENU_DIR_INHERITED);
|
||||
menu_dir->add_radio_check_item(RTR("Auto-detect direction"), MENU_DIR_AUTO);
|
||||
menu_dir->add_radio_check_item(RTR("Left-to-right"), MENU_DIR_LTR);
|
||||
menu_dir->add_radio_check_item(RTR("Right-to-left"), MENU_DIR_RTL);
|
||||
menu_dir->add_radio_check_item(RTR("Same as Layout Direction"), MENU_DIR_INHERITED);
|
||||
menu_dir->add_radio_check_item(RTR("Auto-Detect Direction"), MENU_DIR_AUTO);
|
||||
menu_dir->add_radio_check_item(RTR("Left-to-Right"), MENU_DIR_LTR);
|
||||
menu_dir->add_radio_check_item(RTR("Right-to-Left"), MENU_DIR_RTL);
|
||||
menu->add_child(menu_dir, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
menu_ctl = memnew(PopupMenu);
|
||||
menu_ctl->set_name("CTLMenu");
|
||||
menu_ctl->add_item(RTR("Left-to-right mark (LRM)"), MENU_INSERT_LRM);
|
||||
menu_ctl->add_item(RTR("Right-to-left mark (RLM)"), MENU_INSERT_RLM);
|
||||
menu_ctl->add_item(RTR("Start of left-to-right embedding (LRE)"), MENU_INSERT_LRE);
|
||||
menu_ctl->add_item(RTR("Start of right-to-left embedding (RLE)"), MENU_INSERT_RLE);
|
||||
menu_ctl->add_item(RTR("Start of left-to-right override (LRO)"), MENU_INSERT_LRO);
|
||||
menu_ctl->add_item(RTR("Start of right-to-left override (RLO)"), MENU_INSERT_RLO);
|
||||
menu_ctl->add_item(RTR("Pop direction formatting (PDF)"), MENU_INSERT_PDF);
|
||||
menu_ctl->add_item(RTR("Left-to-Right Mark (LRM)"), MENU_INSERT_LRM);
|
||||
menu_ctl->add_item(RTR("Right-to-Left Mark (RLM)"), MENU_INSERT_RLM);
|
||||
menu_ctl->add_item(RTR("Start of Left-to-Right Embedding (LRE)"), MENU_INSERT_LRE);
|
||||
menu_ctl->add_item(RTR("Start of Right-to-Left Embedding (RLE)"), MENU_INSERT_RLE);
|
||||
menu_ctl->add_item(RTR("Start of Left-to-Right Override (LRO)"), MENU_INSERT_LRO);
|
||||
menu_ctl->add_item(RTR("Start of Right-to-Left Override (RLO)"), MENU_INSERT_RLO);
|
||||
menu_ctl->add_item(RTR("Pop Direction Formatting (PDF)"), MENU_INSERT_PDF);
|
||||
menu_ctl->add_separator();
|
||||
menu_ctl->add_item(RTR("Arabic letter mark (ALM)"), MENU_INSERT_ALM);
|
||||
menu_ctl->add_item(RTR("Left-to-right isolate (LRI)"), MENU_INSERT_LRI);
|
||||
menu_ctl->add_item(RTR("Right-to-left isolate (RLI)"), MENU_INSERT_RLI);
|
||||
menu_ctl->add_item(RTR("First strong isolate (FSI)"), MENU_INSERT_FSI);
|
||||
menu_ctl->add_item(RTR("Pop direction isolate (PDI)"), MENU_INSERT_PDI);
|
||||
menu_ctl->add_item(RTR("Arabic Letter Mark (ALM)"), MENU_INSERT_ALM);
|
||||
menu_ctl->add_item(RTR("Left-to-Right Isolate (LRI)"), MENU_INSERT_LRI);
|
||||
menu_ctl->add_item(RTR("Right-to-Left Isolate (RLI)"), MENU_INSERT_RLI);
|
||||
menu_ctl->add_item(RTR("First Strong Isolate (FSI)"), MENU_INSERT_FSI);
|
||||
menu_ctl->add_item(RTR("Pop Direction Isolate (PDI)"), MENU_INSERT_PDI);
|
||||
menu_ctl->add_separator();
|
||||
menu_ctl->add_item(RTR("Zero width joiner (ZWJ)"), MENU_INSERT_ZWJ);
|
||||
menu_ctl->add_item(RTR("Zero width non-joiner (ZWNJ)"), MENU_INSERT_ZWNJ);
|
||||
menu_ctl->add_item(RTR("Word joiner (WJ)"), MENU_INSERT_WJ);
|
||||
menu_ctl->add_item(RTR("Soft hyphen (SHY)"), MENU_INSERT_SHY);
|
||||
menu_ctl->add_item(RTR("Zero-Width Joiner (ZWJ)"), MENU_INSERT_ZWJ);
|
||||
menu_ctl->add_item(RTR("Zero-Width Non-Joiner (ZWNJ)"), MENU_INSERT_ZWNJ);
|
||||
menu_ctl->add_item(RTR("Word Joiner (WJ)"), MENU_INSERT_WJ);
|
||||
menu_ctl->add_item(RTR("Soft Hyphen (SHY)"), MENU_INSERT_SHY);
|
||||
menu->add_child(menu_ctl, false, INTERNAL_MODE_FRONT);
|
||||
|
||||
menu->connect("id_pressed", callable_mp(this, &TextEdit::menu_option));
|
||||
|
@ -5246,12 +5246,12 @@ void TextEdit::_generate_context_menu() {
|
|||
menu->add_item(RTR("Redo"), MENU_REDO, is_shortcut_keys_enabled() ? _get_menu_action_accelerator("ui_redo") : 0);
|
||||
}
|
||||
menu->add_separator();
|
||||
menu->add_submenu_item(RTR("Text writing direction"), "DirMenu");
|
||||
menu->add_submenu_item(RTR("Text Writing Direction"), "DirMenu");
|
||||
menu->add_separator();
|
||||
menu->add_check_item(RTR("Display control characters"), MENU_DISPLAY_UCC);
|
||||
menu->add_check_item(RTR("Display Control Characters"), MENU_DISPLAY_UCC);
|
||||
menu->set_item_checked(menu->get_item_index(MENU_DISPLAY_UCC), draw_control_chars);
|
||||
if (editable) {
|
||||
menu->add_submenu_item(RTR("Insert control character"), "CTLMenu");
|
||||
menu->add_submenu_item(RTR("Insert Control Character"), "CTLMenu");
|
||||
}
|
||||
menu_dir->set_item_checked(menu_dir->get_item_index(MENU_DIR_INHERITED), text_direction == TEXT_DIRECTION_INHERITED);
|
||||
menu_dir->set_item_checked(menu_dir->get_item_index(MENU_DIR_AUTO), text_direction == TEXT_DIRECTION_AUTO);
|
||||
|
|
Loading…
Reference in a new issue