On Wed, Mar 04, 2026 at 11:31:14AM -0800, Daniel Nylander wrote:
> Package: libvirt
> Severity: wishlist
> Tags: l10n patch
> 
> Please include the attached translation for the debconf templates
> as debian/po/sv.po in the next upload of libvirt.
> 
> Translator: Daniel Nylander <[email protected]>
> Language: sv

Hi,

adding this to the package as-is results in the following lintian
warning:

  W: libvirt source: invalid-po-file [debian/po/sv.po]
  N:
  N:   Errors were found in the listed PO file that will cause its content to be
  N:   discarded. Run msgfmt on the file to see the error messages.
  N:
  N:   Visibility: warning
  N:   Show-Always: no
  N:   Check: debian/po-debconf

Running msgfmt as instructed results in:

  $ msgfmt debian/po/sv.po
  msgfmt: input file doesn't contain a header entry with a charset specification

Looking at the existing translations, it looks like we're missing a
bunch of metadata. The diff below seems to do the trick. Any
objections to squashing it in?

Thanks.


diff --git a/debian/po/sv.po b/debian/po/sv.po
index 6959fc19d4..d25437d618 100644
--- a/debian/po/sv.po
+++ b/debian/po/sv.po
@@ -1,8 +1,21 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# Swedish translation of libvirt debconf templates.
+# Copyright (C) 2026 Debian Swedish l10n Team
 # This file is distributed under the same license as the libvirt package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+# Daniel Nylander <[email protected]>, 2026
 #
+msgid ""
+msgstr ""
+"Project-Id-Version: libvirt\n"
+"Report-Msgid-Bugs-To: [email protected]\n"
+"POT-Creation-Date: 2016-12-22 14:20+0100\n"
+"PO-Revision-Date: 2026-03-04 11:31-0800\n"
+"Last-Translator: Daniel Nylander <[email protected]>\n"
+"Language-Team: Swedish <[email protected]>\n"
+"Language: sv\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
 #, fuzzy
 #. Type: boolean
 #. Description
-- 
Andrea Bolognani <[email protected]>
Resistance is futile, you will be garbage collected.

Attachment: signature.asc
Description: PGP signature

Reply via email to