首页 文章

Magento 2 - 翻译附加的PDF

提问于
浏览
1

我尝试通过magento 2中的发票翻译我附加的pdf . 通常我可以使用i18n组件翻译所有商店网站(基于html) . 但对于invoice-pdf,不会使用翻译 . 我还尝试将i18n内容(* _ * .csv文件,例如en_US.csv)复制到:

  • vendor / zendframework / zend-i18n

  • vendor / magento / module-sales / i18n

并且在以下几条路径中:

  • vendor / zendframework / mvc / src

  • vendor / magento / module-sales / model / order

所以问题是:我如何翻译Magento2生成的PDF?

1 回答

  • 0

    尝试添加将翻译字符串添加到主题文件中:

    app/design/frontend/vendorname/themename/i18n/en_US.csv
    

    像这样 :

    "Grand Total","Big Total"
    

    注意:请注意某些字符串末尾的空格

相关问题