aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/locale.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/core/locale.lua b/core/locale.lua
index d4b56e19..93bf1024 100644
--- a/core/locale.lua
+++ b/core/locale.lua
@@ -8,8 +8,8 @@ module('locale', package.seeall)
-- ## 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.
+-- the language, simply put a similar file containing the translated messages in
+-- your `~/.textadept/` folder. 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.
@@ -21,7 +21,8 @@ module('locale', package.seeall)
local escapes = { ['\\n'] = '\n', ['\\r'] = '\r', ['\\t'] = '\t' }
-local f = io.open(_HOME..'/core/locale.conf', 'rb')
+local f = io.open(_USERHOME..'/locale.conf', 'rb')
+if not f then f = io.open(_HOME..'/core/locale.conf', 'rb') end
if not f then error('"core/locale.conf" not found.') end
for line in f:lines() do
if not line:find('^%s*%%') then