From 17c33b24243cccf82298513e5a99888ec5b9976e Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 17 Jul 2012 15:30:37 -0400 Subject: Remove mnemonics from localized ncurses strings; core/locale.lua --- core/locale.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/locale.lua b/core/locale.lua index 90142708..1763f396 100644 --- a/core/locale.lua +++ b/core/locale.lua @@ -17,7 +17,7 @@ if not f then error('"core/locale.conf" not found.') end for line in f:lines() do if not line:find('^%s*%%') then local id, str = line:match('^(.-)%s*=%s*(.+)$') - if id and str then M[id] = str end + if id and str then M[id] = not NCURSES and str or str:gsub('_', '') end end end f:close() -- cgit v1.2.3