diff options
author | 2010-10-15 16:52:12 -0400 | |
---|---|---|
committer | 2010-10-15 16:52:12 -0400 | |
commit | 6d11c044ec0059405c9e2813e39e9b618e7068c8 (patch) | |
tree | bd2d28c04d63d633817cc1f29c74608e36c7c3cb /modules/textadept/snippets.lua | |
parent | 32602279973cef2783399c08709b3567f8369371 (diff) | |
download | textadept-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.lua | 4 |
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 |