diff options
author | 2009-02-10 10:24:56 -0500 | |
---|---|---|
committer | 2009-02-10 10:24:56 -0500 | |
commit | ddcc45f0615ab6ba776635a15e2183f8d50401a7 (patch) | |
tree | 958e817be2c18db9005db29ddcbdeeb72350d77e /core/init.lua | |
parent | 59c9eb6528d1759bc2734150cb3d99ec2e3eab5b (diff) | |
download | textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.tar.gz textadept-ddcc45f0615ab6ba776635a15e2183f8d50401a7.zip |
Moved the textadept.locale table into the globals table.
Diffstat (limited to 'core/init.lua')
-rw-r--r-- | core/init.lua | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/core/init.lua b/core/init.lua index e792a515..bf272496 100644 --- a/core/init.lua +++ b/core/init.lua @@ -37,7 +37,6 @@ rawset = nil -- do not allow modifications which could compromise stability -- if the check fails. -- @param buffer The buffer in question. function textadept.check_focused_buffer(buffer) - local locale = textadept.locale if type(buffer) ~= 'table' or not buffer.doc_pointer then error(locale.ERR_BUFFER_EXPECTED, 2) elseif textadept.focused_doc_pointer ~= buffer.doc_pointer then @@ -53,8 +52,8 @@ end -- buffer, and prints to it. -- @param buffer_type String type of message buffer. -- @param ... Message strings. --- @usage textadept._print(textadept.locale.ERROR_BUFFER, error_message) --- @usage textadept._print(textadept.locale.MESSAGE_BUFFER, message) +-- @usage textadept._print(locale.ERROR_BUFFER, error_message) +-- @usage textadept._print(locale.MESSAGE_BUFFER, message) function textadept._print(buffer_type, ...) local function safe_print(...) local message = table.concat({...}, '\t') @@ -93,9 +92,7 @@ end -- Prints messages to the Textadept message buffer. -- Opens a new buffer (if one hasn't already been opened) for printing messages. -- @param ... Message strings. -function textadept.print(...) - textadept._print(textadept.locale.MESSAGE_BUFFER, ...) -end +function textadept.print(...) textadept._print(locale.MESSAGE_BUFFER, ...) end --- -- Displays a CocoaDialog of a specified type with given arguments returning |