如何更改 Magento 中的列表语言

发布于 2024-10-01 23:51:48 字数 142 浏览 3 评论 0原文

谁知道哪里可以找到价格选择的翻译文件(见图) 我无法在前端内联翻译中更改此

alt text

任何帮助将不胜感激。

谢谢。

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

alt text

Any help would be appreciated.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

辞旧 2024-10-08 23:51:48

价格和其他排序属性标题可以在 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 file app/locale/[your_locale]/Mage_Catalog.csv, just search for Position text inside of it, and change value in the second column.

城歌 2024-10-08 23:51:48

可能已经有一组翻译供您下载。首先转至 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.

缪败 2024-10-08 23:51:48

您可以在此文件中找到填充选择框的循环:

app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml

// line 81
...
foreach($this->getAvailableOrders() as $_key=>$_order): 
...

这是设置可用订单列表的位置

// Line 424
app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php

从那里,您可以能够追踪翻译。

希望这有帮助!

更新:

此处获取排序依据列表
该值似乎在属性配置

app/code/core/Mage/Catalog/Model/Config.php中

// Line 339 in Mage_Catalog_Model_Config::getAttributeUsedForSortByArray()

You can find the loop that fill the select box in this file:

app/design/frontend/base/default/template/catalog/product/list/toolbar.phtml

// line 81
...
foreach($this->getAvailableOrders() as $_key=>$_order): 
...

Here is where the list of available order is set

// Line 424
app/code/core/Mage/Catalog/Block/Product/List/Toolbar.php

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

// Line 339 in Mage_Catalog_Model_Config::getAttributeUsedForSortByArray()
等你爱我 2024-10-08 23:51:48

我认为您必须编辑数据库:

UPDATE `eav_attribute` 
SET `frontend_label` = 'Reihenfolge' 
WHERE `eav_attribute`.`attribute_code` ='position';

在这里您可以将 Reihenfolge 更改为您喜欢的文本。

I think you have to edit the database:

UPDATE `eav_attribute` 
SET `frontend_label` = 'Reihenfolge' 
WHERE `eav_attribute`.`attribute_code` ='position';

Here you can change Reihenfolge to your preferred text.

吃素的狼 2024-10-08 23:51:48

对于可以在主题的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"

内心激荡 2024-10-08 23:51:48

要使用翻译,请将模板 app/design/frontend/[theme]/template/catalog/product/list/toolbar.phtml 更改

<?php echo $this->__($_order) ?>

<?php if ($_key=='position'): echo $this->__('Position'); else: echo $this->__($_order); endif; ?>

并添加到 [theme]/local/[language]/translate.csv

"Position","What you want"

to use the translation, change the template app/design/frontend/[theme]/template/catalog/product/list/toolbar.phtml

<?php echo $this->__($_order) ?>

to

<?php if ($_key=='position'): echo $this->__('Position'); else: echo $this->__($_order); endif; ?>

And add in [theme]/local/[language]/translate.csv

"Position","What you want"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文