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/session.lua | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'modules/textadept/session.lua') diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua index 217f8101..fe77650d 100644 --- a/modules/textadept/session.lua +++ b/modules/textadept/session.lua @@ -1,7 +1,5 @@ -- Copyright 2007-2011 Mitchell mitchellcaladbolg.net. See LICENSE. -local L = locale.localize - local M = {} --[[ This comment is for LuaDoc. @@ -92,8 +90,8 @@ function M.load(filename) gui.goto_view(current_view) if #not_found > 0 then gui.dialog('msgbox', - '--title', L('Session Files Not Found'), - '--text', L('The following session files were not found'), + '--title', _L['Session Files Not Found'], + '--text', _L['The following session files were not found'], '--informative-text', table.concat(not_found, '\n')) end return true @@ -174,7 +172,7 @@ end -- @name prompt_load function M.prompt_load() local utf8_filename = gui.dialog('fileselect', - '--title', L('Load Session'), + '--title', _L['Load Session'], '--with-directory', M.DEFAULT_SESSION:match('.+[/\\]') or '', '--with-file', @@ -188,7 +186,7 @@ end -- @name prompt_save function M.prompt_save() local utf8_filename = gui.dialog('filesave', - '--title', L('Save Session'), + '--title', _L['Save Session'], '--with-directory', M.DEFAULT_SESSION:match('.+[/\\]') or '', '--with-file', -- cgit v1.2.3