aboutsummaryrefslogtreecommitdiff
path: root/core/locale.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-12-12 19:15:53 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-12-12 19:15:53 -0500
commit9f804f70df793dd2d50c0b14000ab83a6bc02b83 (patch)
tree12b826dc06b800d868854231d4db56d489697832 /core/locale.lua
parent51bfd53e48d5310eb786069b758e0430129daf54 (diff)
downloadtextadept-9f804f70df793dd2d50c0b14000ab83a6bc02b83.tar.gz
textadept-9f804f70df793dd2d50c0b14000ab83a6bc02b83.zip
Remove 'module' and update LuaDoc comments appropriately.
Diffstat (limited to 'core/locale.lua')
-rw-r--r--core/locale.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/core/locale.lua b/core/locale.lua
index 4274a0e9..29885848 100644
--- a/core/locale.lua
+++ b/core/locale.lua
@@ -1,8 +1,11 @@
-- Copyright 2007-2011 Mitchell mitchell<att>caladbolg.net. See LICENSE.
+local M = {}
+
+--[[ This comment is for LuaDoc.
---
-- Contains all messages used by Textadept for localization.
-module('locale', package.seeall)
+module('locale', package.seeall)]]
-- Markdown:
-- ## Fields
@@ -29,4 +32,7 @@ f:close()
---
-- Localizes the given string.
-- @param id String to localize.
-function localize(id) return localizations[id] or 'No Localization' end
+-- @name localize
+function M.localize(id) return localizations[id] or 'No Localization' end
+
+return M