From ddcc45f0615ab6ba776635a15e2183f8d50401a7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 10 Feb 2009 10:24:56 -0500 Subject: Moved the textadept.locale table into the globals table. --- core/ext/pm/project_browser.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/ext/pm/project_browser.lua') diff --git a/core/ext/pm/project_browser.lua b/core/ext/pm/project_browser.lua index b1609ad1..30616ef9 100644 --- a/core/ext/pm/project_browser.lua +++ b/core/ext/pm/project_browser.lua @@ -1,6 +1,7 @@ -- Copyright 2007-2009 Mitchell mitchellcaladbolg.net. See LICENSE. local textadept = _G.textadept +local locale = _G.locale --- -- Browser template for the Textadept project manager. @@ -84,7 +85,6 @@ local ID = { --- Displays the project manager context menu. function get_context_menu(selected_item) - local locale = textadept.locale return { { 'separator', 0 }, -- make it harder to click 'New Project' by mistake { locale.PM_BROWSER_PROJECT_NEW, ID.NEW }, @@ -101,7 +101,6 @@ function get_context_menu(selected_item) end function perform_menu_action(menu_id, selected_item) - local locale = textadept.locale if menu_id == ID.NEW then -- Close all open files and prompt the user to save a project file. if textadept.io.close_all() then -- cgit v1.2.3