diff options
author | 2010-10-15 16:52:12 -0400 | |
---|---|---|
committer | 2010-10-15 16:52:12 -0400 | |
commit | 6d11c044ec0059405c9e2813e39e9b618e7068c8 (patch) | |
tree | bd2d28c04d63d633817cc1f29c74608e36c7c3cb /modules/textadept/snapopen.lua | |
parent | 32602279973cef2783399c08709b3567f8369371 (diff) | |
download | textadept-6d11c044ec0059405c9e2813e39e9b618e7068c8.tar.gz textadept-6d11c044ec0059405c9e2813e39e9b618e7068c8.zip |
Changed locale implementation.
Diffstat (limited to 'modules/textadept/snapopen.lua')
-rwxr-xr-x[-rw-r--r--] | modules/textadept/snapopen.lua | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua index 62320835..f472b744 100644..100755 --- a/modules/textadept/snapopen.lua +++ b/modules/textadept/snapopen.lua @@ -1,6 +1,6 @@ -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE.
-local locale = _G.locale
+local L = _G.locale.localize
---
-- Snapopen for the textadept module.
@@ -108,12 +108,14 @@ function open(paths, filter, exclusive, depth) for _, path in ipairs(paths) do add_directory(path, list, 1, filter) end
if #list >= MAX then
gui.dialog('ok-msgbox',
- '--title', locale.M_SNAPOPEN_LIMIT_EXCEEDED_TITLE,
+ '--title', L('File Limit Exceeded'),
'--informative-text',
- string.format(locale.M_SNAPOPEN_LIMIT_EXCEEDED_TEXT, MAX, MAX))
+ string.format('%d %s %d', MAX,
+ L('files or more were found. Showing the first'),
+ MAX))
end
local out = gui.dialog('filteredlist',
- '--title', locale.IO_OPEN_TITLE,
+ '--title', L('Open'),
'--button1', 'gtk-ok',
'--button2', 'gtk-cancel',
'--no-newline',
|