aboutsummaryrefslogtreecommitdiff
path: root/core/gui.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 /core/gui.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 'core/gui.lua')
-rw-r--r--core/gui.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/gui.lua b/core/gui.lua
index 5be51813..6681388a 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -82,8 +82,8 @@ function gui.print(...) gui._print(_L['[Message Buffer]'], ...) end
function gui.filteredlist(title, columns, items, int_return, ...)
local out = gui.dialog('filteredlist',
'--title', title,
- '--button1', 'gtk-ok',
- '--button2', 'gtk-cancel',
+ '--button1', _L['_OK'],
+ '--button2', _L['_Cancel'],
'--no-newline',
int_return and '' or '--string-output',
'--columns', columns,
@@ -91,7 +91,7 @@ function gui.filteredlist(title, columns, items, int_return, ...)
...)
local patt = int_return and '^(%-?%d+)\n(%d+)$' or '^([^\n]+)\n(.+)$'
local response, value = out:match(patt)
- if response == (int_return and '1' or 'gtk-ok') then
+ if response == (int_return and '1' or _L['_OK']) then
return not int_return and value or tonumber(value)
end
end
@@ -409,7 +409,7 @@ events_connect(events.QUIT, function()
'--text',
_L['The following buffers are unsaved:'],
'--informative-text', table.concat(list, '\n'),
- '--button1', 'gtk-cancel',
+ '--button1', _L['_Cancel'],
'--button2', _L['Quit _without saving'],
'--no-newline') == '2'
end)