mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-11-08 11:30:38 +01:00
Update Locale.java | Fix for pseudo-empty lines in translation.
This commit is contained in:
parent
197b6c1f66
commit
4481ddd6a8
@ -355,7 +355,7 @@ public class Locale {
|
|||||||
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
|
try (BufferedReader reader = new BufferedReader(new FileReader(file))) {
|
||||||
String line;
|
String line;
|
||||||
for (int lineNumber = 0; (line = reader.readLine()) != null; lineNumber++) {
|
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);
|
Matcher matcher = NODE_PATTERN.matcher(line);
|
||||||
if (!matcher.find()) {
|
if (!matcher.find()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user