From cb0a8dbdfef18f11837ada591af7e99b793b95a6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 14 Jan 2014 21:56:39 -0500 Subject: Added Swedish translation from Niklas Wallén. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/locale.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/locale.lua') diff --git a/core/locale.lua b/core/locale.lua index b2774d46..fb3f0742 100644 --- a/core/locale.lua +++ b/core/locale.lua @@ -11,7 +11,7 @@ module('_L')]] local f = io.open(_USERHOME..'/locale.conf', 'rb') if not f then - local lang = (os.getenv('LANG') or ''):match('^[^_.@]+') + local lang = (os.getenv('LANG') or ''):match('^[^_.@]+') -- TODO: LC_MESSAGES? if lang then f = io.open(_HOME..'/core/locales/locale.'..lang..'.conf') end end if not f then f = io.open(_HOME..'/core/locale.conf', 'rb') end -- cgit v1.2.3