Revision: 6220
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=6220&view=rev
Author:   archeus
Date:     2012-01-11 09:22:11 +0000 (Wed, 11 Jan 2012)
Log Message:
-----------
[ro] unification: do not use the shared unifier, use language-dependent unifier 
in order to avoid unpredictable results when some other language is using a 
feature with the same ID.

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/language/Romanian.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/language/Romanian.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/language/Romanian.java        
2012-01-11 09:19:32 UTC (rev 6219)
+++ trunk/JLanguageTool/src/java/org/languagetool/language/Romanian.java        
2012-01-11 09:22:11 UTC (rev 6220)
@@ -22,6 +22,7 @@
 
 import org.languagetool.Language;
 import org.languagetool.rules.*;
+import org.languagetool.rules.patterns.Unifier;
 import org.languagetool.rules.ro.CompoundRule;
 import org.languagetool.rules.ro.RomanianWordRepeatBeginningRule;
 import org.languagetool.rules.ro.SimpleReplaceRule;
@@ -48,6 +49,8 @@
   private Disambiguator disambiguator;
   private Tokenizer wordTokenizer;
   private SentenceTokenizer sentenceTokenizer;
+  private Unifier unifier;
+  private Unifier disambiguationUnifier;
 
   @Override
   public Locale getLocale() {
@@ -141,4 +144,21 @@
     }
     return sentenceTokenizer;
   }
+  
+  @Override
+  public Unifier getUnifier() {
+    if (unifier == null) {
+      unifier = new Unifier();
+    }
+    return unifier;
+  }
+
+  @Override
+  public Unifier getDisambiguationUnifier() {
+    if (disambiguationUnifier == null) {
+       disambiguationUnifier = new Unifier();
+    }
+    return disambiguationUnifier; 
+  }
+
 }

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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to