在views app/views/listings/show.haml中,我有以下代码:
- 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在“产品展示”页面上,它显示文本:
最小订单(数量)
我怎样才能把这篇文章改成“最小订单”呢?
发布于 2017-04-01 13:10:33
根据您自定义Sharetribe的程度,您应该在/config/locales/en.yml中的listings.show.price.per_quantity_unit键下找到这个字符串。
with_quantity_text以这里结束,并使用I18n获取字符串。YMMV,如果你在这里定制了任何一个帮手。
https://stackoverflow.com/questions/43155584
复制相似问题