Unable to upload POT file to any libvirt project component
Daniel P. Berrangé <[email protected]>
| Newsgroups | gmane.linux.redhat.internationalization |
|---|---|
| Message-ID | <[email protected]> |
When we first setup the libvirt-glib project, I was able to use $ wlc upload --method replace -i libvirt-glib.pot libvirt-glib/master/en to upload the .pot file into the "en.po" file on the server, which was marked as the base language for translation. Since then, the libvirt-glib project was renamed, and libvirt & libvirt-sandbox were added as further components. Now when I try to upload the .pot, weblate is not accepting any of the strings. At first I thought I was still hitting the upload size limit, but debugging I see this is not the case. $ wlc upload --method replace -i libvirt-glib.pot libvirt-glib/master/en Error: Failed to upload translations! Despite failing, it *has* made some change in the git repository, because I now see this new commit: commit 56edd0b79dd3f4c296626afabaed67d04d56c1ed Author: Daniel P. Berrange <[email protected]> Date: Mon Jan 13 21:20:53 2020 +0000 Translated using Weblate (English) Currently translated at 0.0% (0 of 31 strings) Translation: libvirt/libvirt-glib Translate-URL: https://translate.stg.fedoraproject.org/projects/libvirt/libvirt-glib/en/ diff --git a/en.po b/en.po index a4e737c..750982c 100644 --- a/en.po +++ b/en.po @@ -1,9 +1,7 @@ # Libvirt package strings. # Copyright (C) 2019 The Libvirt authors # This file is distributed under the same license as the libvirt-glib package. -# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. -# -#, fuzzy +# Daniel P. Berrange <[email protected]>, 2020. msgid "" msgstr "" "Project-Id-Version: libvirt-glib 3.0.0\n" @@ -12,7 +10,7 @@ msgstr "" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" -"Language: \n" +"Language: en\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" In addition the weblate UI is reporting errors for libvirt-glib now [quote] Duplicated translation The component contains several translation files mapped to single language in Weblate. The following occurrences were found: Language Language codes English en, en Please fix this by removing one of the duplicated strings from the translation files. [/quote] The same has happened to the git repos for libvirt and libvirt-sandbox too. The error goes away if I put the project back to "gettext (monlingual)" but I'm still unable to upload the pot file to en.po again. I'm thinking about what has changed since I was first succesfully able to upload: - The project now has three separate components each with their own git repo - The "Automatic translation" and "Language consistency" addons have been installed My guess is that possibly the language consistency addon has caused the problem. I think perhaps it has tried to synchronize the "en.po" file across the three repos and this confused things, now preventing me treating it as the string base file. Regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :| _______________________________________________ trans mailing list -- [email protected] To unsubscribe send an email to [email protected] Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/[email protected]