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/snippets.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 modules/textadept/snippets.lua (limited to 'modules/textadept/snippets.lua') diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua old mode 100644 new mode 100755 index 0c1b5e8b..6ea39563 --- a/modules/textadept/snippets.lua +++ b/modules/textadept/snippets.lua @@ -1,6 +1,6 @@ -- Copyright 2007-2010 Mitchell mitchellcaladbolg.net. See LICENSE. -local locale = _G.locale +local L = _G.locale.localize --- -- Provides Lua-style snippets for Textadept. @@ -462,7 +462,7 @@ function _show_style() local lexer = buffer:get_lexer() local style_num = buffer.style_at[buffer.current_pos] local style = buffer:get_style_name(style_num) - local text = string.format(locale.M_TEXTADEPT_SNIPPETS_SHOW_STYLE, lexer, + local text = string.format("%s %s\n%s %s (%d)", L('Lexer'), lexer, L('Style'), style, style_num) buffer:call_tip_show(buffer.current_pos, text) end -- cgit v1.2.3