From c15e9a9cf36da02cb883eb14fd3a4ee23548f675 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 3 Jan 2009 22:50:12 -0500 Subject: Added localization support. All Textadept messages are in core/locale.lua which provides the new 'textadept.locale' module. --- modules/textadept/editing.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/textadept/editing.lua') diff --git a/modules/textadept/editing.lua b/modules/textadept/editing.lua index 680bd452..04e9a1a1 100644 --- a/modules/textadept/editing.lua +++ b/modules/textadept/editing.lua @@ -234,11 +234,11 @@ end -- Goes to the requested line. -- @param line Optional line number to go to. function goto_line(line) - local buffer = buffer + local buffer, locale = buffer, textadept.locale if not line then line = cocoa_dialog( 'standard-inputbox', { - title = 'Go To', - text = 'Line Number:', + title = locale.M_TEXTADEPT_EDITING_GOTO_TITLE, + text = locale.M_TEXTADEPT_EDITING_GOTO_TEXT, ['no-newline'] = true } ) line = tonumber( line:match('%-?%d+$') ) -- cgit v1.2.3