aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept/editing.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-03 22:50:12 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-03 22:50:12 -0500
commitc15e9a9cf36da02cb883eb14fd3a4ee23548f675 (patch)
treebe8de81c387208fa5011399d31df5c772e626f50 /modules/textadept/editing.lua
parentfd48dede42c0678e4a5410bd635a02d255fe89d6 (diff)
downloadtextadept-c15e9a9cf36da02cb883eb14fd3a4ee23548f675.tar.gz
textadept-c15e9a9cf36da02cb883eb14fd3a4ee23548f675.zip
Added localization support.
All Textadept messages are in core/locale.lua which provides the new 'textadept.locale' module.
Diffstat (limited to 'modules/textadept/editing.lua')
-rw-r--r--modules/textadept/editing.lua6
1 files changed, 3 insertions, 3 deletions
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+$') )