Incorrect claim of c-format in POT file

Bug #1707908 reported by Adam Collard on 2017-08-01
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

Generating po/snappy.pot from snapd source using update-pot incorrectly claims that some strings are c-format[0] when they are not (e.g. they use golang fmt's %q).

This then leads to confusion in tools which expect c-format and contributes to issues like


Adam Collard (adam-collard) wrote :

See also bug 1707890 (LP bug that contributed to the strange behaviour)

Michael Vogt (mvo) on 2018-01-02
Changed in snapd:
status: New → Triaged
importance: Undecided → Medium
Michael Vogt (mvo) wrote :

I filed a bug upstream about this:

It seems like we have some options:
1. Switch our internal i18n/xgettext-go to emit "go-format" instead of "c-format". From the feedback I got from the LP developers it seems we will probably lose some sanity checks in launchpad translations if we do that ( in the LP source).
2. Implement golang support in upstream gettext. I looked into this and it looks like its quite a bit of work, we will have to implement our own x-golang.c and format-golang.c.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers