From bd55d676f133a5b38ca53c33bf599d66dfe1fc87 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 31 Dec 2011 18:00:19 -0500 Subject: Changed 'locale.localize()' to global '_L' table. --- modules/textadept/snapopen.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'modules/textadept/snapopen.lua') 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 mitchellcaladbolg.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 -- cgit v1.2.3