From 6d11c044ec0059405c9e2813e39e9b618e7068c8 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Fri, 15 Oct 2010 16:52:12 -0400 Subject: Changed locale implementation. --- modules/textadept/snapopen.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 modules/textadept/snapopen.lua (limited to 'modules/textadept/snapopen.lua') diff --git a/modules/textadept/snapopen.lua b/modules/textadept/snapopen.lua old mode 100644 new mode 100755 index 62320835..f472b744 --- a/modules/textadept/snapopen.lua +++ b/modules/textadept/snapopen.lua @@ -1,6 +1,6 @@ -- Copyright 2007-2010 Mitchell mitchellcaladbolg.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', -- cgit v1.2.3