This article covers a Bloomreach Experience Manager version 13. There's an updated version available that covers our most recent release.

Taxonomy Plugin Localization

Introduction

Goal

Localize your taxonomies.

Summary

The Taxonomy Plugin supports localization out-of-the-box. Category names and descriptions can be translated within the taxonomy editor. Supported locales can be configured per taxonomy.

The labels for taxonomy fields in document types can be translated using resource bundles.

Taxonomy Category Localization

Categories in a taxonomy can be localized. The desired set of languages can be specified when the taxonomy is created in the setup application.

If the set of available languages doesn't contain a language you want to add, you can add it manually through the Bloomreach Experience Manager Console at

/content/taxonomies/[taxonomy-handle-node]/[taxonomy-node]/@hippotaxonomy:locales

For example:

/content/taxonomies:
  /exampletaxonomy:
    jcr:primaryType: hippo:handle
    /exampletaxonomy:
      jcr:primaryType: hippotaxonomy:taxonomy
      hippotaxonomy:locales: [en, nl]

Since version 4.1.0, any valid locale name (for example, en, en_US, en_GB, nl, nl_NL, nl_BE) is supported. Up to 4.0.x, only languages were supported (for example, en, nl).

A category can be localized by specifying a (translated) name and description for each language in the taxonomy editor:

The localized information for a category is stored in hippotaxonomy:categoryinfo nodes as follows:

/content/taxonomies/exampletaxonomy/exampletaxonomy:
  /Transport_and_infrastructure:
    jcr:primaryType: hippotaxonomy:category
    hippotaxonomy:key: Transport_and_infrastructure
    /hippotaxonmy:categoryinfos:
      jcr:primaryType: hippotaxonomy:categoryinfos
      /en:
        jcr:primaryType: hippotaxonomy:categoryinfo
        hippotaxonomy:name: Transport and Infrastructure
        hippotaxonomy:description: Transportation and Infrastructure description
      /nl:
        jcr:primaryType: hippotaxonomy:categoryinfo
        hippotaxonomy:name: Transport en infrastructuur
        hippotaxonomy:description: Beschrijving transport en infrastructuur
    /Air_transport:
      jcr:primaryType: hippotaxonomy:category
    /Public_transport:
      jcr:primaryType: hippotaxonomy:category

Taxonomy Field Translations for Document Types

The taxonomy field of a document type can be translated using the resource bundles that were introduced in Bloomreach Experience Manager 11. To change the name of the field, go to the CMS Console, navigate to the node

/hippo:configuration/hippo:translations/hippo:types/[project-namespace]:[document-type]/[language]

and add a property named hippotaxonomy:keys in which you can set the name of the field.

You can also use a generic name for all languages by navigating to the node

/hippo:namespaces/[project-namespace]/[document-type]/editor:templates/_default_/classifiable/cluster.options

and adding a property caption that will contain the field name. It is also possible to set this property through the document editor interface of the CMS (the same applies to the "hint" field)

This only applies to the default taxonomy field (using the hippotaxonomy:classifiable mixin), when using a secondary taxonomy on a document, please see this page.

Did you find this page helpful?
How could this documentation serve you better?
On this page
    Did you find this page helpful?
    How could this documentation serve you better?