aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/session.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/session.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/session.lua')
-rw-r--r--modules/textadept/session.lua7
1 files changed, 6 insertions, 1 deletions
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',