@@ -0,0 +1,1296 @@
+package net.sf.jabref.logic.l10n;%0A%0Aimport org.junit.Test;%0A%0Aimport java.io.IOException;%0Aimport java.nio.file.Files;%0Aimport java.nio.file.Path;%0Aimport java.nio.file.Paths;%0Aimport java.util.Locale;%0Aimport java.util.ResourceBundle;%0Aimport java.util.stream.Collectors;%0A%0A/**%0A * Checks that all property files are correctly encoded and can be loaded without errors.%0A */%0Apublic class TestL10nFiles %7B%0A%0A    @Test%0A    public void testi10nFiles() throws IOException %7B%0A        for(Path p : Files.list(Paths.get(%22src/main/resources/l10n%22)).collect(Collectors.toList())) %7B%0A            String%5B%5D parts = p.getFileName().toString().split(%22%5C%5C.%22)%5B0%5D.split(%22_%22);%0A            String prefix = %22l10n/%22 + parts%5B0%5D;%0A            Locale locale;%0A            if(parts.length == 3) %7B%0A                locale = new Locale(parts%5B1%5D, parts%5B2%5D);%0A            %7D  else %7B%0A                locale = new Locale(parts%5B1%5D);%0A            %7D%0A%0A            checkPropertiesFile(locale, prefix);%0A        %7D%0A    %7D%0A%0A    private void checkPropertiesFile(Locale locale, String prefix) %7B%0A        Locale oldLocale = Locale.getDefault();%0A        try %7B%0A            Locale.setDefault(locale);%0A%0A            ResourceBundle.getBundle(prefix, locale, new EncodingControl(%22UTF-8%22));%0A        %7D finally %7B%0A            Locale.setDefault(oldLocale);%0A        %7D%0A    %7D%0A%0A%7D%0A

Add test that we can detect wrongly encoded language property files automatically.