aboutsummaryrefslogtreecommitdiff
path: root/core/locale.lua
diff options
context:
space:
mode:
Diffstat (limited to 'core/locale.lua')
-rw-r--r--core/locale.lua24
1 files changed, 21 insertions, 3 deletions
diff --git a/core/locale.lua b/core/locale.lua
index 306bb64d..be37499d 100644
--- a/core/locale.lua
+++ b/core/locale.lua
@@ -1,11 +1,24 @@
-- Copyright 2007-2009 Mitchell mitchell<att>caladbolg.net. See LICENSE.
---
--- This module loads all messages used by Textadept for localization.
--- Localized strings are contained in 'core/locale.conf'. Please see this file
--- for more information.
+-- Contains all messages used by Textadept for localization.
module('locale', package.seeall)
+-- Markdown:
+-- ## Overview
+--
+-- All Textadept messages displayed are located in `core/locale.conf`. To change
+-- the language, simply replace that file with a similar file containing the
+-- translated messages. See `core/locale.conf` for more information.
+--
+-- Feel free to translate Textadept and send your modified `locale.conf` files
+-- to me. I will put them up on the site where they can be accessed.
+--
+-- ## Fields
+--
+-- Each message ID in `core/locale.conf` is accessible as a field in this
+-- module.
+
local escapes = { ['\\n'] = '\n', ['\\r'] = '\r', ['\\t'] = '\t' }
local f = io.open(_HOME..'/core/locale.conf', 'rb')
@@ -17,3 +30,8 @@ for line in f:lines() do
end
end
f:close()
+
+---
+-- This module contains no functions.
+function no_functions() end
+no_functions = nil -- undefine