Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<XLiffDocument>.StringsLocalized no longer exists.

Expand Down Expand Up @@ -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.
Expand Down
4 changes: 3 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Copyright>Copyright © 2010-2026 SIL Global</Copyright>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<ChangelogFile>$(MSBuildThisFileDirectory)/CHANGELOG.md</ChangelogFile>
<OutputPath>$(MSBuildThisFileDirectory)/output/$(Configuration)</OutputPath>
Expand All @@ -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 -->
<SourceRoot Include="$(MSBuildThisFileDirectory)/src/"/>
<!-- Pack the repo-level MIT license into the NuGet packages (referenced by PackageLicenseFile). -->
<None Include="$(MSBuildThisFileDirectory)/LICENSE" Pack="true" PackagePath="" Visible="false"/>
</ItemGroup>
</Project>
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -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.
1 change: 0 additions & 1 deletion src/CheckOrFixXliff/CheckOrFixXliff.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<Description>Validate and fix XLIFF files.</Description>
<AssemblyTitle>CheckOrFixXliff</AssemblyTitle>
<PackageId>L10NSharp.CheckOrFixXliff</PackageId>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/sillsdev/l10nsharp/tree/master/src/CheckOrFixXliff</PackageProjectUrl>
<TargetsForTfmSpecificBuildOutput>$(TargetsForTfmSpecificBuildOutput);CopyProjectReferencesToPackage</TargetsForTfmSpecificBuildOutput>
<NoWarn>$(NoWarn);NU5128;NU5118</NoWarn>
Expand Down
2 changes: 0 additions & 2 deletions src/ExtractXliff/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright © 2020-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
2 changes: 0 additions & 2 deletions src/L10NSharp.Tests/LocalizationManagerTestsBase.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright © 2022-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using NUnit.Framework;
using System;
using System.Threading;
Expand Down
5 changes: 1 addition & 4 deletions src/L10NSharp.Tests/ProxyLocalizationManager.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2020-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using System.ComponentModel;

namespace L10NSharp.Tests
Expand All @@ -27,7 +24,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);
}
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp.Tests/XLiffLocalizationManagerTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2022-2025 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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp.Tests/XLiffSchemaValidationTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2017-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using System;
using System.IO;
using System.Reflection;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
// Copyright © 2022-2025 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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
5 changes: 1 addition & 4 deletions src/L10NSharp.Windows.Forms/ILocalizedStringCacheWinforms.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
// // Copyright © 2019-2025 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;

namespace L10NSharp.Windows.Forms
{
internal interface ILocalizedStringCacheWinforms<T>:L10NSharp.ILocalizedStringCache<T>
internal interface ILocalizedStringCacheWinforms<T> : L10NSharp.ILocalizedStringCache<T>
{
List<LocTreeNode<T>> LeafNodeList { get; }
Keys GetShortcutKeys(string langId, string id);
Expand Down
18 changes: 1 addition & 17 deletions src/L10NSharp.Windows.Forms/L10NExtender.cs
Original file line number Diff line number Diff line change
@@ -1,19 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region // Copyright © 2009-2025 SIL Global
// <copyright from='2009' to='2025' company='SIL Global'>
// Copyright © 2009-2025 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.
// </copyright>
#endregion
//
// File: LocalizingExtender.cs
// Responsibility: D. Olson
//
// <remarks>
// </remarks>
// ---------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.ComponentModel;
Expand Down Expand Up @@ -263,7 +247,7 @@ private void LocalizeControls()
{
locInfo.UpdateTextFromObject();
}

_manager.RegisterComponentForLocalizing(locInfo, (lm, info) =>
{
if (info.Category == LocalizationCategory.LocalizableComponent)
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp.Windows.Forms/LocalizationManagerWinforms.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp.Windows.Forms/UIComponents/NodeComparer.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2012-2025 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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/CodeReader/StringExtractor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2022-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using System;
using System.Collections;
using System.Collections.Generic;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/IDocument.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

namespace L10NSharp
{
public interface IDocument
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/ILocalizationManager.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/ILocalizationManagerInternal.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/ILocalizedStringCache.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// // Copyright © 2019-2025 SIL Global
// // This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using System.Collections.Generic;

namespace L10NSharp
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/INote.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

namespace L10NSharp
{
public interface INote
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/ITransUnit.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

namespace L10NSharp
{
public interface ITransUnit
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/ITransUnitVariant.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

namespace L10NSharp
{
public interface ITransUnitVariant
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/LocalizationManager.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/LocalizationManagerInternal.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/LocalizedStringCache.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

namespace L10NSharp
{
internal class LocalizedStringCache
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/TranslationMemory.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2022-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

namespace L10NSharp
{
public enum TranslationMemory
Expand Down
3 changes: 0 additions & 3 deletions src/L10NSharp/TranslationStatus.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// Copyright © 2019-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)

using System.Xml.Serialization;

namespace L10NSharp
Expand Down
10 changes: 0 additions & 10 deletions src/L10NSharp/XLiffUtils/XLiffBody.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region // Copyright © 2009-2026 SIL Global
// <copyright from='2009' to='2026' company='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.
// </copyright>
#endregion
// ---------------------------------------------------------------------------------------------
using System.Collections;
using System.Collections.Concurrent;
using System.Linq;
Expand Down
15 changes: 0 additions & 15 deletions src/L10NSharp/XLiffUtils/XLiffDocument.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region // Copyright © 2009-2025 SIL Global
// <copyright from='2009' to='2025' company='SIL Global'>
// Copyright © 2009-2025 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.
// </copyright>
#endregion
//
// File: XLiffDocument.cs
//
// <remarks>
// </remarks>
// ---------------------------------------------------------------------------------------------
using System;
using System.Collections.Generic;
using System.IO;
Expand Down
6 changes: 0 additions & 6 deletions src/L10NSharp/XLiffUtils/XLiffFile.cs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
11 changes: 0 additions & 11 deletions src/L10NSharp/XLiffUtils/XLiffHeader.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region
// Copyright © 2017-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
#endregion
//
// File: XliffHeader.cs
//
// <remarks>
// </remarks>
// ---------------------------------------------------------------------------------------------
using System.Xml.Serialization;
using System.Collections.Generic;

Expand Down
18 changes: 2 additions & 16 deletions src/L10NSharp/XLiffUtils/XLiffNote.cs
Original file line number Diff line number Diff line change
@@ -1,18 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region // Copyright © 2009-2025 SIL Global
// <copyright from='2009' to='2025' company='SIL Global'>
// Copyright © 2009-2025 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.
// </copyright>
#endregion
//
// File: XLiffNote.cs
//
// <remarks>
// </remarks>
// ---------------------------------------------------------------------------------------------
using System.Collections.Generic;
using System.Xml.Serialization;

Expand Down Expand Up @@ -75,7 +60,8 @@ public class XLiffNote : XLiffBaseWithNotesAndProps
// ------------------------------------------------------------------------------------
public XLiffNote Copy()
{
return new XLiffNote {
return new XLiffNote
{
NoteLang = NoteLang,
Text = Text
};
Expand Down
11 changes: 0 additions & 11 deletions src/L10NSharp/XLiffUtils/XLiffTargetVariant.cs
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region
// Copyright © 2017-2025 SIL Global
// This software is licensed under the MIT License (http://opensource.org/licenses/MIT)
#endregion
//
// File: XLiffTargetVariant.cs
//
// <remarks>
// </remarks>
// ---------------------------------------------------------------------------------------------
using System.Xml.Serialization;

namespace L10NSharp.XLiffUtils
Expand Down
12 changes: 0 additions & 12 deletions src/L10NSharp/XLiffUtils/XLiffTransUnit.cs
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
// ---------------------------------------------------------------------------------------------
#region // Copyright © 2009-2025 SIL Global
// <copyright from='2009' to='2025' company='SIL Global'>
// Copyright © 2009-2025 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.
// </copyright>
#endregion
//
// File: XLiffTransUnit.cs
// ---------------------------------------------------------------------------------------------
using System.Collections.Generic;
using System.Xml.Serialization;
using static System.String;
Expand Down
Loading
Loading