Oh right, make the item kind badges translatable!

Also make it an abbr, which means we need to override the default
text-decoration on it
This commit is contained in:
Emi Matchu 2024-01-21 05:41:55 -08:00
parent abe2747b93
commit 77d88e50a6
6 changed files with 17 additions and 10 deletions

View file

@ -40,6 +40,7 @@
padding: .25em .5em
border-radius: .25em
cursor: help
text-decoration: none
font-weight: bold
line-height: 1

View file

@ -8,14 +8,14 @@
%h2.item-name= item.name
%nav.item-links
- if item.nc?
.item-kind{'data-type' => 'nc', title: 'Purchaseable with Neocash'}
NC
%abbr.item-kind{'data-type' => 'nc', title: t('items.show.item_kinds.nc.description')}
= t('items.show.item_kinds.nc.label')
- elsif item.pb?
.item-kind{'data-type' => 'pb', title: 'Only obtainable via paintbrush'}
PB
%abbr.item-kind{'data-type' => 'pb', title: t('items.show.item_kinds.pb.description')}
= t('items.show.item_kinds.pb.label')
- else
.item-kind{'data-type' => 'np', title: 'Purchaseable with Neopoints'}
NP
%abbr.item-kind{'data-type' => 'np', title: t('items.show.item_kinds.np.description')}
= t('items.show.item_kinds.np.label')
= link_to t('items.show.resources.jn_items'), jn_items_url_for(item)
- if item.nc_trade_value

View file

@ -270,7 +270,6 @@ en-MEEP:
description: You want this meepit
show:
rarity: Meepity
resources:
jn_items: JN Meepits
shop_wizard: Meep Wizard

View file

@ -298,7 +298,16 @@ en:
description: You want this item
show:
rarity: Rarity
item_kinds:
nc:
label: NC
description: Purchaseable with Neocash
np:
label: NP
description: Purchaseable with Neopoints
pb:
label: PB
description: Only obtainable via paintbrush
resources:
jn_items: JN Items
owls: "Owls: %{value}"

View file

@ -209,7 +209,6 @@ es:
abbr: Buscado
description: Quieres este objeto
show:
rarity: Rareza
resources:
jn_items: Objetos de JN
shop_wizard: Asistente de Tiendas

View file

@ -209,7 +209,6 @@ pt:
abbr: Procura
description: Você procura esse item
show:
rarity: Raridade
resources:
jn_items: JN Itens
shop_wizard: Mágico Pecincheiro