diff --git a/aligner/src/main/java/org/omegat/gui/align/AlignerModule.java b/aligner/src/main/java/org/omegat/gui/align/AlignerModule.java index 358b82cc72..32be83e696 100644 --- a/aligner/src/main/java/org/omegat/gui/align/AlignerModule.java +++ b/aligner/src/main/java/org/omegat/gui/align/AlignerModule.java @@ -1,5 +1,4 @@ /* - * * OmegaT - Computer Assisted Translation (CAT) tool * with fuzzy matching, translation memory, keyword search, * glossaries, and translation leveraging into updated projects. diff --git a/aligner/src/test/java/org/omegat/gui/align/CopyrightTest.java b/aligner/src/test/java/org/omegat/gui/align/CopyrightTest.java deleted file mode 100644 index 79fbc60eb3..0000000000 --- a/aligner/src/test/java/org/omegat/gui/align/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.gui.align; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml index cbe6e3bbd6..8bef8ec6d7 100644 --- a/config/checkstyle/checkstyle.xml +++ b/config/checkstyle/checkstyle.xml @@ -52,6 +52,18 @@ + + + + + + + + + + + + diff --git a/config/checkstyle/java.header b/config/checkstyle/java.header new file mode 100644 index 0000000000..e068afe435 --- /dev/null +++ b/config/checkstyle/java.header @@ -0,0 +1,24 @@ +^/\*(\*{73,})?$ +OmegaT \- Computer Assisted Translation \(CAT\) tool$ +with fuzzy matching, translation memory, keyword search,$ +glossaries, and translation leveraging into updated projects.$ +^( \*)?$ +(Copyright \(C\)|\s{13}) \d\d\d\d((-|,)\d\d\d\d)? (\w+|\s|,)+ +Home page: https://www.omegat.org/ +Support center: https://omegat.org/support +^( \*)?$ +This file is part of OmegaT.$ +^( \*)?$ +OmegaT is free software: you can redistribute it and/or modify$ +it under the terms of the GNU General Public License as published by$ +the Free Software Foundation, either version 3 of the License, or$ +\(at your option\) any later version.$ +^( \*)?$ +OmegaT is distributed in the hope that it will be useful,$ +but WITHOUT ANY WARRANTY; without even the implied warranty of$ +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the$ +GNU General Public License for more details.$ +^( \*)?$ +You should have received a copy of the GNU General Public License$ +along with this program. If not, see .$ +^\s?(\*{73,})?\*/$ diff --git a/config/checkstyle/properties.header b/config/checkstyle/properties.header new file mode 100644 index 0000000000..05922bb61a --- /dev/null +++ b/config/checkstyle/properties.header @@ -0,0 +1,24 @@ +^#(/?\*{75,})?$ +^# OmegaT \- Computer Assisted Translation \(CAT\) tool$ +^# with fuzzy matching, translation memory, keyword search,$ +^# glossaries, and translation leveraging into updated projects.$ +^#$ +^# (Copyright \(C\)|\s{13}) \d\d\d\d(-\d\d\d\d)? (\w+|\s|,)+ +^# Home page: https://www.omegat.org/ +^# Support center: https://omegat.org/support +^#$ +^# This file is part of OmegaT.$ +^#$ +^# OmegaT is free software: you can redistribute it and/or modify$ +^# it under the terms of the GNU General Public License as published by$ +^# the Free Software Foundation, either version 3 of the License, or$ +^# \(at your option\) any later version.$ +^# ^( \*)?$ +^# OmegaT is distributed in the hope that it will be useful,$ +^# but WITHOUT ANY WARRANTY; without even the implied warranty of$ +^# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the$ +^# GNU General Public License for more details.$ +^#$ +^# You should have received a copy of the GNU General Public License$ +^# along with this program. If not, see .$ +^#(\*{75,}/?)?$ diff --git a/config/checkstyle/suppressions.xml b/config/checkstyle/suppressions.xml index 01bf811094..0d41dd0143 100644 --- a/config/checkstyle/suppressions.xml +++ b/config/checkstyle/suppressions.xml @@ -31,6 +31,9 @@ + + + @@ -161,7 +164,7 @@ - + diff --git a/doc_src/build.xml b/doc_src/build.xml index 696c83b64b..5908b8228d 100644 --- a/doc_src/build.xml +++ b/doc_src/build.xml @@ -1,13 +1,11 @@ - diff --git a/machinetranslators/apertium/src/test/java/org/omegat/machinetranslators/apertium/CopyrightTest.java b/machinetranslators/apertium/src/test/java/org/omegat/machinetranslators/apertium/CopyrightTest.java deleted file mode 100644 index 5e449bb71f..0000000000 --- a/machinetranslators/apertium/src/test/java/org/omegat/machinetranslators/apertium/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.machinetranslators.apertium; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/machinetranslators/belazar/src/test/java/org/omegat/machinetranslators/belazar/CopyrightTest.java b/machinetranslators/belazar/src/test/java/org/omegat/machinetranslators/belazar/CopyrightTest.java deleted file mode 100644 index 956024406b..0000000000 --- a/machinetranslators/belazar/src/test/java/org/omegat/machinetranslators/belazar/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.machinetranslators.belazar; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/machinetranslators/deepl/src/main/java/org/omegat/machinetranslators/deepl/DeepLTranslate.java b/machinetranslators/deepl/src/main/java/org/omegat/machinetranslators/deepl/DeepLTranslate.java index d83be2a72c..78e54262e1 100644 --- a/machinetranslators/deepl/src/main/java/org/omegat/machinetranslators/deepl/DeepLTranslate.java +++ b/machinetranslators/deepl/src/main/java/org/omegat/machinetranslators/deepl/DeepLTranslate.java @@ -7,7 +7,7 @@ * 2011 Briac Pilpre, Alex Buloichik * 2013 Didier Briel * 2016 Aaron Madlon-Kay - * 2021,2023 Hiroshi Miura + * 2021-2023 Hiroshi Miura * Home page: https://www.omegat.org/ * Support center: https://omegat.org/support * diff --git a/machinetranslators/deepl/src/test/java/org/omegat/machinetranslators/deepl/CopyrightTest.java b/machinetranslators/deepl/src/test/java/org/omegat/machinetranslators/deepl/CopyrightTest.java deleted file mode 100644 index 0e9f83cf7d..0000000000 --- a/machinetranslators/deepl/src/test/java/org/omegat/machinetranslators/deepl/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.machinetranslators.deepl; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/machinetranslators/google/src/main/java/org/omegat/machinetranslators/google/Google2Translate.java b/machinetranslators/google/src/main/java/org/omegat/machinetranslators/google/Google2Translate.java index 6244c9b3ed..4c2dd95d0c 100644 --- a/machinetranslators/google/src/main/java/org/omegat/machinetranslators/google/Google2Translate.java +++ b/machinetranslators/google/src/main/java/org/omegat/machinetranslators/google/Google2Translate.java @@ -7,7 +7,7 @@ * 2011 Briac Pilpre, Alex Buloichik * 2013 Didier Briel * 2016 Aaron Madlon-Kay - * 2021,2023 Hiroshi Miura + * 2021-2023 Hiroshi Miura * Home page: https://www.omegat.org/ * Support center: https://omegat.org/support * diff --git a/machinetranslators/google/src/test/java/org/omegat/machinetranslators/google/CopyrightTest.java b/machinetranslators/google/src/test/java/org/omegat/machinetranslators/google/CopyrightTest.java deleted file mode 100644 index ca54a3129a..0000000000 --- a/machinetranslators/google/src/test/java/org/omegat/machinetranslators/google/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.machinetranslators.google; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/machinetranslators/ibmwatson/src/main/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslate.java b/machinetranslators/ibmwatson/src/main/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslate.java index d748a7b4a8..1978446470 100644 --- a/machinetranslators/ibmwatson/src/main/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslate.java +++ b/machinetranslators/ibmwatson/src/main/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslate.java @@ -1,5 +1,4 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. @@ -8,7 +7,7 @@ 2011 Briac Pilpre, Alex Buloichik 2013 Didier Briel 2016 Aaron Madlon-Kay - 2022,2023 Hiroshi Miura + 2022-2023 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/CopyrightTest.java b/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/CopyrightTest.java deleted file mode 100644 index dbcde23b6c..0000000000 --- a/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.machinetranslators.ibmwatson; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslateTest.java b/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslateTest.java index ead0600c43..40729a9189 100644 --- a/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslateTest.java +++ b/machinetranslators/ibmwatson/src/test/java/org/omegat/machinetranslators/ibmwatson/IBMWatsonTranslateTest.java @@ -1,5 +1,4 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. diff --git a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/AbstractMyMemoryTranslate.java b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/AbstractMyMemoryTranslate.java index 2dcfcff961..0b57af771b 100644 --- a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/AbstractMyMemoryTranslate.java +++ b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/AbstractMyMemoryTranslate.java @@ -1,10 +1,9 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (c) 2010 Alex Buloichik, Ibai Lakunza Velasco, Didier Briel + Copyright (C) 2010 Alex Buloichik, Ibai Lakunza Velasco, Didier Briel 2013 Martin Wunderlich 2014 Manfred Martin 2015 Didier Briel diff --git a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryHumanTranslate.java b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryHumanTranslate.java index 04ff4cbed5..61e582907f 100644 --- a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryHumanTranslate.java +++ b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryHumanTranslate.java @@ -1,5 +1,4 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. diff --git a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryMachineTranslate.java b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryMachineTranslate.java index f99f43ea67..89f1cd4ada 100644 --- a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryMachineTranslate.java +++ b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryMachineTranslate.java @@ -7,7 +7,7 @@ 2013 Martin Wunderlich, Didier Briel 2015 Didier Briel 2017 Briac Pilpre - 2021,2023 Hiroshi Miura + 2021-2023 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslate.java b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslate.java index a109fc4d4b..2fd6526a22 100644 --- a/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslate.java +++ b/machinetranslators/mymemory/src/main/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslate.java @@ -1,10 +1,9 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (c) 2023 Hiroshi Miura + Copyright (C) 2023 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/machinetranslators/mymemory/src/test/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslationTest.java b/machinetranslators/mymemory/src/test/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslationTest.java index 864348946a..fb488c0945 100644 --- a/machinetranslators/mymemory/src/test/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslationTest.java +++ b/machinetranslators/mymemory/src/test/java/org/omegat/machinetranslators/mymemory/MyMemoryTranslationTest.java @@ -1,5 +1,4 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. diff --git a/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/CopyrightTest.java b/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/CopyrightTest.java deleted file mode 100644 index 294860d765..0000000000 --- a/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.machinetranslators.yandex; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/YandexCloudTranslateTest.java b/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/YandexCloudTranslateTest.java index e3fc09e2d5..3ce76d1aaf 100644 --- a/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/YandexCloudTranslateTest.java +++ b/machinetranslators/yandex/src/test/java/org/omegat/machinetranslators/yandex/YandexCloudTranslateTest.java @@ -1,5 +1,4 @@ /******************************************************************************* - OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. diff --git a/spellchecker/hunspell/src/main/resources/org/omegat/spellchecker/hunspell/Bundle.properties b/spellchecker/hunspell/src/main/resources/org/omegat/spellchecker/hunspell/Bundle.properties index 8a564c3d14..b15a6abf2c 100644 --- a/spellchecker/hunspell/src/main/resources/org/omegat/spellchecker/hunspell/Bundle.properties +++ b/spellchecker/hunspell/src/main/resources/org/omegat/spellchecker/hunspell/Bundle.properties @@ -23,4 +23,4 @@ # along with this program. If not, see . # SPELLCHECKER_HUNSPELL_INITIALIZED=Initialized Hunspell spellchecker for language '{0}' dictionary {1} -SPELLCHECKER_HUNSPELL_EXCEPTION=Error loading hunspell: {0} \ No newline at end of file +SPELLCHECKER_HUNSPELL_EXCEPTION=Error loading hunspell: {0} diff --git a/spellchecker/hunspell/src/test/java/org/omegat/spellchecker/BundleTest.java b/spellchecker/hunspell/src/test/java/org/omegat/spellchecker/BundleTest.java deleted file mode 100644 index 046b4ae71f..0000000000 --- a/spellchecker/hunspell/src/test/java/org/omegat/spellchecker/BundleTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * OmegaT - Computer Assisted Translation (CAT) tool - * with fuzzy matching, translation memory, keyword search, - * glossaries, and translation leveraging into updated projects. - * - * Copyright (C) 2023 Hiroshi Miura - * Home page: https://www.omegat.org/ - * Support center: https://omegat.org/support - * - * This file is part of OmegaT. - * - * OmegaT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * OmegaT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -package org.omegat.spellchecker; - -import java.util.ResourceBundle; - -import org.junit.Test; - -import org.omegat.util.CommonVerifications; - -public class BundleTest extends CommonVerifications { - private static final String BUNDLE_BASENAME = "org.omegat.spellchecker.hunspell.Bundle"; - - @Test - public void testBundleEncodings() throws Exception { - assertBundle(BUNDLE_BASENAME); - } - - @Test - public void testBundleLoading() { - assertBundleLoading(BUNDLE_BASENAME); - } - - @Test - public void testUndefinedStrings() throws Exception { - assertBundleHasAllKeys(new String[]{"src"}, ResourceBundle.getBundle(BUNDLE_BASENAME)); - } -} diff --git a/spellchecker/hunspell/src/test/java/org/omegat/spellchecker/CopyrightTest.java b/spellchecker/hunspell/src/test/java/org/omegat/spellchecker/CopyrightTest.java deleted file mode 100644 index e89ade99ec..0000000000 --- a/spellchecker/hunspell/src/test/java/org/omegat/spellchecker/CopyrightTest.java +++ /dev/null @@ -1,104 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.spellchecker; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[]{ - "OmegaT - Computer Assisted Translation (CAT) tool", "Copyright (C)", - "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", - "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ."}; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, - data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/spellchecker/morfologik/src/test/java/org/omegat/spellchecker/CopyrightTest.java b/spellchecker/morfologik/src/test/java/org/omegat/spellchecker/CopyrightTest.java deleted file mode 100644 index 8078b84fdf..0000000000 --- a/spellchecker/morfologik/src/test/java/org/omegat/spellchecker/CopyrightTest.java +++ /dev/null @@ -1,101 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.spellchecker; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[]{"OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ."}; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -} diff --git a/src/org/omegat/core/data/PluginInformation.java b/src/org/omegat/core/data/PluginInformation.java index 7992beab3b..38b61d0248 100644 --- a/src/org/omegat/core/data/PluginInformation.java +++ b/src/org/omegat/core/data/PluginInformation.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2020 Briac Pilpre - 2021,2022 Hiroshi Miura + 2021-2022 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/core/data/ProjectFactory.java b/src/org/omegat/core/data/ProjectFactory.java index 3704d084c2..192dc94a5f 100644 --- a/src/org/omegat/core/data/ProjectFactory.java +++ b/src/org/omegat/core/data/ProjectFactory.java @@ -4,8 +4,8 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, and Henry Pijffers - 2008 Alex Buloichik - Portions copyright 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com + 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com + 2008 Alex Buloichik Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/core/machinetranslators/BaseCachedTranslate.java b/src/org/omegat/core/machinetranslators/BaseCachedTranslate.java index 9a85c4809e..905b4f11c7 100644 --- a/src/org/omegat/core/machinetranslators/BaseCachedTranslate.java +++ b/src/org/omegat/core/machinetranslators/BaseCachedTranslate.java @@ -5,7 +5,7 @@ Copyright (C) 2010-2015 Alex Buloichik 2013 Didier Briel - 2022,2023 Hiroshi Miura + 2022-2023 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/core/machinetranslators/BaseTranslate.java b/src/org/omegat/core/machinetranslators/BaseTranslate.java index d5fbef7a9a..af5c048b1c 100644 --- a/src/org/omegat/core/machinetranslators/BaseTranslate.java +++ b/src/org/omegat/core/machinetranslators/BaseTranslate.java @@ -5,7 +5,7 @@ Copyright (C) 2010-2015 Alex Buloichik 2013 Didier Briel - 2022,2023 Hiroshi Miura + 2022-2023 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/core/spellchecker/ISpellChecker.java b/src/org/omegat/core/spellchecker/ISpellChecker.java index 34e1ffea4d..2e5e06aca6 100644 --- a/src/org/omegat/core/spellchecker/ISpellChecker.java +++ b/src/org/omegat/core/spellchecker/ISpellChecker.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2008 Didier Briel diff --git a/src/org/omegat/core/team2/impl/GITExternalGpgSigner.java b/src/org/omegat/core/team2/impl/GITExternalGpgSigner.java index 37d0779d0f..27aca5957b 100644 --- a/src/org/omegat/core/team2/impl/GITExternalGpgSigner.java +++ b/src/org/omegat/core/team2/impl/GITExternalGpgSigner.java @@ -4,7 +4,6 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2021-2024 Hiroshi Miura, Thomas Wolf and others. - This is ported from EGit (Apache-2.0) Home page: https://www.omegat.org/ Support center: https://omegat.org/support @@ -59,6 +58,10 @@ This is ported from EGit (Apache-2.0) import org.omegat.util.OStrings; import org.omegat.util.Platform; +/** + * This is ported from EGit (Apache-2.0) + * @author Hiroshi Miura + */ public class GITExternalGpgSigner extends GpgSigner { private static final ILogger LOGGER = Log.getLogger(GITExternalGpgSigner.class); diff --git a/src/org/omegat/filters2/master/FilterMaster.java b/src/org/omegat/filters2/master/FilterMaster.java index ce3b0a81c8..885b942225 100644 --- a/src/org/omegat/filters2/master/FilterMaster.java +++ b/src/org/omegat/filters2/master/FilterMaster.java @@ -13,7 +13,6 @@ 2011 Alex Buloichik, Didier Briel 2012 Guido Leenders, Thomas Cordonnier 2013 Alex Buloichik - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters2/moodlephp/MoodlePHPFilter.java b/src/org/omegat/filters2/moodlephp/MoodlePHPFilter.java index d34751f7cf..0f454f1254 100644 --- a/src/org/omegat/filters2/moodlephp/MoodlePHPFilter.java +++ b/src/org/omegat/filters2/moodlephp/MoodlePHPFilter.java @@ -21,7 +21,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - **************************************************************************/ +**************************************************************************/ package org.omegat.filters2.moodlephp; diff --git a/src/org/omegat/filters2/text/bundles/ResourceBundleOptionsDialog.java b/src/org/omegat/filters2/text/bundles/ResourceBundleOptionsDialog.java index 4f11394895..2f4a81497d 100644 --- a/src/org/omegat/filters2/text/bundles/ResourceBundleOptionsDialog.java +++ b/src/org/omegat/filters2/text/bundles/ResourceBundleOptionsDialog.java @@ -1,9 +1,9 @@ /************************************************************************** -OmegaT - Computer Assisted Translation (CAT) tool + OmegaT - Computer Assisted Translation (CAT) tool with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2013, 2015 Enrique Estevez + Copyright (C) 2013-2015 Enrique Estevez Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/android/AndroidDialect.java b/src/org/omegat/filters3/xml/android/AndroidDialect.java index 6b6788c50e..85ae3c4fa8 100644 --- a/src/org/omegat/filters3/xml/android/AndroidDialect.java +++ b/src/org/omegat/filters3/xml/android/AndroidDialect.java @@ -4,7 +4,6 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2009 Alex Buloichik - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/android/AndroidFilter.java b/src/org/omegat/filters3/xml/android/AndroidFilter.java index 05e04e56a4..5f0d69003f 100644 --- a/src/org/omegat/filters3/xml/android/AndroidFilter.java +++ b/src/org/omegat/filters3/xml/android/AndroidFilter.java @@ -4,7 +4,6 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2009 Alex Buloichik - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/camtasiawindows/CamtasiaWindowsDialect.java b/src/org/omegat/filters3/xml/camtasiawindows/CamtasiaWindowsDialect.java index 8acdede6ab..84a443934f 100644 --- a/src/org/omegat/filters3/xml/camtasiawindows/CamtasiaWindowsDialect.java +++ b/src/org/omegat/filters3/xml/camtasiawindows/CamtasiaWindowsDialect.java @@ -7,7 +7,6 @@ 2009 Didier Briel 2011 Guido Leenders, Didier Briel 2012 Guido Leenders - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/flash/FlashDialect.java b/src/org/omegat/filters3/xml/flash/FlashDialect.java index c0903da980..069e52348b 100644 --- a/src/org/omegat/filters3/xml/flash/FlashDialect.java +++ b/src/org/omegat/filters3/xml/flash/FlashDialect.java @@ -5,7 +5,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2011 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/helpandmanual/HelpAndManualDialect.java b/src/org/omegat/filters3/xml/helpandmanual/HelpAndManualDialect.java index 74255a9298..fc6e59b338 100644 --- a/src/org/omegat/filters3/xml/helpandmanual/HelpAndManualDialect.java +++ b/src/org/omegat/filters3/xml/helpandmanual/HelpAndManualDialect.java @@ -6,7 +6,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2009 Didier Briel, Guido Leenders 2012 Guido Leenders - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/infix/InfixDialect.java b/src/org/omegat/filters3/xml/infix/InfixDialect.java index 31022c8dfe..7107d53ddc 100644 --- a/src/org/omegat/filters3/xml/infix/InfixDialect.java +++ b/src/org/omegat/filters3/xml/infix/InfixDialect.java @@ -4,8 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk - (C) 2011 Didier Briel - + 2011 Didier Briel Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/l10nmgr/L10nmgrDialect.java b/src/org/omegat/filters3/xml/l10nmgr/L10nmgrDialect.java index c127be81fb..155ac7c5a8 100644 --- a/src/org/omegat/filters3/xml/l10nmgr/L10nmgrDialect.java +++ b/src/org/omegat/filters3/xml/l10nmgr/L10nmgrDialect.java @@ -4,8 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk - (C) 2010 Didier Briel - + 2010 Didier Briel Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/properties/PropertiesDialect.java b/src/org/omegat/filters3/xml/properties/PropertiesDialect.java index 826600676f..4aacc9dd89 100644 --- a/src/org/omegat/filters3/xml/properties/PropertiesDialect.java +++ b/src/org/omegat/filters3/xml/properties/PropertiesDialect.java @@ -7,7 +7,6 @@ 2009 Didier Briel, Guido Leenders 2012 Guido Leenders 2015 Tony Graham - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/relaxng/RelaxNGDialect.java b/src/org/omegat/filters3/xml/relaxng/RelaxNGDialect.java index 3f0d099a7a..9d6c008e6e 100644 --- a/src/org/omegat/filters3/xml/relaxng/RelaxNGDialect.java +++ b/src/org/omegat/filters3/xml/relaxng/RelaxNGDialect.java @@ -7,7 +7,6 @@ 2009 Didier Briel, Guido Leenders 2012 Guido Leenders 2015 Tony Graham - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/resx/ResXDialect.java b/src/org/omegat/filters3/xml/resx/ResXDialect.java index 6087c93f44..96b6665727 100644 --- a/src/org/omegat/filters3/xml/resx/ResXDialect.java +++ b/src/org/omegat/filters3/xml/resx/ResXDialect.java @@ -5,7 +5,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2009-2011 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/schematron/SchematronDialect.java b/src/org/omegat/filters3/xml/schematron/SchematronDialect.java index 8d274b15bf..6366d861d2 100644 --- a/src/org/omegat/filters3/xml/schematron/SchematronDialect.java +++ b/src/org/omegat/filters3/xml/schematron/SchematronDialect.java @@ -7,7 +7,6 @@ 2009 Didier Briel, Guido Leenders 2012 Guido Leenders 2015 Tony Graham - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/scribus/ScribusDialect.java b/src/org/omegat/filters3/xml/scribus/ScribusDialect.java index 1269e62ac9..5faeed7790 100644 --- a/src/org/omegat/filters3/xml/scribus/ScribusDialect.java +++ b/src/org/omegat/filters3/xml/scribus/ScribusDialect.java @@ -4,8 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk - (C) 2018 Didier Briel - + 2018 Didier Briel Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/svg/SvgDialect.java b/src/org/omegat/filters3/xml/svg/SvgDialect.java index 82ade78dbd..2a4307a748 100644 --- a/src/org/omegat/filters3/xml/svg/SvgDialect.java +++ b/src/org/omegat/filters3/xml/svg/SvgDialect.java @@ -6,7 +6,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2010 Didier Briel 2017 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/svg/SvgFilter.java b/src/org/omegat/filters3/xml/svg/SvgFilter.java index 9f37993914..9d3285897b 100644 --- a/src/org/omegat/filters3/xml/svg/SvgFilter.java +++ b/src/org/omegat/filters3/xml/svg/SvgFilter.java @@ -5,7 +5,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2010 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/txml/TXMLDialect.java b/src/org/omegat/filters3/xml/txml/TXMLDialect.java index 8140ffd40d..b5b6ab327f 100644 --- a/src/org/omegat/filters3/xml/txml/TXMLDialect.java +++ b/src/org/omegat/filters3/xml/txml/TXMLDialect.java @@ -5,7 +5,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2011-2012 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/typo3/Typo3Dialect.java b/src/org/omegat/filters3/xml/typo3/Typo3Dialect.java index e51d46f1e0..f52d5cced3 100644 --- a/src/org/omegat/filters3/xml/typo3/Typo3Dialect.java +++ b/src/org/omegat/filters3/xml/typo3/Typo3Dialect.java @@ -4,8 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk - (C) 2009 Didier Briel - + 2009 Didier Briel Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/wix/WiXDialect.java b/src/org/omegat/filters3/xml/wix/WiXDialect.java index 464a4fded5..8e880b3ff6 100644 --- a/src/org/omegat/filters3/xml/wix/WiXDialect.java +++ b/src/org/omegat/filters3/xml/wix/WiXDialect.java @@ -5,7 +5,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2010 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/wix/WiXFilter.java b/src/org/omegat/filters3/xml/wix/WiXFilter.java index 883fc29e52..bc9d17f5d9 100644 --- a/src/org/omegat/filters3/xml/wix/WiXFilter.java +++ b/src/org/omegat/filters3/xml/wix/WiXFilter.java @@ -5,7 +5,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2010 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/wordpress/WordpressDialect.java b/src/org/omegat/filters3/xml/wordpress/WordpressDialect.java index b359ce31d5..9892e2d41f 100644 --- a/src/org/omegat/filters3/xml/wordpress/WordpressDialect.java +++ b/src/org/omegat/filters3/xml/wordpress/WordpressDialect.java @@ -6,7 +6,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2011 Didier Briel 2016 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters3/xml/xmlspreadsheet/XMLSpreadsheetDialect.java b/src/org/omegat/filters3/xml/xmlspreadsheet/XMLSpreadsheetDialect.java index 6f91be5e29..d7a43bf1ee 100644 --- a/src/org/omegat/filters3/xml/xmlspreadsheet/XMLSpreadsheetDialect.java +++ b/src/org/omegat/filters3/xml/xmlspreadsheet/XMLSpreadsheetDialect.java @@ -6,7 +6,6 @@ Copyright (C) 2000-2006 Keith Godfrey and Maxym Mykhalchuk 2011-2012 Didier Briel 2015 Didier Briel - Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/filters4/AbstractZipFilter.java b/src/org/omegat/filters4/AbstractZipFilter.java index 8bd722b276..0985c94728 100755 --- a/src/org/omegat/filters4/AbstractZipFilter.java +++ b/src/org/omegat/filters4/AbstractZipFilter.java @@ -5,7 +5,7 @@ Copyright (C) 2017 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/AbstractXmlFilter.java b/src/org/omegat/filters4/xml/AbstractXmlFilter.java index bd27e25b77..6757b491aa 100755 --- a/src/org/omegat/filters4/xml/AbstractXmlFilter.java +++ b/src/org/omegat/filters4/xml/AbstractXmlFilter.java @@ -6,7 +6,7 @@ Copyright (C) 2017 Thomas Cordonnier 2024 Hiroshi Miura Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/openxml/MsOfficeFileFilter.java b/src/org/omegat/filters4/xml/openxml/MsOfficeFileFilter.java index 6e695fb216..0664ada934 100755 --- a/src/org/omegat/filters4/xml/openxml/MsOfficeFileFilter.java +++ b/src/org/omegat/filters4/xml/openxml/MsOfficeFileFilter.java @@ -8,7 +8,7 @@ 2015-2016 Didier Briel 2019 Didier Briel Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/openxml/OpenXmlFilter.java b/src/org/omegat/filters4/xml/openxml/OpenXmlFilter.java index e1575d9d48..3843e92545 100755 --- a/src/org/omegat/filters4/xml/openxml/OpenXmlFilter.java +++ b/src/org/omegat/filters4/xml/openxml/OpenXmlFilter.java @@ -5,7 +5,7 @@ Copyright (C) 2018 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/xliff/AbstractXliffFilter.java b/src/org/omegat/filters4/xml/xliff/AbstractXliffFilter.java index 48583ed278..bfc10724c2 100755 --- a/src/org/omegat/filters4/xml/xliff/AbstractXliffFilter.java +++ b/src/org/omegat/filters4/xml/xliff/AbstractXliffFilter.java @@ -5,7 +5,7 @@ Copyright (C) 2017 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/xliff/SdlProject.java b/src/org/omegat/filters4/xml/xliff/SdlProject.java index 8f4062e82c..504c1589b0 100755 --- a/src/org/omegat/filters4/xml/xliff/SdlProject.java +++ b/src/org/omegat/filters4/xml/xliff/SdlProject.java @@ -5,7 +5,7 @@ Copyright (C) 2017-2020 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/xliff/SdlXliff.java b/src/org/omegat/filters4/xml/xliff/SdlXliff.java index db588713e4..9fc43c96d3 100755 --- a/src/org/omegat/filters4/xml/xliff/SdlXliff.java +++ b/src/org/omegat/filters4/xml/xliff/SdlXliff.java @@ -5,7 +5,7 @@ Copyright (C) 2017-2020 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/xliff/Xliff1Filter.java b/src/org/omegat/filters4/xml/xliff/Xliff1Filter.java index 1adb42a40b..d2f57f9c0f 100755 --- a/src/org/omegat/filters4/xml/xliff/Xliff1Filter.java +++ b/src/org/omegat/filters4/xml/xliff/Xliff1Filter.java @@ -5,7 +5,7 @@ Copyright (C) 2017-2022 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/filters4/xml/xliff/Xliff2Filter.java b/src/org/omegat/filters4/xml/xliff/Xliff2Filter.java index d73eb8b413..1e886a73bc 100755 --- a/src/org/omegat/filters4/xml/xliff/Xliff2Filter.java +++ b/src/org/omegat/filters4/xml/xliff/Xliff2Filter.java @@ -5,7 +5,7 @@ Copyright (C) 2017-2019 Thomas Cordonnier Home page: https://www.omegat.org/ - Support center: http://groups.yahoo.com/group/OmegaT/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/gui/dialogs/DictionaryInstallerDialog.java b/src/org/omegat/gui/dialogs/DictionaryInstallerDialog.java index d7984095c2..5ef670fd78 100644 --- a/src/org/omegat/gui/dialogs/DictionaryInstallerDialog.java +++ b/src/org/omegat/gui/dialogs/DictionaryInstallerDialog.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2007 - Zoltan Bartko - bartkozoltan@bartkozoltan.com + Copyright (C) 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com 2008 Didier Briel 2015 Aaron Madlon-Kay Home page: https://www.omegat.org/ diff --git a/src/org/omegat/gui/dialogs/GoToSegmentDialog.java b/src/org/omegat/gui/dialogs/GoToSegmentDialog.java index 7c969892f3..8b45a62826 100644 --- a/src/org/omegat/gui/dialogs/GoToSegmentDialog.java +++ b/src/org/omegat/gui/dialogs/GoToSegmentDialog.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Henry Pijffers - 2008, 2010 Alex Buloichik + 2008-2010 Alex Buloichik 2014 Aaron Madlon-Kay 2015 Yu Tang, Aaron Madlon-Kay Home page: https://www.omegat.org/ diff --git a/src/org/omegat/gui/dialogs/NewTeamProjectController.java b/src/org/omegat/gui/dialogs/NewTeamProjectController.java index 7e836ccacd..e550cace79 100644 --- a/src/org/omegat/gui/dialogs/NewTeamProjectController.java +++ b/src/org/omegat/gui/dialogs/NewTeamProjectController.java @@ -23,7 +23,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . - *************************************************************************/ +**************************************************************************/ package org.omegat.gui.dialogs; diff --git a/src/org/omegat/gui/editor/EditorController.java b/src/org/omegat/gui/editor/EditorController.java index 51da05812f..8276a109cb 100644 --- a/src/org/omegat/gui/editor/EditorController.java +++ b/src/org/omegat/gui/editor/EditorController.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2009 Didier Briel diff --git a/src/org/omegat/gui/editor/SegmentHistory.java b/src/org/omegat/gui/editor/SegmentHistory.java index 11053c36f1..596a109ef3 100644 --- a/src/org/omegat/gui/editor/SegmentHistory.java +++ b/src/org/omegat/gui/editor/SegmentHistory.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2007 - Zoltan Bartko - bartkozoltan@bartkozoltan.com + Copyright (C) 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/gui/editor/ViewLabel.java b/src/org/omegat/gui/editor/ViewLabel.java index 10a901b2d5..3576c65848 100644 --- a/src/org/omegat/gui/editor/ViewLabel.java +++ b/src/org/omegat/gui/editor/ViewLabel.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2007, 2013 - Zoltan Bartko - bartkozoltan@bartkozoltan.com + Copyright (C) 2007-2013 Zoltan Bartko - bartkozoltan@bartkozoltan.com 2009 Alex Buloichik Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/gui/editor/ViewParagraph.java b/src/org/omegat/gui/editor/ViewParagraph.java index b0828ce4bb..215495af72 100644 --- a/src/org/omegat/gui/editor/ViewParagraph.java +++ b/src/org/omegat/gui/editor/ViewParagraph.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2013 - Zoltan Bartko - bartkozoltan@bartkozoltan.com + Copyright (C) 2013 Zoltan Bartko - bartkozoltan@bartkozoltan.com 2013 Alex Buloichik Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/gui/main/BaseMainWindowMenu.java b/src/org/omegat/gui/main/BaseMainWindowMenu.java index 4616553e23..2f71dc5eb6 100644 --- a/src/org/omegat/gui/main/BaseMainWindowMenu.java +++ b/src/org/omegat/gui/main/BaseMainWindowMenu.java @@ -4,7 +4,7 @@ * glossaries, and translation leveraging into updated projects. * * Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - * Benjamin Siband, and Kim Bruning + * 2000-2006 Benjamin Siband, and Kim Bruning * 2007 Zoltan Bartko * 2008 Andrzej Sawula, Alex Buloichik * 2009 Didier Briel, Alex Buloichik diff --git a/src/org/omegat/gui/main/BaseMainWindowMenuHandler.java b/src/org/omegat/gui/main/BaseMainWindowMenuHandler.java index 305d2f1410..c7feef402c 100644 --- a/src/org/omegat/gui/main/BaseMainWindowMenuHandler.java +++ b/src/org/omegat/gui/main/BaseMainWindowMenuHandler.java @@ -1,22 +1,22 @@ /************************************************************************** OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. + with fuzzy matching, translation memory, keyword search, + glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning - 2007 Zoltan Bartko - 2008 Andrzej Sawula, Alex Buloichik - 2009 Didier Briel, Alex Buloichik - 2010 Wildrich Fourie, Didier Briel - 2012 Wildrich Fourie, Guido Leenders, Didier Briel - 2013 Zoltan Bartko, Didier Briel, Yu Tang - 2014 Aaron Madlon-Kay - 2015 Yu Tang, Aaron Madlon-Kay, Didier Briel - 2017 Didier Briel - 2019 Thomas Cordonnier - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support + 2000-2006 Benjamin Siband, and Kim Bruning + 2007 Zoltan Bartko + 2008 Andrzej Sawula, Alex Buloichik + 2009 Didier Briel, Alex Buloichik + 2010 Wildrich Fourie, Didier Briel + 2012 Wildrich Fourie, Guido Leenders, Didier Briel + 2013 Zoltan Bartko, Didier Briel, Yu Tang + 2014 Aaron Madlon-Kay + 2015 Yu Tang, Aaron Madlon-Kay, Didier Briel + 2017 Didier Briel + 2019 Thomas Cordonnier + Home page: https://www.omegat.org/ + Support center: https://omegat.org/support This file is part of OmegaT. diff --git a/src/org/omegat/gui/main/MainWindow.java b/src/org/omegat/gui/main/MainWindow.java index 0fea5f0908..fab5230537 100644 --- a/src/org/omegat/gui/main/MainWindow.java +++ b/src/org/omegat/gui/main/MainWindow.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik, Didier Briel 2013 Yu Tang, Aaron Madlon-Kay diff --git a/src/org/omegat/gui/main/MainWindowMenu.java b/src/org/omegat/gui/main/MainWindowMenu.java index 4a31bf4e1c..e09c4b5795 100644 --- a/src/org/omegat/gui/main/MainWindowMenu.java +++ b/src/org/omegat/gui/main/MainWindowMenu.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2009 Didier Briel, Alex Buloichik diff --git a/src/org/omegat/gui/main/MainWindowMenuHandler.java b/src/org/omegat/gui/main/MainWindowMenuHandler.java index c61e3c0722..23dfc79afd 100644 --- a/src/org/omegat/gui/main/MainWindowMenuHandler.java +++ b/src/org/omegat/gui/main/MainWindowMenuHandler.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2009 Didier Briel, Alex Buloichik diff --git a/src/org/omegat/gui/main/MainWindowStatusBar.java b/src/org/omegat/gui/main/MainWindowStatusBar.java index f825c87408..57fed5bba1 100644 --- a/src/org/omegat/gui/main/MainWindowStatusBar.java +++ b/src/org/omegat/gui/main/MainWindowStatusBar.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2014 Piotr Kulik diff --git a/src/org/omegat/gui/main/MainWindowUI.java b/src/org/omegat/gui/main/MainWindowUI.java index e764a59d20..78e18175fa 100644 --- a/src/org/omegat/gui/main/MainWindowUI.java +++ b/src/org/omegat/gui/main/MainWindowUI.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2014 Piotr Kulik diff --git a/src/org/omegat/gui/theme/DefaultClassicTheme.java b/src/org/omegat/gui/theme/DefaultClassicTheme.java index 5c8015edf4..67f93ddd52 100644 --- a/src/org/omegat/gui/theme/DefaultClassicTheme.java +++ b/src/org/omegat/gui/theme/DefaultClassicTheme.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2009-2010 Alex Buloichik diff --git a/src/org/omegat/gui/theme/DefaultFlatTheme.java b/src/org/omegat/gui/theme/DefaultFlatTheme.java index cc7baca3ef..874726047c 100644 --- a/src/org/omegat/gui/theme/DefaultFlatTheme.java +++ b/src/org/omegat/gui/theme/DefaultFlatTheme.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2009-2010 Alex Buloichik diff --git a/src/org/omegat/help/Help.java b/src/org/omegat/help/Help.java index 421c25ded4..626116a297 100644 --- a/src/org/omegat/help/Help.java +++ b/src/org/omegat/help/Help.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, - Sandra Jean Chua, and Henry Pijffers + 2000-2006 Sandra Jean Chua, and Henry Pijffers 2007 Didier Briel 2009 Alex Buloichik 2015 Aaron Madlon-Kay diff --git a/src/org/omegat/tokenizer/BaseTokenizer.java b/src/org/omegat/tokenizer/BaseTokenizer.java index 31d5562b21..0289cbcf88 100644 --- a/src/org/omegat/tokenizer/BaseTokenizer.java +++ b/src/org/omegat/tokenizer/BaseTokenizer.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2008 Alex Buloichik (alex73mail@gmail.com) - 2013, 2015 Aaron Madlon-Kay + 2013,2015 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/tokenizer/ITokenizer.java b/src/org/omegat/tokenizer/ITokenizer.java index 39dbe3d483..86f3b30db1 100644 --- a/src/org/omegat/tokenizer/ITokenizer.java +++ b/src/org/omegat/tokenizer/ITokenizer.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2008 Alex Buloichik - 2013, 2015 Aaron Madlon-Kay + 2013,2015 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/tokenizer/LuceneJapaneseTokenizer.java b/src/org/omegat/tokenizer/LuceneJapaneseTokenizer.java index e4518ac9ba..2456f420d5 100644 --- a/src/org/omegat/tokenizer/LuceneJapaneseTokenizer.java +++ b/src/org/omegat/tokenizer/LuceneJapaneseTokenizer.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2013, 2015 Aaron Madlon-Kay + Copyright (C) 2013,2015 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/tokenizer/LuceneSmartChineseTokenizer.java b/src/org/omegat/tokenizer/LuceneSmartChineseTokenizer.java index 9c82bb206b..746a61cb62 100644 --- a/src/org/omegat/tokenizer/LuceneSmartChineseTokenizer.java +++ b/src/org/omegat/tokenizer/LuceneSmartChineseTokenizer.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2009 Alex Buloichik (alex73mail@gmail.com) - 2013, 2015 Aaron Madlon-Kay + 2013,2015 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/Platform.java b/src/org/omegat/util/Platform.java index 81d6d4fc29..e1b5b4a728 100644 --- a/src/org/omegat/util/Platform.java +++ b/src/org/omegat/util/Platform.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2007 - Zoltan Bartko - bartkozoltan@bartkozoltan.com + Copyright (C) 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com 2011 Alex Buloichik 2019 FormDev Software GmbH 2023 Hiroshi Miura diff --git a/src/org/omegat/util/Preferences.java b/src/org/omegat/util/Preferences.java index ee1edc4d76..8e4408776e 100644 --- a/src/org/omegat/util/Preferences.java +++ b/src/org/omegat/util/Preferences.java @@ -9,11 +9,10 @@ 2010 Wildrich Fourie, Antonio Vilei, Didier Briel 2011 John Moran, Didier Briel 2012 Martin Fleurke, Wildrich Fourie, Didier Briel, Thomas Cordonnier, - Aaron Madlon-Kay - 2013 Aaron Madlon-Kay, Zoltan Bartko - 2014 Piotr Kulik, Aaron Madlon-Kay - 2015 Aaron Madlon-Kay, Yu Tang, Didier Briel, Hiroshi Miura - 2016 Aaron Madlon-Kay + 2013 Zoltan Bartko + 2014 Piotr Kulik + 2015 Yu Tang, Didier Briel, Hiroshi Miura + 2012-2016 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/PreferencesImpl.java b/src/org/omegat/util/PreferencesImpl.java index 095b05d01a..5b7926a4f2 100644 --- a/src/org/omegat/util/PreferencesImpl.java +++ b/src/org/omegat/util/PreferencesImpl.java @@ -9,11 +9,10 @@ 2010 Wildrich Fourie, Antonio Vilei, Didier Briel 2011 John Moran, Didier Briel 2012 Martin Fleurke, Wildrich Fourie, Didier Briel, Thomas Cordonnier, - Aaron Madlon-Kay - 2013 Aaron Madlon-Kay, Zoltan Bartko - 2014 Piotr Kulik, Aaron Madlon-Kay - 2015 Aaron Madlon-Kay, Yu Tang, Didier Briel, Hiroshi Miura - 2016 Aaron Madlon-Kay + 2013 Zoltan Bartko + 2014 Piotr Kulik + 2015 Yu Tang, Didier Briel, Hiroshi Miura + 2012-2016 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/PreferencesXML.java b/src/org/omegat/util/PreferencesXML.java index 0760f1458c..7e646d2b23 100644 --- a/src/org/omegat/util/PreferencesXML.java +++ b/src/org/omegat/util/PreferencesXML.java @@ -9,11 +9,10 @@ 2010 Wildrich Fourie, Antonio Vilei, Didier Briel 2011 John Moran, Didier Briel 2012 Martin Fleurke, Wildrich Fourie, Didier Briel, Thomas Cordonnier, - Aaron Madlon-Kay - 2013 Aaron Madlon-Kay, Zoltan Bartko - 2014 Piotr Kulik, Aaron Madlon-Kay - 2015 Aaron Madlon-Kay, Yu Tang, Didier Briel, Hiroshi Miura - 2016 Aaron Madlon-Kay + 2013 Zoltan Bartko + 2014 Piotr Kulik + 2015 Yu Tang, Didier Briel, Hiroshi Miura + 2012-2016 Aaron Madlon-Kay 2022-2023 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/TMXWriter.java b/src/org/omegat/util/TMXWriter.java index 0a4570ad4e..35c29f517d 100644 --- a/src/org/omegat/util/TMXWriter.java +++ b/src/org/omegat/util/TMXWriter.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, and Henry Pijffers - Portions copyright 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com + 2007 Zoltan Bartko - bartkozoltan@bartkozoltan.com 2009 Alex Buloichik Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/gui/DelegatingComboBoxRenderer.java b/src/org/omegat/util/gui/DelegatingComboBoxRenderer.java index 86180b638f..b78e3aa1fb 100644 --- a/src/org/omegat/util/gui/DelegatingComboBoxRenderer.java +++ b/src/org/omegat/util/gui/DelegatingComboBoxRenderer.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2014, 2016 Aaron Madlon-Kay + Copyright (C) 2014,2016 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/gui/OSXIntegration.java b/src/org/omegat/util/gui/OSXIntegration.java index 74c41d3a1e..fa403e368f 100644 --- a/src/org/omegat/util/gui/OSXIntegration.java +++ b/src/org/omegat/util/gui/OSXIntegration.java @@ -3,7 +3,7 @@ with fuzzy matching, translation memory, keyword search, glossaries, and translation leveraging into updated projects. - Copyright (C) 2014, 2015 Aaron Madlon-Kay + Copyright (C) 2014,2015 Aaron Madlon-Kay Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/src/org/omegat/util/gui/UIDesignManager.java b/src/org/omegat/util/gui/UIDesignManager.java index 14610e641e..493d39909d 100644 --- a/src/org/omegat/util/gui/UIDesignManager.java +++ b/src/org/omegat/util/gui/UIDesignManager.java @@ -4,7 +4,7 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, Henry Pijffers, - Benjamin Siband, and Kim Bruning + 2000-2006 Benjamin Siband, and Kim Bruning 2007 Zoltan Bartko 2008 Andrzej Sawula, Alex Buloichik 2009-2010 Alex Buloichik diff --git a/src/org/omegat/util/logging/OmegaTLogFormatter.java b/src/org/omegat/util/logging/OmegaTLogFormatter.java index 90931479f7..30daf50730 100644 --- a/src/org/omegat/util/logging/OmegaTLogFormatter.java +++ b/src/org/omegat/util/logging/OmegaTLogFormatter.java @@ -4,7 +4,8 @@ glossaries, and translation leveraging into updated projects. Copyright (C) 2000-2006 Keith Godfrey, Maxym Mykhalchuk, and Henry Pijffers - Alex Buloichik + 2000-2006 Alex Buloichik + 2024 Hiroshi Miura Home page: https://www.omegat.org/ Support center: https://omegat.org/support diff --git a/test/src/org/omegat/core/dictionaries/OnlineDictionaryTest.java b/test/src/org/omegat/core/dictionaries/OnlineDictionaryTest.java index d42108ba4e..529c9bf80d 100644 --- a/test/src/org/omegat/core/dictionaries/OnlineDictionaryTest.java +++ b/test/src/org/omegat/core/dictionaries/OnlineDictionaryTest.java @@ -1,30 +1,27 @@ -/* - * ************************************************************************* - * OmegaT - Computer Assisted Translation (CAT) tool - * with fuzzy matching, translation memory, keyword search, - * glossaries, and translation leveraging into updated projects. - * - * Copyright (C) 2022 Hiroshi Miura - * Home page: https://www.omegat.org/ - * Support center: https://omegat.org/support - * - * This file is part of OmegaT. - * - * OmegaT is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * OmegaT is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * ************************************************************************* - * - */ +/************************************************************************** + OmegaT - Computer Assisted Translation (CAT) tool + with fuzzy matching, translation memory, keyword search, + glossaries, and translation leveraging into updated projects. + + Copyright (C) 2022 Hiroshi Miura + Home page: https://www.omegat.org/ + Support center: https://omegat.org/support + + This file is part of OmegaT. + + OmegaT is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + OmegaT is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . +**************************************************************************/ package org.omegat.core.dictionaries; diff --git a/test/src/org/omegat/util/PluginInstallerTest.java b/test/src/org/omegat/util/PluginInstallerTest.java index dfaeb2b886..792dff0456 100644 --- a/test/src/org/omegat/util/PluginInstallerTest.java +++ b/test/src/org/omegat/util/PluginInstallerTest.java @@ -1,5 +1,4 @@ -/* - ************************************************************************** +/************************************************************************** * OmegaT - Computer Assisted Translation (CAT) tool * with fuzzy matching, translation memory, keyword search, * glossaries, and translation leveraging into updated projects. @@ -22,7 +21,7 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see . - **************************************************************************/ +**************************************************************************/ package org.omegat.util; diff --git a/test/src/svn/CopyrightTest.java b/test/src/svn/CopyrightTest.java index 7d81658e9a..8c66f947d1 100644 --- a/test/src/svn/CopyrightTest.java +++ b/test/src/svn/CopyrightTest.java @@ -29,18 +29,23 @@ import java.io.ByteArrayOutputStream; import java.io.File; +import java.nio.charset.StandardCharsets; +import java.nio.file.Paths; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.FileUtils; import org.junit.Test; +import org.omegat.util.CommonVerifications; + /** * Test for copyright notes exists in source files. * * @author Alex Buloichik */ -public class CopyrightTest { +public class CopyrightTest extends CommonVerifications { + protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", "OmegaT is free software: you can redistribute it and/or modify", @@ -55,17 +60,14 @@ public class CopyrightTest { @Test public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - list(new File("test"), sourceFiles); + List sourceFiles = new ArrayList<>(); + list(Paths.get("src").toFile(), sourceFiles); + list(Paths.get("test").toFile(), sourceFiles); + list(Paths.get("doc_src").toFile(), sourceFiles); ByteArrayOutputStream fdata = new ByteArrayOutputStream(); for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); + String data = fdata.toString(StandardCharsets.UTF_8); checkNote(f, data); fdata.reset(); } @@ -84,9 +86,7 @@ protected void checkNote(File f, String data) { protected void list(File dir, List files) { for (File f : dir.listFiles()) { String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { + if (fn.equals("build.xml")) { files.add(f); } else if (fn.endsWith(".properties")) { if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { diff --git a/tipoftheday/src/test/java/org/omegat/gui/tipoftheday/CopyrightTest.java b/tipoftheday/src/test/java/org/omegat/gui/tipoftheday/CopyrightTest.java deleted file mode 100644 index b0524e8d27..0000000000 --- a/tipoftheday/src/test/java/org/omegat/gui/tipoftheday/CopyrightTest.java +++ /dev/null @@ -1,102 +0,0 @@ -/************************************************************************** - OmegaT - Computer Assisted Translation (CAT) tool - with fuzzy matching, translation memory, keyword search, - glossaries, and translation leveraging into updated projects. - - Copyright (C) 2008 Alex Buloichik - Home page: https://www.omegat.org/ - Support center: https://omegat.org/support - - This file is part of OmegaT. - - OmegaT is free software: you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation, either version 3 of the License, or - (at your option) any later version. - - OmegaT is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program. If not, see . - **************************************************************************/ - -package org.omegat.gui.tipoftheday; - -import static org.junit.Assert.assertTrue; - -import java.io.ByteArrayOutputStream; -import java.io.File; -import java.util.ArrayList; -import java.util.List; - -import org.apache.commons.io.FileUtils; -import org.junit.Test; - -/** - * Test for copyright notes exists in source files. - * - * @author Alex Buloichik - */ -public class CopyrightTest { - protected static final String[] MUST_EXIST = new String[] { "OmegaT - Computer Assisted Translation (CAT) tool", - "Copyright (C)", "Home page: https://www.omegat.org/", "This file is part of OmegaT", - "OmegaT is free software: you can redistribute it and/or modify", - "it under the terms of the GNU General Public License as published by", - "the Free Software Foundation, either version 3 of the License, or", "(at your option) any later version.", - "OmegaT is distributed in the hope that it will be useful,", - "but WITHOUT ANY WARRANTY; without even the implied warranty of", - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the", - "GNU General Public License for more details.", - "You should have received a copy of the GNU General Public License", - "along with this program. If not, see ." }; - - @Test - public void testCopyright() throws Exception { - List sourceFiles = new ArrayList(); - list(new File("src"), sourceFiles); - list(new File("docs"), sourceFiles); - ByteArrayOutputStream fdata = new ByteArrayOutputStream(); - for (File f : sourceFiles) { - if (f.getPath().replace('\\', '/').startsWith("src/gen/")) { - // skip jaxb generated files - continue; - } - FileUtils.copyFile(f, fdata); - String data = fdata.toString("ISO-8859-1"); - checkNote(f, data); - fdata.reset(); - } - } - - protected void checkNote(File f, String data) { - int pos = data.indexOf("\npackage "); - if (pos > 0) { - data = data.substring(0, pos); - } - for (String con : MUST_EXIST) { - assertTrue("There is no copyright note in '" + f.getAbsolutePath() + "' : " + con, data.contains(con)); - } - } - - protected void list(File dir, List files) { - for (File f : dir.listFiles()) { - String fn = f.getName(); - if (f.getName().endsWith(".java")) { - files.add(f); - } else if (fn.equals("build.xml")) { - files.add(f); - } else if (fn.endsWith(".properties")) { - if (fn.startsWith("Version") || fn.startsWith("Bundle") || fn.startsWith("project")) { - files.add(f); - } - } else if (fn.endsWith(".html")) { - files.add(f); - } else if (f.isDirectory()) { - list(f, files); - } - } - } -}