-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fail earlier for multiple-text-same-lang structure
It's not permitted to have multiple `<text>` elements with the same language code in a `<switch>` element. This wasn't being checked in `SvgFile::makeTranslationRead()`, but only later in `SvgFile::switchToTranslationSet()`, and so it wasn't being reported to the user when they opened a file for translation, but only later when they tried to load a translated version (at which point it failed without telling them why). This change moves the multiple-language check to the earlier method, and fixes up some broken parts of 91d3097 such as the error message name and parameters, as well as i18n messages and documentation. This doesn't remove the later check, even though it's now redundant. That can be done in a follow-up. Bug: T319154
- Loading branch information
Showing
5 changed files
with
22 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters