When I configure a language and enter a domain that is already in use, the error message is missing the language for which the domain is already used. The error message is:

The domain (example.com) is already tied to a language ().

Instead, it should be:

The domain (example.com) is already tied to a language 'English'.

Comments

pixelite’s picture

Status: Active » Needs review
StatusFileSize
new2.54 KB

The problem was that the db_query returned the language code, but the error message expected the language object. I've created a patch that selects the language name instead and uses that in the error message.

kasperg’s picture

The issue is still relevant, the patch applies and fixes the issue.

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.