From 31ffa135f8e786156d214687437939dcb2586f4c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 4 Jun 2012 17:44:02 -0400 Subject: Added ncurses Find/Replace dialog. --- modules/textadept/find.lua | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'modules/textadept') diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 399eda46..1a9d2cfb 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -50,16 +50,17 @@ local find = gui.find module('gui.find')]] local _L = _L -find.find_label_text = _L['_Find:'] -find.replace_label_text = _L['R_eplace:'] -find.find_next_button_text = _L['Find _Next'] -find.find_prev_button_text = _L['Find _Prev'] -find.replace_button_text = _L['_Replace'] -find.replace_all_button_text = _L['Replace _All'] -find.match_case_label_text = _L['_Match case'] -find.whole_word_label_text = _L['_Whole word'] -find.lua_pattern_label_text = _L['_Lua pattern'] -find.in_files_label_text = _L['_In files'] +find.find_label_text = not NCURSES and _L['_Find:'] or _L['Find:'] +find.replace_label_text = not NCURSES and _L['R_eplace:'] or _L['Replace:'] +find.find_next_button_text = not NCURSES and _L['Find _Next'] or _L['[Next]'] +find.find_prev_button_text = not NCURSES and _L['Find _Prev'] or _L['[Prev]'] +find.replace_button_text = not NCURSES and _L['_Replace'] or _L['[Replace]'] +find.replace_all_button_text = not NCURSES and _L['Replace _All'] or _L['[All]'] +find.match_case_label_text = not NCURSES and _L['_Match case'] or _L['Case(F1)'] +find.whole_word_label_text = not NCURSES and _L['_Whole word'] or _L['Word(F2)'] +find.lua_pattern_label_text = not NCURSES and _L['_Lua pattern'] or + _L['Pattern(F3)'] +find.in_files_label_text = not NCURSES and _L['_In files'] or _L['Files(F4)'] local MARK_FIND = _SCINTILLA.next_marker_number() local MARK_FIND_COLOR = 0x4D9999 -- cgit v1.2.3