Get the App
SLTechnology News&Howtos  ›  Servers  › 

How does Hybris maintain versions of the same text based on different languages

Shulou Source: shulou.com Published: 2022-05-31 15:22:56 09月10日 Update

This article mainly explains "how to maintain the same text based on different languages in Hybris". Interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how Hybris maintains versions of the same text based on different languages.

I18n (which is derived from the middle number of characters between the first and last characters of the English word internationalization, I and nMagne18) is the abbreviation of "internationalization". For the program, it can display the corresponding interface according to different languages and regions without modifying the internal code.

SAP CRM

The text displayed on WebClient UI is not hard-coded, but is maintained in OTR (Online Text Repository), and the code is taken out through the following API.

List of all supported languages:

SAP UI5

The idea of UI5 is similar to WebClient UI, where multilingual text is maintained in i18n properties files. The detailed principle introduction refers to my blog.

Hybris

Hybris, like UI5, uses properties files to maintain different language-based versions of the same text:

The log on the server side can observe which properties file is loaded when Hybris starts:

At this point, I believe you have a better understanding of "how to maintain the same text based on different languages in Hybris". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Text language different version file code content character learning practical deeper interest word blog principle international regional practical practical ideas Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Huawei Docker Shulou Information Shulou Tech Info