Closed martinpitt closed 3 months ago
So this needs to go into files as well?
@jelly Not sure what you mean, this is files?
Marking as release blocker, as this breaks an actual string (same in podman). The other projects didn't run into that issue, so not a release blocker for them.
I don't like this, but @martinpitt has spent enough time researching alternatives on this, without success (including changing the language, and trying to play with flags parameters). Let's just go with it.
We don't use printf-style C format macros like "%s" in the JavaScript code, at least not for translations. But xgettext interprets the "$0% Free" in pkg/kubernetes/scripts/nodes.js as C format string, which confuses translation tools and blocks the proper translation of this string.
As there doesn't seem to be a way to change the
--keyword=ngettext
argument to do that, just filter out thec-format
tag with sed.Taken from https://github.com/cockpit-project/cockpit/commit/449d76c0e6d9
See https://github.com/cockpit-project/cockpit-podman/issues/1712 and https://github.com/cockpit-project/cockpit-podman/pull/1763 .