aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snapopen.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 18:00:19 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-12-31 18:00:19 -0500
commitbd55d676f133a5b38ca53c33bf599d66dfe1fc87 (patch)
tree369c9cfa6fe5e32eeb3bc89d0a86d3c8def57044 /modules/textadept/snapopen.lua
parentae8dddf78ef5b07f4d64471d8f6800746373af6e (diff)
downloadtextadept-bd55d676f133a5b38ca53c33bf599d66dfe1fc87.tar.gz
textadept-bd55d676f133a5b38ca53c33bf599d66dfe1fc87.zip
Changed 'locale.localize()' to global '_L' table.
Diffstat (limited to 'modules/textadept/snapopen.lua')
-rw-r--r--modules/textadept/snapopen.lua8
1 files changed, 3 insertions, 5 deletions
diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua
index bcf7e482..02d20f2a 100644
--- a/modules/textadept/snapopen.lua
+++ b/modules/textadept/snapopen.lua
@@ -1,7 +1,5 @@
-- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
-local L = locale.localize
-
local M = {}
--[[ This comment is for LuaDoc.
@@ -116,13 +114,13 @@ function M.open(utf8_paths, filter, exclusive, depth)
for _, path in ipairs(utf8_paths) do add_directory(path, list, 1, filter) end
if #list >= M.MAX then
gui.dialog('ok-msgbox',
- '--title', L('File Limit Exceeded'),
+ '--title', _L['File Limit Exceeded'],
'--informative-text',
string.format('%d %s %d', M.MAX,
- L('files or more were found. Showing the first'),
+ _L['files or more were found. Showing the first'],
M.MAX))
end
- local utf8_filenames = gui.filteredlist(L('Open'), L('File'), list, false,
+ local utf8_filenames = gui.filteredlist(_L['Open'], _L['File'], list, false,
'--select-multiple') or ''
for filename in utf8_filenames:gmatch('[^\n]+') do io.open_file(filename) end
end