diff -Naur misc/build/JLanguageTool-1.7.0/build.xml misc/build/JLanguageTool-1.7.0_patched/build.xml --- misc/build/JLanguageTool-1.7.0/build.xml 2012-06-25 08:22:35.000000000 +0200 +++ misc/build/JLanguageTool-1.7.0_patched/build.xml 2012-06-25 09:27:39.077442000 +0200 @@ -29,7 +29,9 @@ - + + + @@ -442,11 +444,11 @@ - + - + @@ -651,7 +653,6 @@ - @@ -678,7 +678,7 @@ - + diff -Naur misc/build/JLanguageTool-1.7.0/openoffice/components.rdb misc/build/JLanguageTool-1.7.0_patched/openoffice/components.rdb --- misc/build/JLanguageTool-1.7.0/openoffice/components.rdb 1970-01-01 01:00:00.000000000 +0100 +++ misc/build/JLanguageTool-1.7.0_patched/openoffice/components.rdb 2012-06-25 10:26:23.183633100 +0200 @@ -0,0 +1,9 @@ + + + + + + + + + diff -Naur misc/build/JLanguageTool-1.7.0/openoffice/META-INF/manifest.xml misc/build/JLanguageTool-1.7.0_patched/openoffice/META-INF/manifest.xml --- misc/build/JLanguageTool-1.7.0/openoffice/META-INF/manifest.xml 2012-06-25 08:22:34.000000000 +0200 +++ misc/build/JLanguageTool-1.7.0_patched/openoffice/META-INF/manifest.xml 2012-06-25 09:39:56.751738000 +0200 @@ -2,8 +2,8 @@ - + diff -Naur misc/build/JLanguageTool-1.7.0/openoffice/description.xml misc/build/JLanguageTool-1.7.0_patched/openoffice/description.xml --- misc/build/JLanguageTool-1.7.0/openoffice/description.xml 2012-06-25 08:22:35.000000000 +0200 +++ misc/build/JLanguageTool-1.7.0_patched/openoffice/description.xml 2012-06-25 10:29:48.520591800 +0200 @@ -21,7 +21,7 @@ LanguageTool. 开源的语言检查工具 LanguageTool. Reizher reizhskrivadurel frank. - + diff -Naur misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/gui/Configuration.java misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/gui/Configuration.java --- misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/gui/Configuration.java 2012-06-25 08:21:31.000000000 +0200 +++ misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/gui/Configuration.java 2012-06-25 09:31:40.737466400 +0200 @@ -23,6 +23,7 @@ import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; +import java.lang.ClassLoader; import java.util.*; import org.languagetool.Language; @@ -142,7 +143,18 @@ final String motherTongueStr = (String) props.get(MOTHER_TONGUE_CONFIG_KEY); if (motherTongueStr != null) { - motherTongue = Language.getLanguageForShortName(motherTongueStr); + // FIXME: hack to disable the functionality for JRE 1.5 + // javax.xml.bind.JAXBException is part of JRE 1.6 + boolean isJRE15 = false; + try { + ClassLoader cl = ClassLoader.getSystemClassLoader(); + cl.loadClass("javax.xml.bind.JAXBException"); + } catch (ClassNotFoundException e) { + isJRE15 = true; + } + if (!isJRE15) { + motherTongue = Language.getLanguageForShortName(motherTongueStr); + } } final String autoDetectStr = (String) props.get(AUTO_DETECT_CONFIG_KEY); diff -Naur misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/openoffice/Main.java misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/openoffice/Main.java --- misc/build/JLanguageTool-1.7.0/src/java/org/languagetool/openoffice/Main.java 2012-06-25 08:21:28.000000000 +0200 +++ misc/build/JLanguageTool-1.7.0_patched/src/java/org/languagetool/openoffice/Main.java 2012-06-25 09:36:03.778528700 +0200 @@ -24,6 +24,7 @@ * @author Marcin Miłkowski */ import java.io.File; +import java.lang.ClassLoader; import java.util.ArrayList; import java.util.Arrays; import java.util.Comparator; @@ -494,6 +495,14 @@ */ @Override public final Locale[] getLocales() { + // FIXME: hack to disable the functionality for JRE 1.5 + // javax.xml.bind.JAXBException is part of JRE 1.6 + try { + ClassLoader cl = ClassLoader.getSystemClassLoader(); + cl.loadClass("javax.xml.bind.JAXBException"); + } catch (ClassNotFoundException e) { + return new Locale[0]; + } try { int dims = 0; for (final Language element : Language.LANGUAGES) { ion> libreoffice-3.5.3.1 libreoffice-3.5.5.1 libreoffice-3.5.6.1 libreoffice-3.5.99.1 libreoffice-4-0 libreoffice-4-0-0 libreoffice-4-0-1 libreoffice-4-0-2 libreoffice-4-0-3 libreoffice-4-0-4 libreoffice-4-0-5 libreoffice-4-0-6 libreoffice-4-1 libreoffice-4-1-0 libreoffice-4-1-1 libreoffice-4-1-2 libreoffice-4-1-3 libreoffice-4-1-4 libreoffice-4-1-5 libreoffice-4-1-6 libreoffice-4-2 libreoffice-4-2-0 libreoffice-4-2-1 libreoffice-4-2-2 libreoffice-4-2-3 libreoffice-4-2-4 libreoffice-4-2-5 libreoffice-4-2-6 libreoffice-4-2-7 libreoffice-4-2-8 libreoffice-4-3 libreoffice-4-3-0 libreoffice-4-3-1 libreoffice-4-3-2 libreoffice-4-3-3 libreoffice-4-3-4 libreoffice-4-3-5 libreoffice-4-3-6 libreoffice-4-3-7 libreoffice-4-4 libreoffice-4-4-0 libreoffice-4-4-1 libreoffice-4-4-2 libreoffice-4-4-3 libreoffice-4-4-4 libreoffice-4-4-5 libreoffice-4-4-6 libreoffice-4-4-7 libreoffice-5-0 libreoffice-5-0-0 libreoffice-5-0-1 libreoffice-5-0-2 libreoffice-5-0-3 libreoffice-5-0-4 libreoffice-5-0-5 libreoffice-5-0-6 libreoffice-5-1 libreoffice-5-1-0 libreoffice-5-1-1 libreoffice-5-1-2 libreoffice-5-1-3 libreoffice-5-1-4 libreoffice-5-1-5 libreoffice-5-1-6 libreoffice-5-2 libreoffice-5-2-0 libreoffice-5-2-1 libreoffice-5-2-2 libreoffice-5-2-3 libreoffice-5-2-4 libreoffice-5-2-5 libreoffice-5-2-6 libreoffice-5-2-7 libreoffice-5-3 libreoffice-5-3-0 libreoffice-5-3-1 libreoffice-5-3-2 libreoffice-5-3-3 libreoffice-5-3-4 libreoffice-5-3-5 libreoffice-5-3-6 libreoffice-5-3-7 libreoffice-5-4 libreoffice-5-4-0 libreoffice-5-4-1 libreoffice-5-4-2 libreoffice-5-4-3 libreoffice-5-4-4 libreoffice-5-4-5 libreoffice-5-4-6 libreoffice-5-4-7 libreoffice-6-0 libreoffice-6-0-0 libreoffice-6-0-1 libreoffice-6-0-2 libreoffice-6-0-3 libreoffice-6-0-4 libreoffice-6-0-5 libreoffice-6-0-6 libreoffice-6-0-7 libreoffice-6-1 libreoffice-6-1-0 libreoffice-6-1-1 libreoffice-6-1-2 libreoffice-6-1-3 libreoffice-6-1-4 libreoffice-6-1-5 libreoffice-6-1-6 libreoffice-6-2 libreoffice-6-2-0 libreoffice-6-2-1 libreoffice-6-2-2 libreoffice-6-2-3 libreoffice-6-2-4 libreoffice-6-2-5 libreoffice-6-2-6 libreoffice-6-2-7 libreoffice-6-2-8 libreoffice-6-3 libreoffice-6-3-0 libreoffice-6-3-1 libreoffice-6-3-2 libreoffice-6-3-3 libreoffice-6-3-4 libreoffice-6-3-5 libreoffice-6-3-6 libreoffice-6-4 libreoffice-6-4-0 libreoffice-6-4-1 libreoffice-6-4-2 libreoffice-6-4-3 libreoffice-6-4-4 libreoffice-6-4-5 libreoffice-6-4-6 libreoffice-6-4-7 libreoffice-7-0 libreoffice-7-0-0 libreoffice-7-0-1 libreoffice-7-0-2 libreoffice-7-0-3 libreoffice-7-0-4 libreoffice-7-0-5 libreoffice-7-0-6 libreoffice-7-1 libreoffice-7-1-0 libreoffice-7-1-1 libreoffice-7-1-2 libreoffice-7-1-3 libreoffice-7-1-4 libreoffice-7-1-5 libreoffice-7-1-6 libreoffice-7-1-7 libreoffice-7-2 libreoffice-7-2-0 libreoffice-7-2-1 libreoffice-7-2-2 libreoffice-7-2-3 libreoffice-7-2-5 libreoffice-7-2-6 libreoffice-7-2-7 libreoffice-7-3 libreoffice-7-3-0 libreoffice-7-3-1 libreoffice-7-3-2 libreoffice-7-3-3 libreoffice-7-3-4 libreoffice-7-3-5 libreoffice-7-3-6 libreoffice-7-3-7 libreoffice-7-4 libreoffice-7-4-0 libreoffice-7-4-1 libreoffice-7-4-2 libreoffice-7-4-3 libreoffice-7-4-4 libreoffice-7-4-6 libreoffice-7-4-7 libreoffice-7-5 libreoffice-7-5-0 libreoffice-7-5-1 libreoffice-7-5-2 libreoffice-7-5-3 libreoffice-7-5-4 libreoffice-7-5-5 libreoffice-7-5-6 libreoffice-7-5-7 libreoffice-7-5-8 libreoffice-7-5-9 libreoffice-7-6 libreoffice-7-6-0 libreoffice-7-6-1 libreoffice-7-6-2 libreoffice-7-6-3 libreoffice-7-6-4 libreoffice-7-6-5 libreoffice-7-6-6 libreoffice-7-6-7 master LibreOffice 界面翻译代码仓库文档基金会 aboutsummaryrefslogtreecommitdiff log msg author committer range path: root/sourcediff optionscontext:12345678910152025303540space:includeignoremode:unifiedssdiffstat onlyDiffstat (limited to 'source')