kaliop-uk / ezmigrationbundle

This bundle makes it easy to handle eZPlatform / eZPublish5 content upgrades/migrations
GNU General Public License v2.0
53 stars 81 forks source link

Content Type Manager: Support multilingual Names/Descriptions in one step #126

Closed blankse closed 7 years ago

blankse commented 7 years ago

Allow the set of all translations for content types and content type fields

e. g.

-
    type: content_type
    mode: create
    content_type_group: Content
    identifier: article
    names:
        eng-GB: Article
        ger-DE: Artikel
    descriptions:
        eng-GB: 'Article content type'
        ger-DE: 'Artikel Inhaltsart'
    name_pattern: '<short_title|title>'
    url_name_pattern: ''
    is_container: true
    lang: eng-GB
    attributes:
        -
            identifier: title
            type: ezstring
            names:
                eng-GB: Title
                ger-DE: Titel
            descriptions:
                eng-GB: 'Header of the article'
                ger-DE: 'Überschrift des Artikels'
            required: true
            searchable: true
            info-collector: false
            disable-translation: false
            category: ''
            position: 1
            default-value: 'New article'
            field-settings: {  }
            validator-configuration:
                StringLengthValidator: { maxStringLength: 255, minStringLength: null }
gggeek commented 7 years ago

what about keeping using the same tags 'name' and 'description' and, instead of adding their plural version, just be smart in how we handle them ?

does it make sense / cover your needs?

blankse commented 7 years ago

I changed it to your suggestions 👍