From d1f4fe46d50cfbce064895f8ab9fd5a7f29aca77 Mon Sep 17 00:00:00 2001 From: Jason Naylor Date: Wed, 8 Oct 2025 12:52:26 -0700 Subject: [PATCH] Make shared strings public to enable FieldWorks SDK style builds - In the old build system somehow using the same namespace in the FieldWorks code and in this library was enough to get internal access to the strings resources. Update these strings to public so that FieldWorks can use them in its UI. --- .../SIL.LCModel.FixData.csproj | 4 +- src/SIL.LCModel.FixData/Strings.Designer.cs | 70 +++++++++---------- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/SIL.LCModel.FixData/SIL.LCModel.FixData.csproj b/src/SIL.LCModel.FixData/SIL.LCModel.FixData.csproj index 4acb6b16..93107b30 100644 --- a/src/SIL.LCModel.FixData/SIL.LCModel.FixData.csproj +++ b/src/SIL.LCModel.FixData/SIL.LCModel.FixData.csproj @@ -1,4 +1,4 @@ - + net462;netstandard2.0 @@ -27,7 +27,7 @@ SIL.LCModel.FixData provides functionality to fix errors in a FieldWorks data XM - ResXFileCodeGenerator + PublicResXFileCodeGenerator Strings.Designer.cs diff --git a/src/SIL.LCModel.FixData/Strings.Designer.cs b/src/SIL.LCModel.FixData/Strings.Designer.cs index b8fd534a..61d6ecb8 100644 --- a/src/SIL.LCModel.FixData/Strings.Designer.cs +++ b/src/SIL.LCModel.FixData/Strings.Designer.cs @@ -19,10 +19,10 @@ namespace SIL.LCModel.FixData { // class via a tool like ResGen or Visual Studio. // To add or remove a member, edit your .ResX file then rerun ResGen // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Strings { + public class Strings { private static global::System.Resources.ResourceManager resourceMan; @@ -36,7 +36,7 @@ internal Strings() { /// Returns the cached ResourceManager instance used by this class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { + public static global::System.Resources.ResourceManager ResourceManager { get { if (object.ReferenceEquals(resourceMan, null)) { global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("SIL.LCModel.FixData.Strings", typeof(Strings).Assembly); @@ -51,7 +51,7 @@ internal Strings() { /// resource lookups using this strongly typed resource class. /// [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { + public static global::System.Globalization.CultureInfo Culture { get { return resourceCulture; } @@ -63,7 +63,7 @@ internal Strings() { /// /// Looks up a localized string similar to Adding ownerguid='{0}' (class='{1}', guid='{2}').. /// - internal static string ksAddingLinkToOwner { + public static string ksAddingLinkToOwner { get { return ResourceManager.GetString("ksAddingLinkToOwner", resourceCulture); } @@ -72,7 +72,7 @@ internal static string ksAddingLinkToOwner { /// /// Looks up a localized string similar to Missing default value type added to {0}. /// - internal static string ksAddingMissingDefaultForValueType { + public static string ksAddingMissingDefaultForValueType { get { return ResourceManager.GetString("ksAddingMissingDefaultForValueType", resourceCulture); } @@ -81,7 +81,7 @@ internal static string ksAddingMissingDefaultForValueType { /// /// Looks up a localized string similar to Adjusted homograph number in {0} from {1} to {2}. /// - internal static string ksAdjustedHomograph { + public static string ksAdjustedHomograph { get { return ResourceManager.GetString("ksAdjustedHomograph", resourceCulture); } @@ -90,7 +90,7 @@ internal static string ksAdjustedHomograph { /// /// Looks up a localized string similar to Adjusting reference to missing Segment by changing analysis object guid='{0}', class='{1}', field='{2}'.. /// - internal static string ksAdjustingAnalysisRefObj { + public static string ksAdjustingAnalysisRefObj { get { return ResourceManager.GetString("ksAdjustingAnalysisRefObj", resourceCulture); } @@ -99,7 +99,7 @@ internal static string ksAdjustingAnalysisRefObj { /// /// Looks up a localized string similar to Changing ownerguid value from '{0}' to '{1}' (class='{2}', guid='{3}').. /// - internal static string ksChangingOwnerGuidValue { + public static string ksChangingOwnerGuidValue { get { return ResourceManager.GetString("ksChangingOwnerGuidValue", resourceCulture); } @@ -108,7 +108,7 @@ internal static string ksChangingOwnerGuidValue { /// /// Looks up a localized string similar to Wordform with guid '{0}' has same form ({1}) as '{2}' and was merged. /// - internal static string ksDuplicateWordform { + public static string ksDuplicateWordform { get { return ResourceManager.GetString("ksDuplicateWordform", resourceCulture); } @@ -117,7 +117,7 @@ internal static string ksDuplicateWordform { /// /// Looks up a localized string similar to Looking for and fixing errors in {0}. /// - internal static string ksLookingForAndFixingErrors { + public static string ksLookingForAndFixingErrors { get { return ResourceManager.GetString("ksLookingForAndFixingErrors", resourceCulture); } @@ -126,7 +126,7 @@ internal static string ksLookingForAndFixingErrors { /// /// Looks up a localized string similar to Object with guid '{0}' already exists! (not fixed). /// - internal static string ksObjectWithGuidAlreadyExists { + public static string ksObjectWithGuidAlreadyExists { get { return ResourceManager.GetString("ksObjectWithGuidAlreadyExists", resourceCulture); } @@ -135,7 +135,7 @@ internal static string ksObjectWithGuidAlreadyExists { /// /// Looks up a localized string similar to Object with guid '{0}' is already owned, so can't be owned by '{1}'. /// - internal static string ksObjectWithGuidAlreadyOwned { + public static string ksObjectWithGuidAlreadyOwned { get { return ResourceManager.GetString("ksObjectWithGuidAlreadyOwned", resourceCulture); } @@ -144,7 +144,7 @@ internal static string ksObjectWithGuidAlreadyOwned { /// /// Looks up a localized string similar to Reading the input file {0}. /// - internal static string ksReadingTheInputFile { + public static string ksReadingTheInputFile { get { return ResourceManager.GetString("ksReadingTheInputFile", resourceCulture); } @@ -153,7 +153,7 @@ internal static string ksReadingTheInputFile { /// /// Looks up a localized string similar to Removing unused MorphoSyntaxAnalysis. /// - internal static string ksRemovedUnusedMsa { + public static string ksRemovedUnusedMsa { get { return ResourceManager.GetString("ksRemovedUnusedMsa", resourceCulture); } @@ -162,7 +162,7 @@ internal static string ksRemovedUnusedMsa { /// /// Looks up a localized string similar to Removing reference to missing Segment by deleting analysis object guid='{0}', class='{1}', ownerguid='{2}'.. /// - internal static string ksRemovingBadAnalysisRefObj { + public static string ksRemovingBadAnalysisRefObj { get { return ResourceManager.GetString("ksRemovingBadAnalysisRefObj", resourceCulture); } @@ -171,7 +171,7 @@ internal static string ksRemovingBadAnalysisRefObj { /// /// Looks up a localized string similar to Removing LexReference with too few references (Targets) (guid='{0}') from its owner (guid='{1}').. /// - internal static string ksRemovingBadLexReference { + public static string ksRemovingBadLexReference { get { return ResourceManager.GetString("ksRemovingBadLexReference", resourceCulture); } @@ -180,7 +180,7 @@ internal static string ksRemovingBadLexReference { /// /// Looks up a localized string similar to Removing dangling link to Form '{0}' for WfiMorphBundle '{1}'.. /// - internal static string ksRemovingDanglingMorph { + public static string ksRemovingDanglingMorph { get { return ResourceManager.GetString("ksRemovingDanglingMorph", resourceCulture); } @@ -189,7 +189,7 @@ internal static string ksRemovingDanglingMorph { /// /// Looks up a localized string similar to Removing dangling link to MSA '{0}' for WfiMorphBundle '{1}'.. /// - internal static string ksRemovingDanglingMsa { + public static string ksRemovingDanglingMsa { get { return ResourceManager.GetString("ksRemovingDanglingMsa", resourceCulture); } @@ -198,7 +198,7 @@ internal static string ksRemovingDanglingMsa { /// /// Looks up a localized string similar to Removed alternative {0} from {1} of {2} because it has the same writing system as {3}. /// - internal static string ksRemovingDuplicateAlternative { + public static string ksRemovingDuplicateAlternative { get { return ResourceManager.GetString("ksRemovingDuplicateAlternative", resourceCulture); } @@ -207,7 +207,7 @@ internal static string ksRemovingDuplicateAlternative { /// /// Looks up a localized string similar to Removing duplicate style {0}.. /// - internal static string ksRemovingDuplicateStyle { + public static string ksRemovingDuplicateStyle { get { return ResourceManager.GetString("ksRemovingDuplicateStyle", resourceCulture); } @@ -216,7 +216,7 @@ internal static string ksRemovingDuplicateStyle { /// /// Looks up a localized string similar to Removing 'editable' attribute from a string in a {0}. /// - internal static string ksRemovingEditableAttribute { + public static string ksRemovingEditableAttribute { get { return ResourceManager.GetString("ksRemovingEditableAttribute", resourceCulture); } @@ -225,7 +225,7 @@ internal static string ksRemovingEditableAttribute { /// /// Looks up a localized string similar to Removing invalid Generic Date {0} from {1} of {2} ({3}).. /// - internal static string ksRemovingGenericDate { + public static string ksRemovingGenericDate { get { return ResourceManager.GetString("ksRemovingGenericDate", resourceCulture); } @@ -234,7 +234,7 @@ internal static string ksRemovingGenericDate { /// /// Looks up a localized string similar to Removing dangling link to '{0}' (class='{1}', guid='{2}', field='{3}').. /// - internal static string ksRemovingLinkToNonexistingObject { + public static string ksRemovingLinkToNonexistingObject { get { return ResourceManager.GetString("ksRemovingLinkToNonexistingObject", resourceCulture); } @@ -243,7 +243,7 @@ internal static string ksRemovingLinkToNonexistingObject { /// /// Looks up a localized string similar to Removing multiple ownership link '{0}' (class='{1}', guid='{2}', field='{3}').. /// - internal static string ksRemovingMultipleOwnershipLink { + public static string ksRemovingMultipleOwnershipLink { get { return ResourceManager.GetString("ksRemovingMultipleOwnershipLink", resourceCulture); } @@ -252,7 +252,7 @@ internal static string ksRemovingMultipleOwnershipLink { /// /// Looks up a localized string similar to Removing object with nonexistent owner (invalid ownerguid='{0}', class='{1}', guid='{2}').. /// - internal static string ksRemovingObjectWithBadOwner { + public static string ksRemovingObjectWithBadOwner { get { return ResourceManager.GetString("ksRemovingObjectWithBadOwner", resourceCulture); } @@ -261,7 +261,7 @@ internal static string ksRemovingObjectWithBadOwner { /// /// Looks up a localized string similar to Removing owner of empty sequence (guid='{0}' class='{1}') from its owner (guid='{2}').. /// - internal static string ksRemovingOwnerOfEmptySequence { + public static string ksRemovingOwnerOfEmptySequence { get { return ResourceManager.GetString("ksRemovingOwnerOfEmptySequence", resourceCulture); } @@ -270,7 +270,7 @@ internal static string ksRemovingOwnerOfEmptySequence { /// /// Looks up a localized string similar to Removing undefined custom property '{0}' from class='{1}', guid='{2}'.. /// - internal static string ksRemovingUndefinedCustomProperty { + public static string ksRemovingUndefinedCustomProperty { get { return ResourceManager.GetString("ksRemovingUndefinedCustomProperty", resourceCulture); } @@ -279,7 +279,7 @@ internal static string ksRemovingUndefinedCustomProperty { /// /// Looks up a localized string similar to Fixing link to Form based on only Form of entry for WfiMorphBundle '{0}'.. /// - internal static string ksRepairingBundleFormFromEntry { + public static string ksRepairingBundleFormFromEntry { get { return ResourceManager.GetString("ksRepairingBundleFormFromEntry", resourceCulture); } @@ -288,7 +288,7 @@ internal static string ksRepairingBundleFormFromEntry { /// /// Looks up a localized string similar to Repairing duplicate lists both named "{0}". "{1}" kept the original name and "{2}" was renamed to "{3}". /// - internal static string ksRepairingDuplicateListName { + public static string ksRepairingDuplicateListName { get { return ResourceManager.GetString("ksRepairingDuplicateListName", resourceCulture); } @@ -297,7 +297,7 @@ internal static string ksRepairingDuplicateListName { /// /// Looks up a localized string similar to Fixing link to MSA based on only MSA of entry for WfiMorphBundle '{0}'.. /// - internal static string ksRepairingMorphBundleFromEntry { + public static string ksRepairingMorphBundleFromEntry { get { return ResourceManager.GetString("ksRepairingMorphBundleFromEntry", resourceCulture); } @@ -306,7 +306,7 @@ internal static string ksRepairingMorphBundleFromEntry { /// /// Looks up a localized string similar to Fixing link to MSA based on Sense MSA (class='WfiMorphBundle', guid='{0}').. /// - internal static string ksRepairingMorphBundleFromSense { + public static string ksRepairingMorphBundleFromSense { get { return ResourceManager.GetString("ksRepairingMorphBundleFromSense", resourceCulture); } @@ -315,7 +315,7 @@ internal static string ksRepairingMorphBundleFromSense { /// /// Looks up a localized string similar to This utility attempts to fix various errors in a FieldWorks project file. The project must not be open, and must be in the fwdata (XML) format.. /// - internal static string ksThisUtilityAttemptsTo { + public static string ksThisUtilityAttemptsTo { get { return ResourceManager.GetString("ksThisUtilityAttemptsTo", resourceCulture); } @@ -324,7 +324,7 @@ internal static string ksThisUtilityAttemptsTo { /// /// Looks up a localized string similar to Removing unused rt element. (class='{0}', guid='{1}').. /// - internal static string ksUnusedRtElement { + public static string ksUnusedRtElement { get { return ResourceManager.GetString("ksUnusedRtElement", resourceCulture); } @@ -333,7 +333,7 @@ internal static string ksUnusedRtElement { /// /// Looks up a localized string similar to Use this when a project is throwing exceptions such as "Key 62c22e20-8d8a-42bf-a54c-e21529284f2d not found in identity map...", and you suspect the data has been corrupted somehow.. /// - internal static string ksUseThisWhen { + public static string ksUseThisWhen { get { return ResourceManager.GetString("ksUseThisWhen", resourceCulture); }