如何改变“运输信息"?在注册和结帐过程中使用magento标签 [英] How to change "shipping information" label in magento while registration and checkout process
问题描述
我想将账单信息"标签文本更改为发运和账单信息".我尝试使用Mage_Checkout.csv,但这没有帮助.
I want to change "Billing Information" label text to "Shipping and Billing Information". I tried using Mage_Checkout.csv but this didn't help.
请提出解决方案!
谢谢!
推荐答案
在主题中使用翻译文件translate.csv . 出于演示目的,我将使用默认包(app/design/frontend/default/default)中的默认主题.您可以将以下步骤应用于您的自定义主题.
Use the translation file translate.csv in your theme. For demonstration purposes, I will use the default theme in the default package (app/design/frontend/default/default). You may apply the steps below to your custom theme.
如何使用翻译文件更改标签:
How to change the label using the translation file:
- 打开app/design/frontend/default/default/locale/en_US/translate.csv
-
添加新行:
- Open app/design/frontend/default/default/locale/en_US/translate.csv
Add a new line:
"Billing Information","Shipping and Billing Information"
验证您的商店视图使用了正确的语言环境("en_US").
Verify that your Store View uses the correct locale ("en_US").
登录到Magento后端,然后导航到系统">配置">常规">常规">区域设置选项"选项卡.必须将语言环境"设置为英语(美国)"(通过直接将其设置为特定的商店视图或继承自网站/默认配置).
Log in to the Magento backend and navigate to System > Configuration > General > General > Tab "Locale Options". The "Locale" has to be set to "English (United States)" (either by directly setting it for the particular Store View or by inheriting from the Website / Default configuration).
验证您的商店视图使用默认/默认目录.可以在系统>配置>常规>设计中进行设置.默认情况下,使用默认/默认".
Verify that your Store View uses the default/default directory. This can be set in System > Configuration > General > Design. By default, "default/default" is used.
刷新或停用缓存.
导航到结帐页面.标签文本现在应为运输和账单信息".
Navigate to the checkout page. The label text now should be "Shipping and Billing Information".
如何仅更改Mage_Checkout文本的文本:
How to change the text only for Mage_Checkout texts:
-
如果只想在使用结帐翻译帮助器的这些位置更改账单信息",则可以按以下方式修改translate.csv中的行:
If you want to change "Billing Information" only in these places where the checkout translation helper is used, you can modify the line in translate.csv like this:
"Mage_Checkout::Billing Information","Shipping and Billing Information"
这篇关于如何改变“运输信息"?在注册和结帐过程中使用magento标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!