Skip to content

Commit

Permalink
fix: Fixes bad localized messages (#1722)
Browse files Browse the repository at this point in the history
### Summary
- Apparently affixes and other old packets do not support unicode, so we can't translate them. On OSI they use English for quite a bit.
  • Loading branch information
kamronbatman authored Apr 6, 2024
1 parent 6cb18f8 commit c63bf84
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Projects/UOContent/Items/Special/Holiday/SnowStatue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public InternalGump(Mobile from, SnowStatueDeed deed) : base(100, 200)
AddBackground(0, 0, 360, 225, 0xA28);

AddPage(1);
AddLabel(45, 15, 0, Localization.GetText(1156487, from.Language)); // Select One:
AddHtmlLocalized(45, 15, 200, 20, 1156487); // Select One:

AddItem(35, 75, 0x456E);
AddButton(65, 50, 0x845, 0x846, 1);
Expand Down
4 changes: 2 additions & 2 deletions Projects/UOContent/Spells/First/CreateFood.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ public override void OnCast()

if (Caster.NetState != null)
{
var foodName = Localization.GetText(food.LabelNumber, Caster.Language);
// Not translated to the casters language because affixes are ascii only
var foodName = Localization.GetText(food.LabelNumber);

// Note: On OSI, the food name is not localized.
// You magically create food in your backpack:
Caster.SendLocalizedMessage(1042695, true, $" {foodName}");
}
Expand Down

0 comments on commit c63bf84

Please sign in to comment.