Can't Translate Nodetypes


(Mario Näther) #1

Hi, i develop on my first neos package and i can not translate my NodeType Names.

I created a first NodeType for Category
Packages/Application/Neos.News/Configuration/NodeTypes.Category.yaml

'Neos.News:Category':
  superTypes:
    'Neos.Neos:Document': TRUE
  ui:
    label: i18n
    icon: 'icon-file'
  childNodes:
    main:
      type: 'Neos.Neos:ContentCollection'

aktivate translations in Settings
Packages/Application/Neos.News/Configuration/Settings.yml

Neos:
  Neos:

    userInterface:
      scrambleTranslatedLabels: true

      translation:
        autoInclude:
          Neos.News:
            - Main
            - 'NodeTypes/*'

Packages/Application/Neos.News/Resources/Private/Translations/en/NodeTypes/Category.xlf

<?xml version="1.0" encoding="UTF-8"?>
<xliff version="1.2" xmlns="urn:oasis:names:tc:xliff:document:1.2" >
  <file original="" product-name="Neos.News" source-language="en" datatype="plaintext" target-language="en">
    <body>
      <trans-unit id="ui.label" xml:space="preserve">
        <source>Category</source>
      </trans-unit>
    </body>
  </file>
</xliff>

But in Neos Backend there are view always “Neos.News:NodeTypes.Category:ui.label” and not the translated label “Category”.
Does somebody has any idea whats wrong?
Thanks

mario


(Harald Atteneder) #2

I don’t know if it helps, but try removing the ‘target-language’ attribute.