From db9249a1b7d23bd2e44a0eb1d93b82576ce0f3ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Tue, 29 Oct 2019 14:13:38 +0100 Subject: [PATCH] padOsd: Work around xgettext confusion Similar to the previous work-around, xgettext gets thrown off by embedded quotes in template strings, in particular where a template "breaks up" a pair of quotes. Throw in some more comments to make xgettext happy, but whoever makes the gettext toolchain not depend on fragile regular expressions will be drowned in beverages of their choice ... https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/792 --- js/ui/padOsd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/ui/padOsd.js b/js/ui/padOsd.js index b36c00b48..edb4fbea0 100644 --- a/js/ui/padOsd.js +++ b/js/ui/padOsd.js @@ -350,7 +350,9 @@ var PadDiagram = GObject.registerClass({ return ('' + ' ` + + `width="${ // " (give xgettext the paired quotes it expects) + this._imageWidth + }" height="${this._imageHeight}"> ` + // " '