aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/snippets.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-10-15 16:52:12 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-10-15 16:52:12 -0400
commit6d11c044ec0059405c9e2813e39e9b618e7068c8 (patch)
treebd2d28c04d63d633817cc1f29c74608e36c7c3cb /modules/textadept/snippets.lua
parent32602279973cef2783399c08709b3567f8369371 (diff)
downloadtextadept-6d11c044ec0059405c9e2813e39e9b618e7068c8.tar.gz
textadept-6d11c044ec0059405c9e2813e39e9b618e7068c8.zip
Changed locale implementation.
Diffstat (limited to 'modules/textadept/snippets.lua')
-rwxr-xr-x[-rw-r--r--]modules/textadept/snippets.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/snippets.lua b/modules/textadept/snippets.lua
index 0c1b5e8b..6ea39563 100644..100755
--- a/modules/textadept/snippets.lua
+++ b/modules/textadept/snippets.lua
@@ -1,6 +1,6 @@
-- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.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