Skip to content

Commit

Permalink
refactor(ItemPorts): Update i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
octfx committed Apr 1, 2024
1 parent 1d534c0 commit ead88e8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
4 changes: 2 additions & 2 deletions ItemPorts/ItemPorts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function methodtable.out( self )
title = mw.ustring.format( '[[%s]]', port.equipped_name )
end
else
title = 'No item equipped'
title = translate( 'msg_no_item_equipped' )
end

local portHtml = mw.html.create( 'div' ):addClass( 'template-itemPort' )
Expand Down Expand Up @@ -156,7 +156,7 @@ end
--- Parser call for generating the table
function ItemPorts.outputTable( frame )
local args = require( 'Module:Arguments' ).getArgs( frame )
local page = args[ 1 ] or mw.title.getCurrentTitle().rootText
local page = args[ 1 ] or mw.title.getCurrentTitle().text

local instance = ItemPorts:new( page )
local out = instance:out()
Expand Down
29 changes: 18 additions & 11 deletions ItemPorts/i18n.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,77 +19,77 @@
[
"SMW_ItemPortName",
{
"de": "Item port name",
"de": "Itemport Name",
"en": "Item port name"
}
],
[
"SMW_ItemPortDisplayName",
{
"de": "Item port display name",
"de": "Itemport angezeigter Name",
"en": "Item port display name"
}
],
[
"SMW_ItemPortMinimumSize",
{
"de": "Item port minimum size",
"de": "Itemport Minimalgröße",
"en": "Item port minimum size"
}
],
[
"SMW_ItemPortMaximumSize",
{
"de": "Item port maximum size",
"de": "Itemport Maximalgröße",
"en": "Item port maximum size"
}
],
[
"SMW_EquippedItemName",
{
"de": "Equipped item name",
"de": "Ausgerüstetes Item Name",
"en": "Equipped item name"
}
],
[
"SMW_EquippedItemUUID",
{
"de": "Equipped item UUID",
"de": "Ausgerüstetes Item UUID",
"en": "Equipped item UUID"
}
],
[
"item_placeholder",
{
"de": "Placeholder item",
"de": "Platzhalter Item",
"en": "Placeholder item"
}
],
[
"itemPort_BAR1",
{
"de": "Barrel attachment 1",
"de": "Laufaufsatz 1",
"en": "Barrel attachment 1"
}
],
[
"itemPort_MEC",
{
"de": "Firing mechanism attachment",
"de": "Feuermechanismus",
"en": "Firing mechanism attachment"
}
],
[
"itemPort_POW",
{
"de": "Power array attachment",
"de": "Stromversorgungssystem",
"en": "Power array attachment"
}
],
[
"itemPort_VEN",
{
"de": "Ventilation attachment",
"de": "Lüftung",
"en": "Ventilation attachment"
}
],
Expand Down Expand Up @@ -3711,6 +3711,13 @@
"en": "No item ports found on '''%s'''.",
"de": "Keine Ports an Item '''%s''' gefunden."
}
],
[
"msg_no_item_equipped",
{
"en": "No item equipped",
"de": "Kein Item ausgerüstet"
}
]
]
}

0 comments on commit ead88e8

Please sign in to comment.