Remove I18nService, migrate to renamed ServerLocalisationService (#433)

* Remove I18nService, migrate to renamed ServerLocalisationService

* Revert VS fuckup

* Update using

* Remove unused parameter, update comment

* Fix develop branch not building
This commit is contained in:
Jesse
2025-06-28 20:08:42 +02:00
committed by GitHub
parent 1c83014ed2
commit 5686f4a486
98 changed files with 771 additions and 706 deletions
@@ -33,8 +33,7 @@ public class InventoryController(
FenceService _fenceService,
RagfairOfferService _ragfairOfferService,
MapMarkerService _mapMarkerService,
LocalisationService _localisationService,
PlayerService _playerService,
ServerLocalisationService _serverLocalisationService,
LootGenerator _lootGenerator,
EventOutputHolder _eventOutputHolder,
ICloner _cloner
@@ -139,7 +138,7 @@ public class InventoryController(
{
_httpResponseUtil.AppendErrorToOutput(
output,
_localisationService.GetText("inventory-edit_trader_item"),
_serverLocalisationService.GetText("inventory-edit_trader_item"),
(BackendErrorCodes)228
);
}
@@ -311,7 +310,7 @@ public class InventoryController(
if (!item.Key)
{
_logger.Warning(
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-unable_to_inspect_item_not_in_db",
itemTpl
)
@@ -496,7 +495,7 @@ public class InventoryController(
if (inventoryItem is null)
{
_logger.Error(
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-unable_to_sort_inventory_restart_game",
change.Id
)
@@ -563,7 +562,7 @@ public class InventoryController(
catch
{
_logger.Error(
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-examine_item_does_not_exist",
request.Item
)
@@ -654,7 +653,7 @@ public class InventoryController(
// Unable to find item in database or ragfair
_logger.Warning(
_localisationService.GetText("inventory-unable_to_find_item", request.Item)
_serverLocalisationService.GetText("inventory-unable_to_find_item", request.Item)
);
}
@@ -793,7 +792,7 @@ public class InventoryController(
{
_itemHelper.AddUpdObjectToItem(
itemToToggle,
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-item_to_toggle_missing_upd",
itemToToggle.Id
)
@@ -805,7 +804,10 @@ public class InventoryController(
}
_logger.Warning(
_localisationService.GetText("inventory-unable_to_toggle_item_not_found", request.Item)
_serverLocalisationService.GetText(
"inventory-unable_to_toggle_item_not_found",
request.Item
)
);
return new ItemEventRouterResponse { Warnings = [] };
@@ -840,7 +842,7 @@ public class InventoryController(
{
// Item not found
_logger.Warning(
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-unable_to_fold_item_not_found_in_inventory",
request.Item
)
@@ -883,7 +885,7 @@ public class InventoryController(
if (itemOne is null)
{
_logger.Error(
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-unable_to_find_item_to_swap",
new { item1Id = request.Item, item2Id = request.Item2 }
)
@@ -894,7 +896,7 @@ public class InventoryController(
if (itemTwo is null)
{
_logger.Error(
_localisationService.GetText(
_serverLocalisationService.GetText(
"inventory-unable_to_find_item_to_swap",
new { item1Id = request.Item2, item2Id = request.Item }
)