Closed m-aciek closed 3 years ago
How does your PO file look like? How is your translation component configured?
I'm not able to upload a PO file in the issue, so I'm inlining it's content:
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-09-29 13:24+0200\n"
"PO-Revision-Date: 2021-11-05 07:43+0000\n"
"Last-Translator: Maciej Olko <maciej.olko@gmail.com>\n"
"Language-Team: English <https://domain/projects/"
"project/api/en/>\n"
"Language: en\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Generator: Weblate 4.8.1\n"
msgid "categories.descriptions.special_personal_data"
msgstr ""
"This shortened."
msgid "categories.dialog.descriptions.paragraph1"
msgstr ""
"This shortened"
I'm using continuous localization flow with gettext monolingual PO files.
Please let me know if I should provide any more details.
Fact that may play a role here is that before the generation made by Weblate, I broke the MOs on main branch by doing search and replace in binary files, which corrupted the "magic numbers" in them.
Seems like e4bb7fdbaeb411747814307caaeb32f517984938 reverted the logic for conversion of monolingual PO files...
Thank you for your report; the issue you have reported has just been fixed.
Describe the issue
After updating translation resource and committing to the repository with "Generate MO files", the MO file generated has "/x04" appended at the end of every translation key.
I already tried
Steps to reproduce the behavior
\x04
appendedExpected behavior
Screenshots
After pulling repository with Weblate commits and loading.
After generating manually and loading.
Exception traceback
No response
How do you run Weblate?
Docker container
Weblate versions
Copying over versions from About Weblate page as I have user access only:
Weblate 4.6.1 was generating MO files correctly.
Weblate deploy checks
No response
Additional context
Potentially it's a bug in some Weblate's dependency, but I don't know the internals.
I use MacOSX and I have LF line endings.