Skip to content

Commit fdbf20d

Browse files
committed
Add new attribution project
1 parent e65572e commit fdbf20d

File tree

6 files changed

+16
-8
lines changed

6 files changed

+16
-8
lines changed

Flow.Launcher.Localization.Shared/Attributes/EnumLocalizeAttribute.cs renamed to Flow.Launcher.Localization.Attributes/EnumLocalizeAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace Flow.Launcher.Localization.Shared.Attributes
3+
namespace Flow.Launcher.Localization.Attributes
44
{
55
/// <summary>
66
/// Attribute to mark an enum for localization.

Flow.Launcher.Localization.Shared/Attributes/EnumLocalizeKeyAttribute.cs renamed to Flow.Launcher.Localization.Attributes/EnumLocalizeKeyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace Flow.Launcher.Localization.Shared.Attributes
3+
namespace Flow.Launcher.Localization.Attributes
44
{
55
/// <summary>
66
/// Attribute to mark a localization key for an enum field.

Flow.Launcher.Localization.Shared/Attributes/EnumLocalizeValueAttribute.cs renamed to Flow.Launcher.Localization.Attributes/EnumLocalizeValueAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System;
22

3-
namespace Flow.Launcher.Localization.Shared.Attributes
3+
namespace Flow.Launcher.Localization.Attributes
44
{
55
/// <summary>
66
/// Attribute to mark a localization value for an enum field.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<RootNamespace>Flow.Launcher.Localization.Attribute</RootNamespace>
6+
</PropertyGroup>
7+
8+
</Project>

Flow.Launcher.Localization.Shared/Constants.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
using Flow.Launcher.Localization.Shared.Attributes;
2-
using System.Text.RegularExpressions;
1+
using System.Text.RegularExpressions;
32

43
namespace Flow.Launcher.Localization.Shared
54
{
@@ -22,9 +21,9 @@ public static class Constants
2221
public const string StringFormatMethodName = "Format";
2322
public const string StringFormatTypeName = "string";
2423
public const string EnumLocalizeClassSuffix = "Data";
25-
public const string EnumLocalizeAttributeName = nameof(EnumLocalizeAttribute);
26-
public const string EnumLocalizeKeyAttributeName = nameof(EnumLocalizeKeyAttribute);
27-
public const string EnumLocalizeValueAttributeName = nameof(EnumLocalizeValueAttribute);
24+
public const string EnumLocalizeAttributeName = "EnumLocalizeAttribute";
25+
public const string EnumLocalizeKeyAttributeName = "EnumLocalizeKeyAttribute";
26+
public const string EnumLocalizeValueAttributeName = "EnumLocalizeValueAttribute";
2827

2928
public static readonly Regex LanguagesXamlRegex = new Regex(@"\\Languages\\[^\\]+\.xaml$", RegexOptions.IgnoreCase);
3029
public static readonly string[] OldLocalizationClasses = { "IPublicAPI", "Internationalization" };

Flow.Launcher.Localization.slnx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<Solution>
22
<Project Path="Flow.Launcher.Localization.Analyzers/Flow.Launcher.Localization.Analyzers.csproj" />
3+
<Project Path="Flow.Launcher.Localization.Attributes/Flow.Launcher.Localization.Attributes.csproj" />
34
<Project Path="Flow.Launcher.Localization.Shared/Flow.Launcher.Localization.Shared.csproj" />
45
<Project Path="Flow.Launcher.Localization.SourceGenerators/Flow.Launcher.Localization.SourceGenerators.csproj" />
56
<Project Path="Flow.Launcher.Localization/Flow.Launcher.Localization.csproj" />

0 commit comments

Comments
 (0)