I installed Drupal 8.0.0. in the Dutch language. When I want to change an existing text format it is not possible to save the changed settings. I get the error "Text format names must be unique. A format named %name already exists." (in Dutch of course).
When adding the English language and make that default it is possible to change text formats.

Comments

ecvandenberg created an issue. See original summary.

swentel’s picture

Component: text.module » filter.module

Can't reproduce at all for now - moving to right component.

ecvandenberg’s picture

The steps to reproduce this issue are:

  • Install D8 with Dutch language selected
  • Go to .../admin/config/content/formats
  • Then I see four text formats
  1. Beperkte HTML - CKEditor
  2. Beperkte HTML - -
  3. Volledige HTML - CKEditor
  4. Platte tekst - -
  • Then I try to change some settings in one of the Beperkte HTML formats.
  • Then I get an error that says the text format name must be unique.
  • This error makes sense of course. The problem is that D8 default comes with two tekst formats with the same name. When you change the name of one of those two text formats the issue is solved.

    Wim Leers’s picture

    Status: Active » Postponed (maintainer needs more info)

    The problem is that D8 default comes with two tekst formats with the same name. When you change the name of one of those two text formats the issue is solved.

    Huh? Which two text formats have the same name?

    ecvandenberg’s picture

    Obviously you are surprised... I'm very sorry but when I follow the steps described I see the four text formats. The first and second both have the name 'Beperkte HTML'.

    swentel’s picture

    Hmm yeah, I'd say this is a problem with the default translation of those two filter names, the translations is basically wrong :)
    We should fix this on localize.drupal.org imo

    https://localize.drupal.org/translate/languages/nl/translate?project=dru...

    https://localize.drupal.org/translate/languages/nl/translate?project=dru...

    Wim Leers’s picture

    Oh… lol :P

    Also: isn't this validation based on the machine name, and not the human label?

    swentel’s picture

    Well, there's an additional validate check in FilterFormatFormBase. It makes sense in a way, because two formats with the same human name causes confusing, you then need to inspect the tips to figure out what the difference is :)

    ecvandenberg’s picture

    Do hope I contributed to the amazing good work you all do on Drupal...

    Wim Leers’s picture

    Issue tags: +D8MI

    #8: Fair enough.

    #9: Of course! You indirectly reported a bug in the Dutch translation of Drupal 8. Thank you :)

    Wim Leers’s picture

    Status: Postponed (maintainer needs more info) » Postponed
    Issue tags: +Needs upstream bugfix

    I pinged Sutharsan, who's the maintainer of the Dutch translation of Drupal 8. Hopefully it will get fixed soon :)

    Therefore this is not a bug in the code, but in the translation, so marking as postponed on upstream bugfix.

    Sutharsan’s picture

    Status: Postponed » Fixed

    Dutch translation is now changed to 'Eenvoudige HTML'. It may take some time before the new translation becomes available. Marking the issue as fixed.

    @ecvandenberg You can contribute to Drupal translations too. The translations are maintained at https://localize.drupal.org. Login with your Drupal account and join the Dutch team. The above translation can be found at https://localize.drupal.org/translate/languages/nl/translate?project=&st...

    Status: Fixed » Closed (fixed)

    Automatically closed - issue fixed for 2 weeks with no activity.