LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File languagetool-2.0-remove-problematic-language-variants.patch of Package libreoffice-languagetool (Project LibreOffice:Stable)

--- languagetool-2.0/src/main/java/org/languagetool/language/Spanish.java.old	2012-12-30 16:47:10.000000000 +0100
+++ languagetool-2.0/src/main/java/org/languagetool/language/Spanish.java	2013-02-15 10:37:32.000000000 +0100
@@ -73,7 +73,7 @@ public class Spanish extends Language {
     return new String[]{
             "ES", "", "MX", "GT", "CR", "PA", "DO",
             "VE", "PE", "AR", "EC", "CL", "UY", "PY",
-            "BO", "SV", "HN", "NI", "PR", "US", "CU"
+            "BO", "SV", "HN", "NI", "PR", "CU"
     };
   }
   
--- languagetool-2.0/src/main/java/org/languagetool/language/English.java.old	2012-12-30 16:47:10.000000000 +0100
+++ languagetool-2.0/src/main/java/org/languagetool/language/English.java	2013-02-15 10:45:52.000000000 +0100
@@ -82,7 +82,7 @@ public class English extends Language {
 
   @Override
   public String[] getCountryVariants() {
-    return new String[]{"ANY"}; //?
+    return new String[]{};
   }
   
   @Override
--- languagetool-2.0/src/main/java/org/languagetool/language/French.java.old	2012-12-30 16:47:10.000000000 +0100
+++ languagetool-2.0/src/main/java/org/languagetool/language/French.java	2013-02-15 10:49:23.000000000 +0100
@@ -61,8 +61,9 @@ public class French extends Language {
   
   @Override
   public String[] getCountryVariants() {
-    return new String[]{"FR", "", "BE", "CH", "CA", "LU", "MC", "CM",
-            "CI", "HI", "ML", "SN", "CD", "MA", "RE"};
+    return new String[]{"FR", "BE", "CH", "CA", "LU", "MC"};
+//    return new String[]{"FR", "BE", "CH", "CA", "LU", "MC",u
+//            "HI"};
   }
 
   @Override