1
0
Fork 0
forked from OpenNeo/impress

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 padding: .25em .5em
border-radius: .25em border-radius: .25em
cursor: help cursor: help
text-decoration: none
font-weight: bold font-weight: bold
line-height: 1 line-height: 1

View file

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

View file

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

View file

@ -298,7 +298,16 @@ en:
description: You want this item description: You want this item
show: 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: resources:
jn_items: JN Items jn_items: JN Items
owls: "Owls: %{value}" owls: "Owls: %{value}"

View file

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

View file

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