如何更改 Magento 中的列表语言
谁知道哪里可以找到价格选择的翻译文件(见图) 我无法在前端内联翻译中更改此
任何帮助将不胜感激。
谢谢。
Who knows where to find the translation files for the price selections (see picture)
I can't change this in the front end inline translation
Any help would be appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
价格和其他排序属性标题可以在 Magento 管理面板中的
目录 -> 中更改属性->管理属性->编辑属性->管理标签/选项
,您可以在其中指定每个商店视图的属性标题。只有一个例外...它是
Position
选项,它是按数组排序的硬编码值。但是您可以通过编辑区域设置文件app/locale/[your_locale]/Mage_Catalog.csv
来更改此值,只需在其中搜索Position
文本,然后更改第二栏。Price and other sorting attributes title can be changed in Magento Admin Panel in
Catalog -> Attributes -> Manage Attributes -> Edit Attribute -> Manage Labels / Options
where you can specify the attribute title for each store view.There is only one exception... It is
Position
option, that is a hard-coded value in sort by array. But you can change this value by editing locale fileapp/locale/[your_locale]/Mage_Catalog.csv
, just search forPosition
text inside of it, and change value in the second column.可能已经有一组翻译供您下载。首先转至 http://www.magentocommerce.com/translations,然后单击“选择”语言,然后单击“打包”。将下载的文件解压到您的 magento 目录中,它会将大量 CSV 文件放置在需要放置的位置。您可以使用任何电子表格程序自行编辑这些内容。导入或调整这些文件后,您可能需要清除缓存。
There may already be a set of translations for you to download. Start by going to http://www.magentocommerce.com/translations, then click "Select" for your language, then click "Package". Unzip the download into your magento directory and it will place a whole lot of CSV files where they need to go. You can edit these yourself with any spreadsheet program. You might need to clear the cache after importing or adjusting these files.
您可以在此文件中找到填充选择框的循环:
app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml
这是设置可用订单列表的位置
从那里,您可以能够追踪翻译。
希望这有帮助!
更新:
此处获取排序依据列表
该值似乎在属性配置
app/code/core/Mage/Catalog/Model/Config.php中
You can find the loop that fill the select box in this file:
app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml
Here is where the list of available order is set
From there, you could be able to trace the translation.
Hope this help!
Update:
Here the list of sort by is fetched
The value seems to be in the attributes configuration
app/code/core/Mage/Catalog/Model/Config.php
我认为您必须编辑数据库:
在这里您可以将
Reihenfolge
更改为您喜欢的文本。I think you have to edit the database:
Here you can change
Reihenfolge
to your preferred text.对于可以在主题的translate.csv 文件中翻译的位置,只需添加一个条目,如下所示。
“Mage_Catalog::位置”,“流行”
For position you can translate in your theme's translate.csv file simply add an entry like so.
"Mage_Catalog::Position", "Popular"
要使用翻译,请将模板 app/design/frontend/[theme]/template/catalog/product/list/toolbar.phtml 更改
为
并添加到 [theme]/local/[language]/translate.csv
to use the translation, change the template app/design/frontend/[theme]/template/catalog/product/list/toolbar.phtml
to
And add in [theme]/local/[language]/translate.csv