diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/AdminMenuSignin.cs b/src/OrchardCore.Modules/OrchardCore.Twitter/AdminMenuSignin.cs index 4b901c40c86..1add9f36949 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/AdminMenuSignin.cs +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/AdminMenuSignin.cs @@ -29,9 +29,9 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder) builder .Add(S["Security"], security => security .Add(S["Authentication"], authentication => authentication - .Add(S["Sign in with X"], S["Sign in with X"].PrefixPosition(), x => x - .AddClass("x") - .Id("x") + .Add(S["Sign in with X (Twitter)"], S["Sign in with X (Twitter)"].PrefixPosition(), twitter => twitter + .AddClass("twitter") + .Id("twitter") .Action("Index", "Admin", _routeValues) .Permission(Permissions.ManageTwitterSignin) .LocalNav()) @@ -67,8 +67,8 @@ public Task BuildNavigationAsync(string name, NavigationBuilder builder) builder .Add(S["Configuration"], configuration => configuration .Add(S["Settings"], settings => settings - .Add(S["X"], S["X"].PrefixPosition(), twitter => twitter - .AddClass("x").Id("x") + .Add(S["X (Twitter)"], S["X (Twitter)"].PrefixPosition(), twitter => twitter + .AddClass("twitter").Id("twitter") .Action("Index", "Admin", _routeValues) .Permission(Permissions.ManageTwitter) .LocalNav() diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Manifest.cs b/src/OrchardCore.Modules/OrchardCore.Twitter/Manifest.cs index 4b6859ee54d..338b41b6184 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Manifest.cs +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Manifest.cs @@ -6,20 +6,20 @@ Author = ManifestConstants.OrchardCoreTeam, Website = ManifestConstants.OrchardCoreWebsite, Version = ManifestConstants.OrchardCoreVersion, - Category = "X" + Category = "X (Twitter)" )] [assembly: Feature( Id = TwitterConstants.Features.Twitter, Name = "X (Twitter) Integration", - Category = "X", - Description = "Provides a TwitterClient and Workflow Activities to integrate with X" + Category = "X (Twitter)", + Description = "Provides a TwitterClient and Workflow Activities to integrate with X (Twitter)" )] [assembly: Feature( Id = TwitterConstants.Features.Signin, Name = "Sign in with X (Twitter)", - Category = "X", - Description = "Authenticates users with their X Account.", + Category = "X (Twitter)", + Description = "Authenticates users with their X (Twitter) Account.", Dependencies = [TwitterConstants.Features.Twitter] )] diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Permissions.cs b/src/OrchardCore.Modules/OrchardCore.Twitter/Permissions.cs index 3cb9d30bee5..3a746b6266f 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Permissions.cs +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Permissions.cs @@ -4,9 +4,9 @@ namespace OrchardCore.Twitter; public sealed class Permissions : IPermissionProvider { - public static readonly Permission ManageTwitter = new("ManageTwitter", "Manage Twitter settings"); + public static readonly Permission ManageTwitter = new("ManageTwitter", "Manage X (Twitter) settings"); - public static readonly Permission ManageTwitterSignin = new("ManageTwitterSignin", "Manage Sign in with Twitter settings"); + public static readonly Permission ManageTwitterSignin = new("ManageTwitterSignin", "Manage Sign in with X (Twitter) settings"); private readonly IEnumerable _allPermissions = [ diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Services/TwitterSettingsConfiguration.cs b/src/OrchardCore.Modules/OrchardCore.Twitter/Services/TwitterSettingsConfiguration.cs index d40cbd6ebe4..2169685373d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Services/TwitterSettingsConfiguration.cs +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Services/TwitterSettingsConfiguration.cs @@ -45,7 +45,7 @@ private async Task GetTwitterSettingsAsync() { if (_shellSettings.IsRunning()) { - _logger.LogWarning("Twitter is not correctly configured."); + _logger.LogWarning("X (Twitter) is not correctly configured."); } return null; diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Signin/Configuration/TwitterOptionsConfiguration.cs b/src/OrchardCore.Modules/OrchardCore.Twitter/Signin/Configuration/TwitterOptionsConfiguration.cs index 1c8f83784f1..f24f9b4ddd3 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Signin/Configuration/TwitterOptionsConfiguration.cs +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Signin/Configuration/TwitterOptionsConfiguration.cs @@ -59,14 +59,14 @@ public void Configure(AuthenticationOptions options) if (string.IsNullOrWhiteSpace(settings.Item1.ConsumerKey) || string.IsNullOrWhiteSpace(settings.Item1.ConsumerSecret)) { - _logger.LogWarning("The Twitter login provider is enabled but not configured."); + _logger.LogWarning("The X (Twitter) login provider is enabled but not configured."); return; } options.AddScheme(TwitterDefaults.AuthenticationScheme, builder => { - builder.DisplayName = "Twitter"; + builder.DisplayName = "X (Twitter)"; builder.HandlerType = typeof(TwitterHandler); }); } @@ -91,7 +91,7 @@ public void Configure(string name, TwitterOptions options) } catch { - _logger.LogError("The Twitter Consumer Secret could not be decrypted. It may have been encrypted using a different key."); + _logger.LogError("The X (Twitter) Consumer Secret could not be decrypted. It may have been encrypted using a different key."); } if (settings.Item2.CallbackPath.HasValue) @@ -114,7 +114,7 @@ private async Task> GetSettingsAsy { if (_shellSettings.IsRunning()) { - _logger.LogWarning("Integration with Twitter is not correctly configured."); + _logger.LogWarning("Integration with X (Twitter) is not correctly configured."); } return null; diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Design.cshtml b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Design.cshtml index 0cea65299ce..a615694bcbb 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Design.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Design.cshtml @@ -5,5 +5,5 @@ @model ActivityViewModel
-

@Model.Activity.GetTitleOrDefault(() => T["Update X Status"])

+

@Model.Activity.GetTitleOrDefault(() => T["Update X (Twitter) Status"])

diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Edit.cshtml index 88126bb1d84..aac0c9ddfad 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Edit.cshtml @@ -3,7 +3,7 @@ @model UpdateTwitterStatusTaskViewModel
- + @T["The status text of the post."] diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Thumbnail.cshtml b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Thumbnail.cshtml index d61af88ad37..cdeef93a38b 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Thumbnail.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/Items/UpdateTwitterStatusTask.Fields.Thumbnail.cshtml @@ -1,2 +1,2 @@ -

@T["Update X Status"]

+

@T["Update X (Twitter) Status"]

@T["Create a post"]

diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/NavigationItemText-x.Id.cshtml b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/NavigationItemText-twitter.Id.cshtml similarity index 50% rename from src/OrchardCore.Modules/OrchardCore.Twitter/Views/NavigationItemText-x.Id.cshtml rename to src/OrchardCore.Modules/OrchardCore.Twitter/Views/NavigationItemText-twitter.Id.cshtml index 34bcc9e92da..f343d0a4bb5 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/NavigationItemText-x.Id.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/NavigationItemText-twitter.Id.cshtml @@ -1 +1 @@ -@T["X"] +@T["X (Twitter)"] diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSettings.Edit.cshtml index 5793b1707f0..3530c701c9c 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSettings.Edit.cshtml @@ -3,7 +3,7 @@ @if (Model.HasDecryptionError) @@ -11,14 +11,14 @@

@T["An error occurred while decrypting a setting. Please apply and save."]

} -

@T["X Integration Settings"]

+

@T["X (Twitter) Integration Settings"]

- @T["The API key defined in the Keys and tokens tab of twitter app dashboard."] + @T["The API key defined in the Keys and tokens tab of X (Twitter) app dashboard."]
@@ -27,7 +27,7 @@ - @T["The API secret defined in the Keys and tokens tab of twitter app dashboard."] + @T["The API secret defined in the Keys and tokens tab of X (Twitter) app dashboard."]
@@ -36,7 +36,7 @@ - @T["The Access Token defined in the Keys and tokens tab of twitter app dashboard."] + @T["The Access Token defined in the Keys and tokens tab of X (Twitter) app dashboard."] @@ -45,6 +45,6 @@ - @T["The Access Token Secret in the Keys and tokens tab of twitter app dashboard."] + @T["The Access Token Secret in the Keys and tokens tab of X (Twitter) app dashboard."] diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSigninSettings.Edit.cshtml b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSigninSettings.Edit.cshtml index 8eb987c506d..5df8f72ef02 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSigninSettings.Edit.cshtml +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Views/TwitterSigninSettings.Edit.cshtml @@ -3,10 +3,10 @@ -

@T["Sign in with X Settings"]

+

@T["Sign in with X (Twitter) Settings"]

diff --git a/src/OrchardCore.Modules/OrchardCore.Twitter/Workflows/Activities/UpdateTwitterStatusTask.cs b/src/OrchardCore.Modules/OrchardCore.Twitter/Workflows/Activities/UpdateTwitterStatusTask.cs index 6d3c27f0099..429223c56e8 100644 --- a/src/OrchardCore.Modules/OrchardCore.Twitter/Workflows/Activities/UpdateTwitterStatusTask.cs +++ b/src/OrchardCore.Modules/OrchardCore.Twitter/Workflows/Activities/UpdateTwitterStatusTask.cs @@ -24,7 +24,7 @@ IStringLocalizer localizer S = localizer; } - public override LocalizedString DisplayText => S["Update X Status Task"]; + public override LocalizedString DisplayText => S["Update X (Twitter) Status Task"]; // The category to which this activity belongs. The activity picker groups activities by this category. public override LocalizedString Category => S["Social"];