有没有什么工具可以从我的html页面中提取字符串资源,这样当我想让我的网站支持多语言时,我就可以把它们翻译成另一种语言。我正在使用这种方法来制作多语言http://www.mkyong.com/spring-mvc/spring-mvc-internationalization-example/。
发布于 2014-04-25 22:44:27
如果你需要一个来自html提取器的文本,你可以使用boilerpipe。
这很简单,你所要做的就是:
URL url = new URL("http://www.example.com/some-location/index.html");
String text = ArticleExtractor.INSTANCE.getText(url);你可以使用他们的Web-API自己尝试一下。
https://stackoverflow.com/questions/23293122
复制相似问题