From abe201d2716ee474fa8fb67739b31407bcd96bd4 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 15 Jan 2015 18:06:55 +0000 Subject: [PATCH] * properly deal with language codes for various Chinese-like SublanguageIDs and LanguageNames @see https://www.filebot.net/forums/viewtopic.php?f=8&t=2337#p13444 --- source/net/filebot/Language.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/filebot/Language.java b/source/net/filebot/Language.java index 970f23b7..88af4637 100644 --- a/source/net/filebot/Language.java +++ b/source/net/filebot/Language.java @@ -62,7 +62,7 @@ public class Language implements Serializable { } public boolean matches(String code) { - return iso_639_1.equalsIgnoreCase(code) || iso_639_3.equalsIgnoreCase(code) || iso_639_2B.equalsIgnoreCase(code) || name.equalsIgnoreCase(code); + return iso_639_1.equalsIgnoreCase(code) || iso_639_3.equalsIgnoreCase(code) || iso_639_2B.equalsIgnoreCase(code) || name.equalsIgnoreCase(code) || code.toLowerCase().contains(name.toLowerCase()); } @Override