Fix language translation fetch by name

wrong method was called, specify file by exact name
Closes #1127
This commit is contained in:
Kurt 2017-05-12 20:44:12 -07:00
parent a70a4d5e3f
commit 5461cdaa4b

View file

@ -20,7 +20,8 @@ namespace PKHeX.WinForms
rawlist = File.ReadAllLines(externalLangPath);
else
{
rawlist = Util.getStringList("lang", lang);
var file = "lang_" + lang;
rawlist = Util.getStringList(file);
if (rawlist.Length == 0)
{
// Translation file does not exist as a resource; abort this function and don't translate UI.