diff options
author | 2011-12-12 19:15:53 -0500 | |
---|---|---|
committer | 2011-12-12 19:15:53 -0500 | |
commit | 9f804f70df793dd2d50c0b14000ab83a6bc02b83 (patch) | |
tree | 12b826dc06b800d868854231d4db56d489697832 /core/locale.lua | |
parent | 51bfd53e48d5310eb786069b758e0430129daf54 (diff) | |
download | textadept-9f804f70df793dd2d50c0b14000ab83a6bc02b83.tar.gz textadept-9f804f70df793dd2d50c0b14000ab83a6bc02b83.zip |
Remove 'module' and update LuaDoc comments appropriately.
Diffstat (limited to 'core/locale.lua')
-rw-r--r-- | core/locale.lua | 10 |
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 |