From a43f627feac51e61b5dbf0b0f118faabf7f1eecf Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 27 Mar 2012 15:50:54 -0400 Subject: Translate all messages instead of relying on GTK to translate stock items. --- modules/textadept/find.lua | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'modules/textadept/find.lua') diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua index 62fbc5fe..399eda46 100644 --- a/modules/textadept/find.lua +++ b/modules/textadept/find.lua @@ -50,16 +50,16 @@ local find = gui.find module('gui.find')]] local _L = _L -find.find_label_text = _L['Find:'] -find.replace_label_text = _L['Replace:'] -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 = _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'] local MARK_FIND = _SCINTILLA.next_marker_number() local MARK_FIND_COLOR = 0x4D9999 @@ -83,6 +83,8 @@ function find.find_in_files(utf8_dir) if not utf8_dir then utf8_dir = gui.dialog('fileselect', '--title', _L['Find in Files'], + '--button1', _L['_Open'], + '--button2', _L['_Cancel'], '--select-only-directories', '--with-directory', (buffer.filename or ''):match('^.+[/\\]') or '', @@ -262,6 +264,8 @@ local function run(code) '--title', _L['Error'], '--text', _L['An error occured:'], '--informative-text', val:gsub('"', '\\"'), + '--button1', _L['_OK'], + '--button2', _L['_Cancel'], '--no-cancel') error() end -- cgit v1.2.3