Merge branch 'patch-1' into 'development'

Update Locale.java | Fix for pseudo-empty lines in translation.

See merge request Songoda/epicfarming!19
This commit is contained in:
Esophose 2019-07-11 19:35:33 +00:00
commit 9ccebdb29d

View File

@ -355,7 +355,7 @@ public class Locale {
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
String line;
for (int lineNumber = 0; (line = reader.readLine()) != null; lineNumber++) {
if (line.isEmpty() || line.startsWith("#") /* Comment */) continue;
if (line.trim().isEmpty() || line.startsWith("#") /* Comment */) continue;
Matcher matcher = NODE_PATTERN.matcher(line);
if (!matcher.find()) {