-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid multibyte sequence error on make l10n #958
Comments
Hey @PPsyrius, |
@arkid15r Sure, here's the version of the code I used https://github.com/PPsyrius/python-holidays/tree/955_thailand_i18n_support |
@arkid15r Found solution to this now, turns out on top of adding blank files, headers are also needed so that the reader would accept UTF-8 charset: Here's one of the examples that finally get the script working for me: TH.po # Thailand holidays English translation.
# Authors: PPsyrius <ppsyrius@ppsyrius.dev>, (c) 2023.
#
msgid ""
msgstr ""
"Project-Id-Version: Python Holidays 0.20\n"
"POT-Creation-Date: 2023-02-19 14:03+0700\n"
"PO-Revision-Date: \n"
"Last-Translator: PPsyrius <ppsyrius@ppsyrius.dev>\n"
"Language-Team: Python Holidays Translation Team\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" This issue can be closed down, IMO. |
Hey @PPsyrius, Just FYI the misformatted .po file hadn't been included into https://github.com/PPsyrius/python-holidays/tree/955_thailand_i18n_support when I looked into it. Anyway, it seems the error had to do with this specific header "Content-Type: text/plain; charset=UTF-8\n" absence. Closing this out. |
A bit minor note: I did try switching to having Thai text as default based on this PR, and the issue still persists when using
make l10n
as you can see below:With this in mind, I'm considering continuing my approach on #946 instead, but will switch around the test cases to generate our desired result of having
th
as default anden_US
as supported.Originally posted by @PPsyrius in https://github.com/dr-prodigy/python-holidays/issues/955#issuecomment-1434250465
The text was updated successfully, but these errors were encountered: