如何在SAP Hybris电子商务店面中添加新语言(英国电子网站) [英] How to add a new language to SAP Hybris e- Commerce Storefront(Electronics UK Website)

查看:78
本文介绍了如何在SAP Hybris电子商务店面中添加新语言(英国电子网站)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的要求:我想在Electronic UK店面的语言下拉列表的页脚部分中添加另一种语言,例如西班牙语.选择西班牙语后,我们的网站内容应更改为西班牙语.

My requirement: I want to add one more language say Spanish in footer section of language drop down list on Electronic UK storefront. Once we select the Spanish language our website content should change to Spanish Language.

我已经阅读了与国际化和本地化有关的hybris Wiki,但找不到任何最佳解决方案.

I have read the hybris wiki related to Internationalization and Localization but I could not find any optimal solution.

请帮助我实现上述功能.

Please help me in this to achieve the above functionality.

推荐答案

打开hmc或后台.打开您当前的基本商店,导航到语言并将西班牙语添加到列表中.

Open hmc or backoffice. Open your current base store, navigate to languages and add spanish to the list.

请注意,该语言将没有数据,因此您的主页可能看起来很空白.

Notice, that there will be no data for the language, so your homepage might look very empty.

如果要为cms和产品内容添加本地化,​​则必须将语言添加到所有目录版本中.否则,您的语言将不会显示在cmscockpit/productcockpit中.

If you want to add localizations for the cms and product content, you have to add the language to all your catalog versions. Otherwise, your language wont show up in the cmscockpit/productcockpit.

您的首页上显示的所有用点号分隔的单词(例如"search.placeholder")都不会保存在数据库中.这些是春天的信息.它们保存在店面的文件中.在

Everything that appears on your homepage as words separated by dots (e.g. "search.placeholder") is not saved in the database. Those are spring messages. They are maintained in a file in your storefront. Find them in

/mystorefront/web/webroot/WEB-INF/messages/

/mystorefront/web/webroot/WEB-INF/messages/

按名称

  • base_XX.properties
  • theme-my-theme_XX.properties
  • site-my-site_XX.properties

其中XX是您的语言的等距代码(在您的情况下为es).如果文件不存在,请创建它.您可以使用英文文件(例如base_en.properties)作为模板,并将其值更改为西班牙语.当心,有很多!

where XX is the isocode of your language (in your case es). If the file does not exist, create it. You can use the english file (e.g. base_en.properties) as a template and change the values to spanish ones. Beware, there are a LOT!

可能会有更多陷阱,但是这些陷阱是我想到的.

There might be more pitfalls, but those are the ones, that came to my mind.

这篇关于如何在SAP Hybris电子商务店面中添加新语言(英国电子网站)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆