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/run.lua | |
parent | 32602279973cef2783399c08709b3567f8369371 (diff) | |
download | textadept-6d11c044ec0059405c9e2813e39e9b618e7068c8.tar.gz textadept-6d11c044ec0059405c9e2813e39e9b618e7068c8.zip |
Changed locale implementation.
Diffstat (limited to 'modules/textadept/run.lua')
-rwxr-xr-x[-rw-r--r--] | modules/textadept/run.lua | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 78b1fbdb..772214cb 100644..100755 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -1,6 +1,6 @@ -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE. -local locale = _G.locale +local L = _G.locale.localize --- -- Module for running/executing source files. @@ -107,7 +107,7 @@ error_detail = {} -- @see error_detail function goto_error(pos, line_num) local type = buffer._type - if type == locale.MESSAGE_BUFFER or type == locale.ERROR_BUFFER then + if type == L('[Message Buffer]') or type == L('[Error Buffer]') then line = buffer:get_line(line_num) for _, error_detail in pairs(error_detail) do local captures = { line:match(error_detail.pattern) } @@ -121,8 +121,7 @@ function goto_error(pos, line_num) local msg = captures[error_detail.message] if msg then buffer:call_tip_show(buffer.current_pos, msg) end else - error(string.format( - locale.M_TEXTADEPT_RUN_FILE_DOES_NOT_EXIST, utf8_filename)) + error(string.format('"%s" %s', L('does not exist'), utf8_filename)) end break end |