BoltTranslate / Translate

Provides translation for contenttypes.
Other
43 stars 37 forks source link

[BUG] exension doesn't save secondary locale #72

Closed danielschleindlsperger closed 8 years ago

danielschleindlsperger commented 8 years ago

Hello,

when I try to save a contenttype with a repeater it only saves for the primary locale, not the secondary. The secondary locale is always the same as the primary.

translate config:

locales:
    de_DE:
        label: Deutsch
        slug: de
    en_GB:
        label: English
        slug: en

contenttype:

staffgroup:
    name: Staff Groups
    singular_name: Staff Group
    fields:
        locale:
            type: locale
            group: content
        title:
            type: text
            label: Title
            is_translateable: true
        people:
            type: repeater
            label: People in Group
            is_translateable: true
            fields:
                image:
                    type: image
                    label: Image
                name:
                    type: text
                    label: Name
                role:
                    type: text
                    label: Role in company
                info:
                    type: html
                    height: 150px
                    label: More info about person
    show_on_dashboard: true
    viewless: true
    default_status: publish
    searchable: false
    icon_many: "fa:users"
    icon_one: "fa:user"

Also I get the following js error in the browser console:

lib.js?b5478a6a75:24 Uncaught Error: Syntax error, unrecognized expression: http://domain-redacted.dev/bolt/editcontent/staffgroup/1?_locale=en

Thank you so much for you work on bolt and the translate plugin and let me know if you need more info :)

danielschleindlsperger commented 8 years ago

I just downgraded bolt to 3.0.12 and even though I get the same js error when switching locales it appears to be saving both locales correctly.

calvinchoy commented 8 years ago

@danielschleindlsperger is it still working correctly? I am using bolt 3.0.12 and translate 3.1.2 but having the same problem. There is another issue opened for this: #74

danielschleindlsperger commented 8 years ago

@calvinchoy yes it's working fine for me right now with the downgrade :)

SvanteRichter commented 8 years ago

Closing this as it's the same issue as #72 but we have some more discussion in that one.