diff options
author | 2012-03-27 15:50:54 -0400 | |
---|---|---|
committer | 2012-03-27 15:50:54 -0400 | |
commit | a43f627feac51e61b5dbf0b0f118faabf7f1eecf (patch) | |
tree | 36c48ae9f49e3e24da07b11455275167fe1bf63b /core/file_io.lua | |
parent | 340f796f0aa42d96f4f95ec1f962bbb0fe131a35 (diff) | |
download | textadept-a43f627feac51e61b5dbf0b0f118faabf7f1eecf.tar.gz textadept-a43f627feac51e61b5dbf0b0f118faabf7f1eecf.zip |
Translate all messages instead of relying on GTK to translate stock items.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/file_io.lua b/core/file_io.lua index 41566664..18b7b919 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -109,6 +109,8 @@ function io.open_file(utf8_filenames) utf8_filenames = utf8_filenames or gui.dialog('fileselect', '--title', _L['Open'], + '--button1', _L['_Open'], + '--button2', _L['_Cancel'], '--select-multiple', '--with-directory', (buffer.filename or ''):match('.+[/\\]') or '') @@ -238,6 +240,8 @@ local function save_as(buffer, utf8_filename) if not utf8_filename then utf8_filename = gui.dialog('filesave', '--title', _L['Save'], + '--button1', _L['_Save'], + '--button2', _L['_Cancel'], '--with-directory', (buffer.filename or ''):match('.+[/\\]') or '', '--with-file', @@ -274,7 +278,7 @@ local function close(buffer) '--title', _L['Close without saving?'], '--text', _L['There are unsaved changes in'], '--informative-text', filename, - '--button1', 'gtk-cancel', + '--button1', _L['_Cancel'], '--button2', _L['Close _without saving'], '--no-newline') ~= '2' then return false @@ -315,6 +319,8 @@ local function update_modified_file() '--informative-text', ('"%s"\n%s'):format(utf8_filename, _L['has been modified. Reload it?']), + '--button1', _L['_Yes'], + '--button2', _L['_No'], '--no-cancel', '--no-newline') == '1' then buffer:reload() |