2017-04-01 88 views
2

views app/views/listings/show.haml,我有这样的代码:Sharetribe:改变“最小订购量”到“最小订单”

- if @listing.price 
    .row 
    .col-12 
     .listing-price 
     %span.listing-price-amount 
      = humanized_money_with_symbol(@listing.price).upcase 
     - with_quantity_text(@current_community, @listing) do |text| 
      %span.listing-price-quantity 
      = text 

在产品展示页面,它显示的文字:

最小起订量(数量)

如何将此文字更改为“最小订单”?

+0

你的'with_quantity_text'辅助方法是怎样的?你的应用使用'I18n'吗? – spickermann

回答

0

根据您定制的Sharetribe的数量,您应该在/config/locales/en.yml的密钥listings.show.price.per_quantity_unit下找到该字符串。

with_quantity_text结束了here,并使用I18n来抓住字符串。 YMMV如果你已经在这里定制了任何助手。