From f65a7360e2a945b77d8fcbbb13dd70d04c5fd646 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 26 Oct 2025 03:13:16 +0800 Subject: [PATCH] :globe_with_meridians: Add missing gift claimed localization --- .../Localization/NotificationResource.Designer.cs | 12 ++++++++++++ .../Resources/Localization/NotificationResource.resx | 6 ++++++ .../Localization/NotificationResource.zh-hans.resx | 6 ++++++ DysonNetwork.Pass/Wallet/SubscriptionService.cs | 2 +- DysonNetwork.sln.DotSettings.user | 2 +- 5 files changed, 26 insertions(+), 2 deletions(-) diff --git a/DysonNetwork.Pass/Resources/Localization/NotificationResource.Designer.cs b/DysonNetwork.Pass/Resources/Localization/NotificationResource.Designer.cs index 415557b..113661e 100644 --- a/DysonNetwork.Pass/Resources/Localization/NotificationResource.Designer.cs +++ b/DysonNetwork.Pass/Resources/Localization/NotificationResource.Designer.cs @@ -212,5 +212,17 @@ namespace DysonNetwork.Sphere.Resources.Localization { return ResourceManager.GetString("TransactionNewBodyMinus", resourceCulture); } } + + internal static string GiftClaimedTitle { + get { + return ResourceManager.GetString("GiftClaimedTitle", resourceCulture); + } + } + + internal static string GiftClaimedBody { + get { + return ResourceManager.GetString("GiftClaimedBody", resourceCulture); + } + } } } diff --git a/DysonNetwork.Pass/Resources/Localization/NotificationResource.resx b/DysonNetwork.Pass/Resources/Localization/NotificationResource.resx index 24a0232..62bbfe8 100644 --- a/DysonNetwork.Pass/Resources/Localization/NotificationResource.resx +++ b/DysonNetwork.Pass/Resources/Localization/NotificationResource.resx @@ -107,4 +107,10 @@ {0} {1} removed from your wallet + + Someone claimed your gift + + + Your gift {0} has been claimed by {1} + \ No newline at end of file diff --git a/DysonNetwork.Pass/Resources/Localization/NotificationResource.zh-hans.resx b/DysonNetwork.Pass/Resources/Localization/NotificationResource.zh-hans.resx index 695454d..85e58fa 100644 --- a/DysonNetwork.Pass/Resources/Localization/NotificationResource.zh-hans.resx +++ b/DysonNetwork.Pass/Resources/Localization/NotificationResource.zh-hans.resx @@ -99,4 +99,10 @@ {0} {1} 从您的钱包移除 + + 有人领取了你的礼物 + + + 你的礼物 {0} 已被 {1} 领取 + \ No newline at end of file diff --git a/DysonNetwork.Pass/Wallet/SubscriptionService.cs b/DysonNetwork.Pass/Wallet/SubscriptionService.cs index 9e3cfbb..7da7c20 100644 --- a/DysonNetwork.Pass/Wallet/SubscriptionService.cs +++ b/DysonNetwork.Pass/Wallet/SubscriptionService.cs @@ -983,7 +983,7 @@ public class SubscriptionService( { Topic = "gifts.claimed", Title = localizer["GiftClaimedTitle"], - Body = localizer["GiftClaimedBody", humanReadableName, redeemer.Name ?? redeemer.Id.ToString()], + Body = localizer["GiftClaimedBody", humanReadableName, redeemer.Name], Meta = GrpcTypeHelper.ConvertObjectToByteString(new Dictionary { ["gift_id"] = gift.Id.ToString(), diff --git a/DysonNetwork.sln.DotSettings.user b/DysonNetwork.sln.DotSettings.user index 26a0194..00fc01b 100644 --- a/DysonNetwork.sln.DotSettings.user +++ b/DysonNetwork.sln.DotSettings.user @@ -174,7 +174,7 @@ False - False + True False