feat: add Indonesian translation (PR #2018)
* Add Indonesian translation * fix load i18n resources with deprecated language codes --------- Co-authored-by: Skylot <skylot@gmail.com>
This commit is contained in:
committed by
GitHub
parent
c39a696977
commit
8f0d0e4f4d
@@ -8,6 +8,7 @@ import java.nio.file.Paths;
|
||||
import java.util.HashSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
|
||||
@@ -15,6 +16,9 @@ import org.junit.jupiter.api.Assertions;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import jadx.gui.utils.LangLocale;
|
||||
import jadx.gui.utils.NLS;
|
||||
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.empty;
|
||||
import static org.junit.jupiter.api.Assertions.assertTrue;
|
||||
@@ -36,6 +40,16 @@ public class TestI18n {
|
||||
assertTrue(Files.exists(guiJavaPath));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void verifyLocales() {
|
||||
for (LangLocale lang : NLS.getLangLocales()) {
|
||||
Locale locale = lang.get();
|
||||
System.out.println("Language: " + locale.getLanguage() + " - " + locale.getDisplayLanguage()
|
||||
+ ", country: " + locale.getCountry() + " - " + locale.getDisplayCountry()
|
||||
+ ", language tag: " + locale.toLanguageTag());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void filesExactlyMatch() throws IOException {
|
||||
Files.list(i18nPath).forEach(p -> {
|
||||
|
||||
Reference in New Issue
Block a user