Invalid locales can be added to Zanata, breaking urls and UI

Description

Adding a new language with a locale code such as "$1locale" can break the UI or project urls. These should be validated.

Environment

None

Status

Assignee

Damian Jansen

Reporter

Damian Jansen

Labels

None

Tested Version/s

None

Components

Affects versions

Priority

unspecified
Configure