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/session.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 91adf795..dd8f9847 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -95,7 +95,8 @@ function M.load(filename) gui.dialog('msgbox', '--title', _L['Session Files Not Found'], '--text', _L['The following session files were not found'], - '--informative-text', table.concat(not_found, '\n')) + '--informative-text', table.concat(not_found, '\n'), + '--button1', _L['_OK']) end return true end @@ -177,6 +178,8 @@ end function M.prompt_load() local utf8_filename = gui.dialog('fileselect', '--title', _L['Load Session'], + '--button1', _L['_Open'], + '--button2', _L['_Cancel'], '--with-directory', M.DEFAULT_SESSION:match('.+[/\\]') or '', '--with-file', @@ -191,6 +194,8 @@ end function M.prompt_save() local utf8_filename = gui.dialog('filesave', '--title', _L['Save Session'], + '--button1', _L['_Save'], + '--button2', _L['_Cancel'], '--with-directory', M.DEFAULT_SESSION:match('.+[/\\]') or '', '--with-file', -- cgit v1.2.3