Revision: 8846
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=8846&view=rev
Author:   dnaber
Date:     2013-01-04 23:16:27 +0000 (Fri, 04 Jan 2013)
Log Message:
-----------
update page with Maven artifact documentation

Modified Paths:
--------------
    trunk/JLanguageTool/docs/internal.txt
    trunk/website/www/java-api/index.php

Modified: trunk/JLanguageTool/docs/internal.txt
===================================================================
--- trunk/JLanguageTool/docs/internal.txt       2013-01-04 23:00:35 UTC (rev 
8845)
+++ trunk/JLanguageTool/docs/internal.txt       2013-01-04 23:16:27 UTC (rev 
8846)
@@ -133,3 +133,4 @@
    this if you want to release version "2.1".
   -If the artifacts don't appear under "Staging repositories" although there 
was
    no error for "mvn release:perform", carry out "7b. Stage Existing Artifacts"
+  -Update http://www.languagetool.org/java-api/
\ No newline at end of file

Modified: trunk/website/www/java-api/index.php
===================================================================
--- trunk/website/www/java-api/index.php        2013-01-04 23:00:35 UTC (rev 
8845)
+++ trunk/website/www/java-api/index.php        2013-01-04 23:16:27 UTC (rev 
8846)
@@ -3,24 +3,24 @@
 $sub_page = "java-api";
 $title = "LanguageTool";
 $title2 = "Java API";
-$lastmod = "2012-10-10 19:20:00 CET";
+$lastmod = "2013-01-04 23:20:00 CET";
 include("../../include/header.php");
 include('../../include/geshi/geshi.php');
 ?>
 
 <h2 class="firstpara">Embedding LanguageTool in Java applications</h2>
 
-    <p>Get LanguageTool by downloading the *.zip package or by adding this 
dependency to your Maven pom.xml:</p>
+    <p>Get LanguageTool by downloading the *.zip package from the homepage or 
by adding this dependency to your Maven pom.xml:</p>
 
 <div class="xmlrule" style="margin-top:5px">
 <?php hl('<dependency>
   <groupId>org.languagetool</groupId>
   <artifactId>languagetool</artifactId>
-  <version>1.9</version>
+  <version>2.0.1</version>
 </dependency>'); ?>
 </div>
 
-    <p>The Maven artifact contains both code and resources for all languages 
and is thus quite large (46MB).</p>
+    <p>The Maven artifact contains both code and resources for all languages 
and is thus quite large (48MB).</p>
 
     <p>If you download the ZIP instead, you will need most JARs, 
<tt>org/languagetool/rules</tt> and <tt>org/languagetool/resources</tt>
     in your classpath. You can skip the following JARs as they are not needed 
at runtime:
@@ -29,7 +29,8 @@
     <p>To use LanguageTool, you just need to create a <tt>JLanguageTool</tt> 
object and use that
        to check your text. Also see <?=show_link("the API documentation", 
"/development/api/", 0) ?>. For example:</p>
 
-       <?php hljava('JLanguageTool langTool = new 
JLanguageTool(Language.ENGLISH);
+<div class="xmlrule" style="margin-top:5px">
+       <?php hljava('JLanguageTool langTool = new 
JLanguageTool(Language.BRITISH_ENGLISH);
 langTool.activateDefaultPatternRules();
 List<RuleMatch> matches = langTool.check("A sentence " +
     "with a error in the Hitchhiker\'s Guide tot he Galaxy");
@@ -40,8 +41,8 @@
   System.out.println("Suggested correction: " +
       match.getSuggestedReplacements());
 }'); ?>
-       <br />
-
+</div>
+       
     <p>If you want spell checking, you will need to specify a language variant 
in the <tt>JLanguageTool</tt> constructor,
     e.g. <tt>Language.AMERICAN_ENGLISH</tt> instead of just 
<tt>Language.ENGLISH</tt>.</p>
 

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
Languagetool-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-commits

Reply via email to