[gnome-shell] padOsd: Work around xgettext confusion
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] padOsd: Work around xgettext confusion
- Date: Tue, 29 Oct 2019 18:34:09 +0000 (UTC)
commit db9249a1b7d23bd2e44a0eb1d93b82576ce0f3ea
Author: Florian Müllner <fmuellner gnome org>
Date: Tue Oct 29 14:13:38 2019 +0100
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 b36c00b489..edb4fbea0f 100644
--- a/js/ui/padOsd.js
+++ b/js/ui/padOsd.js
@@ -350,7 +350,9 @@ var PadDiagram = GObject.registerClass({
return ('<?xml version="1.0" encoding="UTF-8" standalone="no"?>' +
'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" ' +
'xmlns:xi="http://www.w3.org/2001/XInclude" ' +
- `width="${this._imageWidth}" height="${this._imageHeight}"> ` +
+ `width="${ // " (give xgettext the paired quotes it expects)
+ this._imageWidth
+ }" height="${this._imageHeight}"> ` + // "
'<style type="text/css">');
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]