From d2532ed3e76fd529feb49bcf5c5fcb21050eee57 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Fri, 29 May 2026 12:10:22 -0400 Subject: [PATCH 1/3] Bump copyright to 2026; Add CHANGELOG links --- CHANGELOG.md | 14 ++++++++++++++ src/ExtractXliff/Program.cs | 2 +- .../LocalizationManagerTestsBase.cs | 2 +- .../LocalizationManagerTests_NoManagersLoaded.cs | 2 +- src/L10NSharp.Tests/ProxyLocalizationManager.cs | 4 ++-- .../XLiffLocalizationManagerTests.cs | 2 +- src/L10NSharp.Tests/XLiffSchemaValidationTests.cs | 2 +- .../XliffLocalizationManagerTests.cs | 2 +- .../ILocalizedStringCacheWinforms.cs | 4 ++-- src/L10NSharp.Windows.Forms/L10NExtender.cs | 8 ++++---- .../UIComponents/NodeComparer.cs | 2 +- src/L10NSharp/CodeReader/StringExtractor.cs | 2 +- src/L10NSharp/IDocument.cs | 2 +- src/L10NSharp/ILocalizedStringCache.cs | 2 +- src/L10NSharp/INote.cs | 2 +- src/L10NSharp/ITransUnit.cs | 2 +- src/L10NSharp/ITransUnitVariant.cs | 2 +- src/L10NSharp/LocalizedStringCache.cs | 2 +- src/L10NSharp/TranslationMemory.cs | 2 +- src/L10NSharp/TranslationStatus.cs | 2 +- src/L10NSharp/XLiffUtils/XLiffDocument.cs | 6 +++--- src/L10NSharp/XLiffUtils/XLiffHeader.cs | 2 +- src/L10NSharp/XLiffUtils/XLiffNote.cs | 9 +++++---- src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs | 2 +- src/L10NSharp/XLiffUtils/XLiffTransUnit.cs | 6 +++--- 25 files changed, 51 insertions(+), 36 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bca5b125..7efde773 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -263,3 +263,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Create nuget package - Strong-name assembly + +[Unreleased]: https://github.com/sillsdev/l10nsharp/compare/v9.0.0...HEAD +[9.0.0]: https://github.com/sillsdev/l10nsharp/compare/v8.0.0.0...v9.0.0 +[8.0.0]: https://github.com/sillsdev/l10nsharp/compare/v7.0.0...v8.0.0.0 +[7.0.0]: https://github.com/sillsdev/l10nsharp/compare/v6.0.0...v7.0.0 +[6.0.0]: https://github.com/sillsdev/l10nsharp/compare/v5.0.0...v6.0.0 +[5.0.0]: https://github.com/sillsdev/l10nsharp/compare/v4.1.0...v5.0.0 +[4.1.0]: https://github.com/sillsdev/l10nsharp/compare/v4.0.3...v4.1.0 +[4.0.3]: https://github.com/sillsdev/l10nsharp/compare/v4.0.2...v4.0.3 +[4.0.2]: https://github.com/sillsdev/l10nsharp/compare/v4.0.1...v4.0.2 +[4.0.1]: https://github.com/sillsdev/l10nsharp/compare/v4.0.0...v4.0.1 +[4.0.0]: https://github.com/sillsdev/l10nsharp/compare/xliff-3.1.1...v4.0.0 +[3.1.1]: https://github.com/sillsdev/l10nsharp/compare/v3.1.0...xliff-3.1.1 +[3.1.0]: https://github.com/sillsdev/l10nsharp/compare/v3.0...v3.1.0 diff --git a/src/ExtractXliff/Program.cs b/src/ExtractXliff/Program.cs index 60ba5a14..dbb52da2 100644 --- a/src/ExtractXliff/Program.cs +++ b/src/ExtractXliff/Program.cs @@ -1,4 +1,4 @@ -// Copyright © 2020-2025 SIL Global +// Copyright © 2020-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Collections.Generic; diff --git a/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs b/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs index 13d8bd2b..d8d4ef8a 100644 --- a/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs +++ b/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs @@ -1,4 +1,4 @@ -// Copyright © 2022-2025 SIL Global +// Copyright © 2022-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Collections.Generic; diff --git a/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs b/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs index d519d0be..bc790f15 100644 --- a/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs +++ b/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using NUnit.Framework; diff --git a/src/L10NSharp.Tests/ProxyLocalizationManager.cs b/src/L10NSharp.Tests/ProxyLocalizationManager.cs index 45bdf90c..e9738dce 100644 --- a/src/L10NSharp.Tests/ProxyLocalizationManager.cs +++ b/src/L10NSharp.Tests/ProxyLocalizationManager.cs @@ -1,4 +1,4 @@ -// Copyright © 2020-2025 SIL Global +// Copyright © 2020-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.ComponentModel; @@ -27,7 +27,7 @@ public static string MyOwnGetString(string id, string english, string comment, public static class ProxyLocalizationStringExtensions { - public static string Localize(this string s, string separateId="", string comment="") + public static string Localize(this string s, string separateId = "", string comment = "") { return L10NStringExtensions.Localize(s, separateId, comment); } diff --git a/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs b/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs index c752881d..cdb83dca 100644 --- a/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs +++ b/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs @@ -1,4 +1,4 @@ -// Copyright © 2022-2025 SIL Global +// Copyright © 2022-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Collections.Generic; diff --git a/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs b/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs index 2b3f173d..4ed652b3 100644 --- a/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs +++ b/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs @@ -1,4 +1,4 @@ -// Copyright © 2017-2025 SIL Global +// Copyright © 2017-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; diff --git a/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs b/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs index 0ea8dcff..b4eac309 100644 --- a/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs +++ b/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs @@ -1,4 +1,4 @@ -// Copyright © 2022-2025 SIL Global +// Copyright © 2022-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Collections.Generic; using System.IO; diff --git a/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs b/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs index df54b519..33721b04 100644 --- a/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs +++ b/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs @@ -1,4 +1,4 @@ -// // Copyright © 2019-2025 SIL Global +// // Copyright © 2019-2026 SIL Global // // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Collections.Generic; @@ -7,7 +7,7 @@ namespace L10NSharp.Windows.Forms { - internal interface ILocalizedStringCacheWinforms:L10NSharp.ILocalizedStringCache + internal interface ILocalizedStringCacheWinforms : L10NSharp.ILocalizedStringCache { List> LeafNodeList { get; } Keys GetShortcutKeys(string langId, string id); diff --git a/src/L10NSharp.Windows.Forms/L10NExtender.cs b/src/L10NSharp.Windows.Forms/L10NExtender.cs index e63544bc..d2a278a4 100644 --- a/src/L10NSharp.Windows.Forms/L10NExtender.cs +++ b/src/L10NSharp.Windows.Forms/L10NExtender.cs @@ -1,7 +1,7 @@ // --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2025 SIL Global -// -// Copyright © 2009-2025 SIL Global +#region // Copyright © 2009-2026 SIL Global +// +// Copyright © 2009-2026 SIL Global // // Distributable under the terms of either the Common Public License or the // GNU Lesser General Public License, as specified in the LICENSING.txt file. @@ -263,7 +263,7 @@ private void LocalizeControls() { locInfo.UpdateTextFromObject(); } - + _manager.RegisterComponentForLocalizing(locInfo, (lm, info) => { if (info.Category == LocalizationCategory.LocalizableComponent) diff --git a/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs b/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs index 92c7bddb..1684a6ff 100644 --- a/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs +++ b/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs @@ -1,4 +1,4 @@ -// Copyright © 2012-2025 SIL Global +// Copyright © 2012-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Collections.Generic; diff --git a/src/L10NSharp/CodeReader/StringExtractor.cs b/src/L10NSharp/CodeReader/StringExtractor.cs index 027534b9..90a04a92 100644 --- a/src/L10NSharp/CodeReader/StringExtractor.cs +++ b/src/L10NSharp/CodeReader/StringExtractor.cs @@ -1,4 +1,4 @@ -// Copyright © 2022-2025 SIL Global +// Copyright © 2022-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; diff --git a/src/L10NSharp/IDocument.cs b/src/L10NSharp/IDocument.cs index e14bc425..4e88cf93 100644 --- a/src/L10NSharp/IDocument.cs +++ b/src/L10NSharp/IDocument.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) namespace L10NSharp diff --git a/src/L10NSharp/ILocalizedStringCache.cs b/src/L10NSharp/ILocalizedStringCache.cs index dc0c70dd..a3d37fb7 100644 --- a/src/L10NSharp/ILocalizedStringCache.cs +++ b/src/L10NSharp/ILocalizedStringCache.cs @@ -1,4 +1,4 @@ -// // Copyright © 2019-2025 SIL Global +// // Copyright © 2019-2026 SIL Global // // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Collections.Generic; diff --git a/src/L10NSharp/INote.cs b/src/L10NSharp/INote.cs index d1345061..7b160567 100644 --- a/src/L10NSharp/INote.cs +++ b/src/L10NSharp/INote.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) namespace L10NSharp diff --git a/src/L10NSharp/ITransUnit.cs b/src/L10NSharp/ITransUnit.cs index 8db2d458..ab25d276 100644 --- a/src/L10NSharp/ITransUnit.cs +++ b/src/L10NSharp/ITransUnit.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) namespace L10NSharp diff --git a/src/L10NSharp/ITransUnitVariant.cs b/src/L10NSharp/ITransUnitVariant.cs index 349f627a..da3b4653 100644 --- a/src/L10NSharp/ITransUnitVariant.cs +++ b/src/L10NSharp/ITransUnitVariant.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) namespace L10NSharp diff --git a/src/L10NSharp/LocalizedStringCache.cs b/src/L10NSharp/LocalizedStringCache.cs index f0739aab..13ae0c37 100644 --- a/src/L10NSharp/LocalizedStringCache.cs +++ b/src/L10NSharp/LocalizedStringCache.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) namespace L10NSharp diff --git a/src/L10NSharp/TranslationMemory.cs b/src/L10NSharp/TranslationMemory.cs index 6f22e8b7..4f291d9f 100644 --- a/src/L10NSharp/TranslationMemory.cs +++ b/src/L10NSharp/TranslationMemory.cs @@ -1,4 +1,4 @@ -// Copyright © 2022-2025 SIL Global +// Copyright © 2022-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) namespace L10NSharp diff --git a/src/L10NSharp/TranslationStatus.cs b/src/L10NSharp/TranslationStatus.cs index fe0fecd4..83dbdf62 100644 --- a/src/L10NSharp/TranslationStatus.cs +++ b/src/L10NSharp/TranslationStatus.cs @@ -1,4 +1,4 @@ -// Copyright © 2019-2025 SIL Global +// Copyright © 2019-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Xml.Serialization; diff --git a/src/L10NSharp/XLiffUtils/XLiffDocument.cs b/src/L10NSharp/XLiffUtils/XLiffDocument.cs index 278af318..9feed3ad 100644 --- a/src/L10NSharp/XLiffUtils/XLiffDocument.cs +++ b/src/L10NSharp/XLiffUtils/XLiffDocument.cs @@ -1,7 +1,7 @@ // --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2025 SIL Global -// -// Copyright © 2009-2025 SIL Global +#region // Copyright © 2009-2026 SIL Global +// +// Copyright © 2009-2026 SIL Global // // Distributable under the terms of either the Common Public License or the // GNU Lesser General Public License, as specified in the LICENSING.txt file. diff --git a/src/L10NSharp/XLiffUtils/XLiffHeader.cs b/src/L10NSharp/XLiffUtils/XLiffHeader.cs index 2f809f7d..d2f626e1 100644 --- a/src/L10NSharp/XLiffUtils/XLiffHeader.cs +++ b/src/L10NSharp/XLiffUtils/XLiffHeader.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------------- #region -// Copyright © 2017-2025 SIL Global +// Copyright © 2017-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) #endregion // diff --git a/src/L10NSharp/XLiffUtils/XLiffNote.cs b/src/L10NSharp/XLiffUtils/XLiffNote.cs index f0ba948e..70bb88b8 100644 --- a/src/L10NSharp/XLiffUtils/XLiffNote.cs +++ b/src/L10NSharp/XLiffUtils/XLiffNote.cs @@ -1,7 +1,7 @@ // --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2025 SIL Global -// -// Copyright © 2009-2025 SIL Global +#region // Copyright © 2009-2026 SIL Global +// +// Copyright © 2009-2026 SIL Global // // Distributable under the terms of either the Common Public License or the // GNU Lesser General Public License, as specified in the LICENSING.txt file. @@ -75,7 +75,8 @@ public class XLiffNote : XLiffBaseWithNotesAndProps // ------------------------------------------------------------------------------------ public XLiffNote Copy() { - return new XLiffNote { + return new XLiffNote + { NoteLang = NoteLang, Text = Text }; diff --git a/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs b/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs index 07362aee..c12a54d1 100644 --- a/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs +++ b/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs @@ -1,6 +1,6 @@ // --------------------------------------------------------------------------------------------- #region -// Copyright © 2017-2025 SIL Global +// Copyright © 2017-2026 SIL Global // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) #endregion // diff --git a/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs b/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs index eb22945a..f7811189 100644 --- a/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs +++ b/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs @@ -1,7 +1,7 @@ // --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2025 SIL Global -// -// Copyright © 2009-2025 SIL Global +#region // Copyright © 2009-2026 SIL Global +// +// Copyright © 2009-2026 SIL Global // // Distributable under the terms of either the Common Public License or the // GNU Lesser General Public License, as specified in the LICENSING.txt file. From 0e19d873df03759fbf1c03ef79a0d797154e95a9 Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Tue, 16 Jun 2026 12:54:12 -0400 Subject: [PATCH 2/3] Split CHANGELOG addition to pr #156 --- CHANGELOG.md | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7efde773..bca5b125 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -263,17 +263,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Create nuget package - Strong-name assembly - -[Unreleased]: https://github.com/sillsdev/l10nsharp/compare/v9.0.0...HEAD -[9.0.0]: https://github.com/sillsdev/l10nsharp/compare/v8.0.0.0...v9.0.0 -[8.0.0]: https://github.com/sillsdev/l10nsharp/compare/v7.0.0...v8.0.0.0 -[7.0.0]: https://github.com/sillsdev/l10nsharp/compare/v6.0.0...v7.0.0 -[6.0.0]: https://github.com/sillsdev/l10nsharp/compare/v5.0.0...v6.0.0 -[5.0.0]: https://github.com/sillsdev/l10nsharp/compare/v4.1.0...v5.0.0 -[4.1.0]: https://github.com/sillsdev/l10nsharp/compare/v4.0.3...v4.1.0 -[4.0.3]: https://github.com/sillsdev/l10nsharp/compare/v4.0.2...v4.0.3 -[4.0.2]: https://github.com/sillsdev/l10nsharp/compare/v4.0.1...v4.0.2 -[4.0.1]: https://github.com/sillsdev/l10nsharp/compare/v4.0.0...v4.0.1 -[4.0.0]: https://github.com/sillsdev/l10nsharp/compare/xliff-3.1.1...v4.0.0 -[3.1.1]: https://github.com/sillsdev/l10nsharp/compare/v3.1.0...xliff-3.1.1 -[3.1.0]: https://github.com/sillsdev/l10nsharp/compare/v3.0...v3.1.0 From 62fab0f2d709c0deb4a5bd806222e16dbd3e644e Mon Sep 17 00:00:00 2001 From: Danny Rorabaugh Date: Tue, 16 Jun 2026 13:12:51 -0400 Subject: [PATCH 3/3] Strip file-level copyright/license lines --- CHANGELOG.md | 2 ++ Directory.Build.props | 4 +++- LICENSE | 21 +++++++++++++++++++ src/CheckOrFixXliff/CheckOrFixXliff.csproj | 1 - src/ExtractXliff/Program.cs | 2 -- .../LocalizationManagerTestsBase.cs | 2 -- ...calizationManagerTests_NoManagersLoaded.cs | 3 --- .../ProxyLocalizationManager.cs | 3 --- .../XLiffLocalizationManagerTests.cs | 3 --- .../XLiffSchemaValidationTests.cs | 3 --- .../XliffLocalizationManagerTests.cs | 2 -- .../ILocalizationManagerInternalWinforms.cs | 3 --- .../ILocalizedStringCacheWinforms.cs | 3 --- src/L10NSharp.Windows.Forms/L10NExtender.cs | 16 -------------- .../LocalizationManagerInternalWinforms.cs | 3 --- .../LocalizationManagerWinforms.cs | 3 --- .../UIComponents/NodeComparer.cs | 3 --- src/L10NSharp/CodeReader/StringExtractor.cs | 3 --- src/L10NSharp/IDocument.cs | 3 --- src/L10NSharp/ILocalizationManager.cs | 3 --- src/L10NSharp/ILocalizationManagerInternal.cs | 3 --- src/L10NSharp/ILocalizedStringCache.cs | 3 --- src/L10NSharp/INote.cs | 3 --- src/L10NSharp/ITransUnit.cs | 3 --- src/L10NSharp/ITransUnitVariant.cs | 3 --- src/L10NSharp/LocalizationManager.cs | 3 --- src/L10NSharp/LocalizationManagerInternal.cs | 3 --- src/L10NSharp/LocalizedStringCache.cs | 3 --- src/L10NSharp/TranslationMemory.cs | 3 --- src/L10NSharp/TranslationStatus.cs | 3 --- src/L10NSharp/XLiffUtils/XLiffBody.cs | 10 --------- src/L10NSharp/XLiffUtils/XLiffDocument.cs | 15 ------------- src/L10NSharp/XLiffUtils/XLiffFile.cs | 6 ------ src/L10NSharp/XLiffUtils/XLiffHeader.cs | 11 ---------- src/L10NSharp/XLiffUtils/XLiffNote.cs | 15 ------------- .../XLiffUtils/XLiffTargetVariant.cs | 11 ---------- src/L10NSharp/XLiffUtils/XLiffTransUnit.cs | 12 ----------- .../XLiffUtils/XLiffTransUnitVariant.cs | 10 --------- 38 files changed, 26 insertions(+), 180 deletions(-) create mode 100644 LICENSE diff --git a/CHANGELOG.md b/CHANGELOG.md index bca5b125..a8902b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Added +- Added a repository-level MIT `LICENSE` file, which is now bundled into the NuGet packages (via `PackageLicenseFile`). - [L10NSharp] Added `net8.0` as a target framework, enabling use on non-Windows platforms, and added cross-platform CI/CD coverage for `net8.0`. - [L10NSharp] Added UiLanguageChanged event to ILocalizationManager. This provides a way for clients to deal with changes now that (in Windows) LocalizeItemDlg.StringsLocalized no longer exists. @@ -45,6 +46,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Removed +- Removed per-file copyright and license headers from source files, since they are covered by the repository-level `LICENSE` and the `Copyright` assembly metadata. (Headers on third-party files are retained.) - [L10NSharp] Removed EnableClickingOnControlToBringUpLocalizationDialog. Since the localization dialog was jettisoned, this is meaningless (and wouldn't belong in the Winforms agnostic namespace anyway). - [L10NSharp] Removed EmailForSubmissions. Since the localization dialog was jettisoned, it no longer makes sense to store this information on the localization manager. - [L10NSharp.Windows.Forms] Removed LmGrid, LmButtonColumn, LmButtonCell, TipDialog. diff --git a/Directory.Build.props b/Directory.Build.props index a812c484..ba8b3d83 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,7 +7,7 @@ Copyright © 2010-2026 SIL Global prompt 4 - MIT + LICENSE false $(MSBuildThisFileDirectory)/CHANGELOG.md $(MSBuildThisFileDirectory)/output/$(Configuration) @@ -32,5 +32,7 @@ See full changelog at https://github.com/sillsdev/l10nsharp/blob/master/CHANGELO must include at least one top-level (not nested) item when DeterministicSourcePaths is true". See https://github.com/dotnet/roslyn/issues/37379#issuecomment-513371985 --> + + diff --git a/LICENSE b/LICENSE new file mode 100644 index 00000000..e928db09 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright © 2010-2026 SIL Global + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/src/CheckOrFixXliff/CheckOrFixXliff.csproj b/src/CheckOrFixXliff/CheckOrFixXliff.csproj index 738e0d19..a0d00497 100644 --- a/src/CheckOrFixXliff/CheckOrFixXliff.csproj +++ b/src/CheckOrFixXliff/CheckOrFixXliff.csproj @@ -7,7 +7,6 @@ Validate and fix XLIFF files. CheckOrFixXliff L10NSharp.CheckOrFixXliff - MIT https://github.com/sillsdev/l10nsharp/tree/master/src/CheckOrFixXliff $(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage $(NoWarn);NU5128;NU5118 diff --git a/src/ExtractXliff/Program.cs b/src/ExtractXliff/Program.cs index dbb52da2..fe7da2ba 100644 --- a/src/ExtractXliff/Program.cs +++ b/src/ExtractXliff/Program.cs @@ -1,5 +1,3 @@ -// Copyright © 2020-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Collections.Generic; using System.IO; diff --git a/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs b/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs index d8d4ef8a..5b366116 100644 --- a/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs +++ b/src/L10NSharp.Tests/LocalizationManagerTestsBase.cs @@ -1,5 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs b/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs index bc790f15..8dbea973 100644 --- a/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs +++ b/src/L10NSharp.Tests/LocalizationManagerTests_NoManagersLoaded.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using NUnit.Framework; using System; using System.Threading; diff --git a/src/L10NSharp.Tests/ProxyLocalizationManager.cs b/src/L10NSharp.Tests/ProxyLocalizationManager.cs index e9738dce..c2beb806 100644 --- a/src/L10NSharp.Tests/ProxyLocalizationManager.cs +++ b/src/L10NSharp.Tests/ProxyLocalizationManager.cs @@ -1,6 +1,3 @@ -// Copyright © 2020-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.ComponentModel; namespace L10NSharp.Tests diff --git a/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs b/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs index cdb83dca..182e9135 100644 --- a/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs +++ b/src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.Collections.Generic; using System.Linq; using System.Reflection; diff --git a/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs b/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs index 4ed652b3..5cfc21a0 100644 --- a/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs +++ b/src/L10NSharp.Tests/XLiffSchemaValidationTests.cs @@ -1,6 +1,3 @@ -// Copyright © 2017-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.IO; using System.Reflection; diff --git a/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs b/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs index b4eac309..77d2cd33 100644 --- a/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs +++ b/src/L10NSharp.Windows.Forms.Tests/XliffLocalizationManagerTests.cs @@ -1,5 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) using System.Collections.Generic; using System.IO; using System.Reflection; diff --git a/src/L10NSharp.Windows.Forms/ILocalizationManagerInternalWinforms.cs b/src/L10NSharp.Windows.Forms/ILocalizationManagerInternalWinforms.cs index 04a7149f..dbb0320b 100644 --- a/src/L10NSharp.Windows.Forms/ILocalizationManagerInternalWinforms.cs +++ b/src/L10NSharp.Windows.Forms/ILocalizationManagerInternalWinforms.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs b/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs index 33721b04..9c90ce24 100644 --- a/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs +++ b/src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs @@ -1,6 +1,3 @@ -// // Copyright © 2019-2026 SIL Global -// // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.Collections.Generic; using System.Windows.Forms; using L10NSharp.Windows.Forms.UIComponents; diff --git a/src/L10NSharp.Windows.Forms/L10NExtender.cs b/src/L10NSharp.Windows.Forms/L10NExtender.cs index d2a278a4..a1a5c6a5 100644 --- a/src/L10NSharp.Windows.Forms/L10NExtender.cs +++ b/src/L10NSharp.Windows.Forms/L10NExtender.cs @@ -1,19 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2026 SIL Global -// -// Copyright © 2009-2026 SIL Global -// -// Distributable under the terms of either the Common Public License or the -// GNU Lesser General Public License, as specified in the LICENSING.txt file. -// -#endregion -// -// File: LocalizingExtender.cs -// Responsibility: D. Olson -// -// -// -// --------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp.Windows.Forms/LocalizationManagerInternalWinforms.cs b/src/L10NSharp.Windows.Forms/LocalizationManagerInternalWinforms.cs index 7bc4efa9..9a1abd5d 100644 --- a/src/L10NSharp.Windows.Forms/LocalizationManagerInternalWinforms.cs +++ b/src/L10NSharp.Windows.Forms/LocalizationManagerInternalWinforms.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp.Windows.Forms/LocalizationManagerWinforms.cs b/src/L10NSharp.Windows.Forms/LocalizationManagerWinforms.cs index 83da0068..1b07267a 100644 --- a/src/L10NSharp.Windows.Forms/LocalizationManagerWinforms.cs +++ b/src/L10NSharp.Windows.Forms/LocalizationManagerWinforms.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.Collections.Generic; using System.Windows.Forms; using L10NSharp.XLiffUtils; diff --git a/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs b/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs index 1684a6ff..74df1412 100644 --- a/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs +++ b/src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs @@ -1,6 +1,3 @@ -// Copyright © 2012-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.Collections.Generic; using System.Globalization; using System.Windows.Forms; diff --git a/src/L10NSharp/CodeReader/StringExtractor.cs b/src/L10NSharp/CodeReader/StringExtractor.cs index 90a04a92..8c0ab720 100644 --- a/src/L10NSharp/CodeReader/StringExtractor.cs +++ b/src/L10NSharp/CodeReader/StringExtractor.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections; using System.Collections.Generic; diff --git a/src/L10NSharp/IDocument.cs b/src/L10NSharp/IDocument.cs index 4e88cf93..ca35d000 100644 --- a/src/L10NSharp/IDocument.cs +++ b/src/L10NSharp/IDocument.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - namespace L10NSharp { public interface IDocument diff --git a/src/L10NSharp/ILocalizationManager.cs b/src/L10NSharp/ILocalizationManager.cs index dc913f36..0591f0fe 100644 --- a/src/L10NSharp/ILocalizationManager.cs +++ b/src/L10NSharp/ILocalizationManager.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp/ILocalizationManagerInternal.cs b/src/L10NSharp/ILocalizationManagerInternal.cs index 82cd766a..fae77a54 100644 --- a/src/L10NSharp/ILocalizationManagerInternal.cs +++ b/src/L10NSharp/ILocalizationManagerInternal.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp/ILocalizedStringCache.cs b/src/L10NSharp/ILocalizedStringCache.cs index a3d37fb7..8c82b4a5 100644 --- a/src/L10NSharp/ILocalizedStringCache.cs +++ b/src/L10NSharp/ILocalizedStringCache.cs @@ -1,6 +1,3 @@ -// // Copyright © 2019-2026 SIL Global -// // This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.Collections.Generic; namespace L10NSharp diff --git a/src/L10NSharp/INote.cs b/src/L10NSharp/INote.cs index 7b160567..024ebbca 100644 --- a/src/L10NSharp/INote.cs +++ b/src/L10NSharp/INote.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - namespace L10NSharp { public interface INote diff --git a/src/L10NSharp/ITransUnit.cs b/src/L10NSharp/ITransUnit.cs index ab25d276..fd9902ca 100644 --- a/src/L10NSharp/ITransUnit.cs +++ b/src/L10NSharp/ITransUnit.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - namespace L10NSharp { public interface ITransUnit diff --git a/src/L10NSharp/ITransUnitVariant.cs b/src/L10NSharp/ITransUnitVariant.cs index da3b4653..b0e1fa66 100644 --- a/src/L10NSharp/ITransUnitVariant.cs +++ b/src/L10NSharp/ITransUnitVariant.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - namespace L10NSharp { public interface ITransUnitVariant diff --git a/src/L10NSharp/LocalizationManager.cs b/src/L10NSharp/LocalizationManager.cs index 7444323d..6168a4bd 100644 --- a/src/L10NSharp/LocalizationManager.cs +++ b/src/L10NSharp/LocalizationManager.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections.Generic; using System.ComponentModel; diff --git a/src/L10NSharp/LocalizationManagerInternal.cs b/src/L10NSharp/LocalizationManagerInternal.cs index e099631f..e5f12888 100644 --- a/src/L10NSharp/LocalizationManagerInternal.cs +++ b/src/L10NSharp/LocalizationManagerInternal.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System; using System.Collections.Concurrent; using System.Collections.Generic; diff --git a/src/L10NSharp/LocalizedStringCache.cs b/src/L10NSharp/LocalizedStringCache.cs index 13ae0c37..327b2395 100644 --- a/src/L10NSharp/LocalizedStringCache.cs +++ b/src/L10NSharp/LocalizedStringCache.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - namespace L10NSharp { internal class LocalizedStringCache diff --git a/src/L10NSharp/TranslationMemory.cs b/src/L10NSharp/TranslationMemory.cs index 4f291d9f..91485bdf 100644 --- a/src/L10NSharp/TranslationMemory.cs +++ b/src/L10NSharp/TranslationMemory.cs @@ -1,6 +1,3 @@ -// Copyright © 2022-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - namespace L10NSharp { public enum TranslationMemory diff --git a/src/L10NSharp/TranslationStatus.cs b/src/L10NSharp/TranslationStatus.cs index 83dbdf62..ffcd077e 100644 --- a/src/L10NSharp/TranslationStatus.cs +++ b/src/L10NSharp/TranslationStatus.cs @@ -1,6 +1,3 @@ -// Copyright © 2019-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) - using System.Xml.Serialization; namespace L10NSharp diff --git a/src/L10NSharp/XLiffUtils/XLiffBody.cs b/src/L10NSharp/XLiffUtils/XLiffBody.cs index c597a957..46f4c722 100644 --- a/src/L10NSharp/XLiffUtils/XLiffBody.cs +++ b/src/L10NSharp/XLiffUtils/XLiffBody.cs @@ -1,13 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2026 SIL Global -// -// Copyright © 2009-2026 SIL Global -// -// Distributable under the terms of either the Common Public License or the -// GNU Lesser General Public License, as specified in the LICENSING.txt file. -// -#endregion -// --------------------------------------------------------------------------------------------- using System.Collections; using System.Collections.Concurrent; using System.Linq; diff --git a/src/L10NSharp/XLiffUtils/XLiffDocument.cs b/src/L10NSharp/XLiffUtils/XLiffDocument.cs index 9feed3ad..2ae56d74 100644 --- a/src/L10NSharp/XLiffUtils/XLiffDocument.cs +++ b/src/L10NSharp/XLiffUtils/XLiffDocument.cs @@ -1,18 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2026 SIL Global -// -// Copyright © 2009-2026 SIL Global -// -// Distributable under the terms of either the Common Public License or the -// GNU Lesser General Public License, as specified in the LICENSING.txt file. -// -#endregion -// -// File: XLiffDocument.cs -// -// -// -// --------------------------------------------------------------------------------------------- using System; using System.Collections.Generic; using System.IO; diff --git a/src/L10NSharp/XLiffUtils/XLiffFile.cs b/src/L10NSharp/XLiffUtils/XLiffFile.cs index bacd1509..1d6c09e2 100644 --- a/src/L10NSharp/XLiffUtils/XLiffFile.cs +++ b/src/L10NSharp/XLiffUtils/XLiffFile.cs @@ -1,9 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region -// Copyright © 2017-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) -#endregion -// --------------------------------------------------------------------------------------------- using System.ComponentModel; using System.Xml.Serialization; diff --git a/src/L10NSharp/XLiffUtils/XLiffHeader.cs b/src/L10NSharp/XLiffUtils/XLiffHeader.cs index d2f626e1..b376b6b8 100644 --- a/src/L10NSharp/XLiffUtils/XLiffHeader.cs +++ b/src/L10NSharp/XLiffUtils/XLiffHeader.cs @@ -1,14 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region -// Copyright © 2017-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) -#endregion -// -// File: XliffHeader.cs -// -// -// -// --------------------------------------------------------------------------------------------- using System.Xml.Serialization; using System.Collections.Generic; diff --git a/src/L10NSharp/XLiffUtils/XLiffNote.cs b/src/L10NSharp/XLiffUtils/XLiffNote.cs index 70bb88b8..4efde28a 100644 --- a/src/L10NSharp/XLiffUtils/XLiffNote.cs +++ b/src/L10NSharp/XLiffUtils/XLiffNote.cs @@ -1,18 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2026 SIL Global -// -// Copyright © 2009-2026 SIL Global -// -// Distributable under the terms of either the Common Public License or the -// GNU Lesser General Public License, as specified in the LICENSING.txt file. -// -#endregion -// -// File: XLiffNote.cs -// -// -// -// --------------------------------------------------------------------------------------------- using System.Collections.Generic; using System.Xml.Serialization; diff --git a/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs b/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs index c12a54d1..a023d81b 100644 --- a/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs +++ b/src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs @@ -1,14 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region -// Copyright © 2017-2026 SIL Global -// This software is licensed under the MIT License (http://opensource.org/licenses/MIT) -#endregion -// -// File: XLiffTargetVariant.cs -// -// -// -// --------------------------------------------------------------------------------------------- using System.Xml.Serialization; namespace L10NSharp.XLiffUtils diff --git a/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs b/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs index f7811189..ed5d7dda 100644 --- a/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs +++ b/src/L10NSharp/XLiffUtils/XLiffTransUnit.cs @@ -1,15 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2026 SIL Global -// -// Copyright © 2009-2026 SIL Global -// -// Distributable under the terms of either the Common Public License or the -// GNU Lesser General Public License, as specified in the LICENSING.txt file. -// -#endregion -// -// File: XLiffTransUnit.cs -// --------------------------------------------------------------------------------------------- using System.Collections.Generic; using System.Xml.Serialization; using static System.String; diff --git a/src/L10NSharp/XLiffUtils/XLiffTransUnitVariant.cs b/src/L10NSharp/XLiffUtils/XLiffTransUnitVariant.cs index 1c66a690..6ebf6555 100644 --- a/src/L10NSharp/XLiffUtils/XLiffTransUnitVariant.cs +++ b/src/L10NSharp/XLiffUtils/XLiffTransUnitVariant.cs @@ -1,13 +1,3 @@ -// --------------------------------------------------------------------------------------------- -#region // Copyright © 2009-2026 SIL Global -// -// Copyright © 2009-2026 SIL Global -// -// Distributable under the terms of either the Common Public License or the -// GNU Lesser General Public License, as specified in the LICENSING.txt file. -// -#endregion -// --------------------------------------------------------------------------------------------- using System.Xml.Serialization; namespace L10NSharp.XLiffUtils