首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sharetribe:将“最小订单(数量)”改为“最小订单”

Sharetribe:将“最小订单(数量)”改为“最小订单”
EN

Stack Overflow用户
提问于 2017-04-01 10:18:19
回答 1查看 60关注 0票数 2

views app/views/listings/show.haml中,我有以下代码:

代码语言:javascript
复制
- 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

在“产品展示”页面上,它显示文本:

最小订单(数量)

我怎样才能把这篇文章改成“最小订单”呢?

EN

回答 1

Stack Overflow用户

发布于 2017-04-01 13:10:33

根据您自定义Sharetribe的程度,您应该在/config/locales/en.yml中的listings.show.price.per_quantity_unit键下找到这个字符串。

with_quantity_text这里结束,并使用I18n获取字符串。YMMV,如果你在这里定制了任何一个帮手。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43155584

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档