aboutsummaryrefslogtreecommitdiff
path: root/core/locale.lua
diff options
context:
space:
mode:
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