diff --git a/components/transfer/commons/transfer_row.lua b/components/transfer/commons/transfer_row.lua index 22db5adcf4f..957a4544d37 100644 --- a/components/transfer/commons/transfer_row.lua +++ b/components/transfer/commons/transfer_row.lua @@ -234,7 +234,7 @@ function TransferRow:_convertToTransferStructure(data) return Table.merge(self.baseData, { player = player.pageIsResolved and player.pageName or mw.ext.TeamLiquidIntegration.resolve_redirect(player.pageName), - nationality = Flags.CountryCode(player.flag, 'alpha3'), + nationality = Flags.CountryName(player.flag), role1 = self.baseData.role1 or self.baseData.fromteam and subs[1] and 'Substitute' or nil, role2 = self.baseData.role2 or self.baseData.toteam and subs[2] and 'Substitute' or nil, reference = self.references[data.index] or self.references.all or {reference1 = ''}, diff --git a/components/transfer/commons/transfer_row_display.lua b/components/transfer/commons/transfer_row_display.lua index 4dae54f06a0..38fd5abdc01 100644 --- a/components/transfer/commons/transfer_row_display.lua +++ b/components/transfer/commons/transfer_row_display.lua @@ -18,7 +18,7 @@ local Table = require('Module:Table') local IconModule = Lua.requireIfExists('Module:PositionIcon/data', {loadData = true}) local Info = Lua.import('Module:Info', {loadData = true}) local Platform = Lua.import('Module:Platform') -local PlayerDisplay = Lua.requireIfExists('Module:Player/Display/Custom') +local PlayerDisplay = Lua.import('Module:Player/Display/Custom') local TransferRef = Lua.import('Module:Transfer/References') local HAS_PLATFORM_ICONS = Lua.moduleExists('Module:Platform/data') diff --git a/spec/transfer_spec.lua b/spec/transfer_spec.lua index 668a046d4c9..2d385070985 100644 --- a/spec/transfer_spec.lua +++ b/spec/transfer_spec.lua @@ -37,7 +37,7 @@ insulate('Transfer', function() { objectname = 'transfer_2024-10-11_000000', player = 'Supr', - nationality = 'usa', + nationality = 'United States', fromteam = '', --'Team Liquid', toteam = '', --'mousesports', fromteamtemplate = '', --'team liquid 2024', @@ -85,7 +85,7 @@ insulate('Transfer', function() { objectname = 'transfer_2024-10-11_000000', player = 'Clem', - nationality = 'fra', + nationality = 'France', fromteam = '', --'Team Liquid', toteam = '', --'mousesports', fromteamtemplate = '', --'team liquid 2024',