cancel
Showing results for 
Search instead for 
Did you mean: 

Remove ootb languages in hybris 6.6

0 Kudos

How can I get rid of the languages like es, es_CO, ja, cs, etc so that they wont be displayed in the backoffice for localized attributes (see screenshot)

I only want the languages de, en, it, fr, en_GB and en_US.

I already tried to set the property lang.packs=en,de,it,fr,en_GB,en_US in the local.properties. But then a lot of initialization erros occur in files like: /impex/essentialdata-coredefinitions_cs.impex (ruleengine) since they depend on that languages.

What can I do to get rid of the superfluous languages?

Accepted Solutions (1)

Accepted Solutions (1)

geffchang
Active Contributor
0 Kudos

You need to create an impex to remove the languages. If you check "Essential Data" in Platform Update, they will be recreated; so you need to consider when the impex will be imported during system set-up. e.g.

 INSERT_UPDATE Language;isocode[unique=true];active[default=true]
 ;pt;false
 
 REMOVE Language;isocode[unique=true];
 ;pt;

There will always be impex that will use some of the OOTB languages that you remove. I suppose you can ignore them.

0 Kudos

This works for the initialize but with an Update via hac the languages will be created again.

geffchang
Active Contributor
0 Kudos

You need to add the "REMOVE Language" script during the Platform Update scripts / setup.

former_member1336901
Participant
0 Kudos

This will lead to some ImpEx import errors for certain extensions, since they reference these languages.

For example, the file hybris/bin/ext-addon/pcmbackofficesamplesaddon/resources/pcmbackofficesamplesaddon/import/common/common-addon-extra.impex in Hybris 1811 references the languages "en,de,es,es_CO,fr,it,ja,ko,pt,ru,zh,zh_TW,hi,id"

former_member620692
Active Contributor

Answers (0)