Category localized description only indexed in master language

Vote:
 

Hi,

We're currently working on making a site multilingual to support the Welsh language and as part of this we need to provide translations for the admin categories in use across the site.

I've added a language XML file to include the Welsh variant for these categories into the /lang folder, e.g.

<?xml version="1.0" encoding="utf-8" ?>
<languages>
  <language name="English" id="en">
    <categories>
      <category name="News">
        <description>News</description>
      </category>
    </categories>
  </language>
  <language name="Cymraeg" id="cy-GB">
    <categories>
      <category name="News">
        <description>Newyddion</description>
      </category>
    </categories>
  </language>
</languages>

This has worked in edit mode as when I render the page in Welsh I am able to programmatically change the current UI culture to cy-GB and so I see "Newyddion" as expected.

However when I make any changes to the page and publish, or run the content indexing job, the master value of "News" is added to the index despite other fields on the page having their Welsh variant indexed.

Is it possible to force the Welsh variant to be indexed instead, and if so is there something I'm missing to get this working?

If I manually change the current culture to cy-GB when the content indexing job is running this seems to work as expected and the Welsh variant is indexed, but then obviously the Welsh variant is also indexed for the English master version. This also doesn't solve the problem that when content is published, this reverts back to the master language being indexed for these categories.

Any help is much appreciated, thanks!

Bradley

#204237
May 23, 2019 11:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.