From f19e29fe5f426c1f73f0a4ff554ee0c62b13df77 Mon Sep 17 00:00:00 2001 From: Torkel Berli Date: Tue, 22 Jan 2019 18:48:16 +0900 Subject: [PATCH] Add support for Tagalog language (#81) --- pom.xml | 2 +- src/main/java/com/github/wovnio/wovnjava/Lang.java | 1 + src/main/java/com/github/wovnio/wovnjava/Settings.java | 2 +- src/test/java/com/github/wovnio/wovnjava/LangTest.java | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index 2b7380fd..c6d83ad1 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ com.github.wovnio wovnjava wovnjava - 0.4.0 + 0.4.1 https://github.com/WOVNio/wovnjava diff --git a/src/main/java/com/github/wovnio/wovnjava/Lang.java b/src/main/java/com/github/wovnio/wovnjava/Lang.java index 762382d0..e00a5d88 100644 --- a/src/main/java/com/github/wovnio/wovnjava/Lang.java +++ b/src/main/java/com/github/wovnio/wovnjava/Lang.java @@ -40,6 +40,7 @@ class Lang { map.put("tr", new Lang("Türkçe", "tr", "Turkish")); map.put("uk", new Lang("Українська", "uk", "Ukrainian")); map.put("vi", new Lang("Tiếng Việt", "vi", "Vietnamese")); + map.put("tl", new Lang("Tagalog", "tl", "Tagalog")); LANG = Collections.unmodifiableMap(map); } diff --git a/src/main/java/com/github/wovnio/wovnjava/Settings.java b/src/main/java/com/github/wovnio/wovnjava/Settings.java index ea1b8e22..a69c79a5 100644 --- a/src/main/java/com/github/wovnio/wovnjava/Settings.java +++ b/src/main/java/com/github/wovnio/wovnjava/Settings.java @@ -11,7 +11,7 @@ import javax.xml.bind.DatatypeConverter; class Settings { - public static final String VERSION = "0.4.0"; + public static final String VERSION = "0.4.1"; static final String UrlPatternRegPath = "/([^/.?]+)"; static final String UrlPatternRegQuery = "(?:(?:\\?.*&)|\\?)wovn=([^&]+)(?:&|$)"; static final String UrlPatternRegSubdomain = "^([^.]+)\\."; diff --git a/src/test/java/com/github/wovnio/wovnjava/LangTest.java b/src/test/java/com/github/wovnio/wovnjava/LangTest.java index e4bc0045..e405eaa4 100644 --- a/src/test/java/com/github/wovnio/wovnjava/LangTest.java +++ b/src/test/java/com/github/wovnio/wovnjava/LangTest.java @@ -11,7 +11,7 @@ public void testLangsExist() { } public void testLangsSize() { - assertEquals(30, Lang.LANG.size()); + assertEquals(31, Lang.LANG.size()); } public void testKeyExist() {