webmcp
diff framework/env/locale/_get_translation_table.lua @ 314:ba68ef9e7c90
Removed some redundancy from error messages
author | jbe |
---|---|
date | Sun Mar 22 23:10:07 2015 +0100 (2015-03-22) |
parents | 4e69ce9a6365 |
children | 2c31275322db |
line diff
1.1 --- a/framework/env/locale/_get_translation_table.lua Sun Mar 22 23:08:18 2015 +0100 1.2 +++ b/framework/env/locale/_get_translation_table.lua Sun Mar 22 23:10:07 2015 +0100 1.3 @@ -11,7 +11,7 @@ 1.4 local filename = encode.file_path(WEBMCP_BASE_PATH, "locale", "translations." .. language_code .. ".lua") 1.5 local func, load_errmsg = loadcached(filename) 1.6 if not func then 1.7 - error('Could not load translation file "' .. filename .. '": ' .. load_errmsg) 1.8 + error('Could not load translation file: ' .. load_errmsg) 1.9 end 1.10 translation_table = func() 1.11 if type(translation_table) ~= "table" then