|
|
@@ -13,7 +13,7 @@ public class LanguageDetect { |
|
|
|
private static void initDetector(){ |
|
|
|
if(detect == null){ |
|
|
|
try { |
|
|
|
DetectorFactory.loadProfile(Thread.currentThread().getContextClassLoader().getResource("profiles").getPath()); |
|
|
|
DetectorFactory.loadProfile(LanguageDetect.class.getClassLoader().getResource("profiles").getPath()); |
|
|
|
detect = DetectorFactory.create(); |
|
|
|
} catch (LangDetectException e) { |
|
|
|
e.printStackTrace(); |
|
|
|