-
Notifications
You must be signed in to change notification settings - Fork 442
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore 'Language' header in PO-templates
The tools 'xgettext' from GNU gettext and 'pot-create' from lingua both produce PO-template files containing a 'Language' header with an empty string as value. Babel has issues creating catalogs out of such templates. It wants to parse the PO-template as a normal PO-catalog using the locale of the target catalog, because it helps producing the correct plurals. But it overwrites this locale when parsing the 'Language' header and then it can not produce a valid catalog. Ignoring the 'Language' header when it is known that the file being processed is a template avoids this issue. GitHub: fixes #665
- Loading branch information
Showing
5 changed files
with
11 additions
and
4 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