-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development' into jac/release-action
- Loading branch information
Showing
144 changed files
with
6,775 additions
and
75,996 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
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
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
#! /usr/bin/env python3 | ||
# Written by Martin v. Löwis <[email protected]> | ||
|
||
""" Updated to handle utf-8 files and give better error messages | ||
""" | ||
Fetched from https://github.com/python/cpython/blob/main/Tools/i18n/msgfmt.py | ||
Updated to handle utf-8 files and give better error messages | ||
TODO contribute back? | ||
""" | ||
|
||
|
@@ -107,7 +108,7 @@ def make(filename, outfile): | |
CTXT = 3 | ||
|
||
encoding = 'utf-8' | ||
print("Assumed encoding", encoding) | ||
print("msgfmt::Assumed encoding", encoding) | ||
|
||
# Compute .mo name from .po name and arguments | ||
if filename.endswith('.po'): | ||
|
@@ -195,7 +196,7 @@ def make(filename, outfile): | |
try: | ||
l = ast.literal_eval(l) | ||
except: | ||
print("ERROR (skipped)", lno, msgid) | ||
print("\tERROR (skipped)", lno, msgid) | ||
pass | ||
if section == CTXT: | ||
msgctxt += l.encode(encoding) | ||
|
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
Oops, something went wrong.