aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/find.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-03-27 15:50:54 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-03-27 15:50:54 -0400
commita43f627feac51e61b5dbf0b0f118faabf7f1eecf (patch)
tree36c48ae9f49e3e24da07b11455275167fe1bf63b /modules/textadept/find.lua
parent340f796f0aa42d96f4f95ec1f962bbb0fe131a35 (diff)
downloadtextadept-a43f627feac51e61b5dbf0b0f118faabf7f1eecf.tar.gz
textadept-a43f627feac51e61b5dbf0b0f118faabf7f1eecf.zip
Translate all messages instead of relying on GTK to translate stock items.
Diffstat (limited to 'modules/textadept/find.lua')
-rw-r--r--modules/textadept/find.lua24
1 files changed, 14 insertions, 10 deletions
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