Skip to content

Commit 488f74a

Browse files
committed
Avoid ISO-8859-1 character in fr.po header.
Python 3 gettext can handle arbitrary character sets for the messages in .mo files, but always tries to decode the header information as UTF-8. This means that using the French translation fails because it tries to decode b'Last-Translator: St\xe9phane Raimbault <[email protected]>' as UTF-8, when that is an ISO-8859-1 string. Fixed by avoiding the accent in that string to make it pure ASCII. Alternatively, all the remaining non-UTF-8 translations might reasonably be converted fully to UTF-8.
1 parent 68849d9 commit 488f74a

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGES.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ Fixed:
5353
when using validation. Added option to allow detection of duplicate
5454
username when the user tries to register. Previously user was
5555
rejected when confirming registration. (John Rouillard)
56+
- French translation gave errors with Python 3 because of ISO-8859-1
57+
character in .mo file header. (Joseph Myers)
5658

5759
2019-10-23 2.0.0 alpha 0
5860

locale/fr.po

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msgstr ""
1212
"Report-Msgid-Bugs-To: [email protected]\n"
1313
"POT-Creation-Date: 2019-10-23 13:45-0400\n"
1414
"PO-Revision-Date: 2013-10-31 12:19+0100\n"
15-
"Last-Translator: Stéphane Raimbault <[email protected]>\n"
15+
"Last-Translator: Stephane Raimbault <[email protected]>\n"
1616
"Language-Team: GNOME French Team <[email protected]>\n"
1717
"Language: \n"
1818
"MIME-Version: 1.0\n"

0 commit comments

Comments
 (0)