extensionPrefs: Work around xgettext bug

xgettext is thrown off by the combination of backticks and slashes,
which makes template string a fun trap to fall into. Just use
String.format() for now ...

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/383
This commit is contained in:
Florian Müllner 2019-02-01 20:11:39 +01:00 committed by Georges Basile Stavracas Neto
parent 680dc18c6b
commit 5dbf09c008

View File

@ -118,7 +118,7 @@ var Application = class {
scroll.add(box);
let label = new Gtk.Label({
label: `<span size="x-large">${_("Somethings gone wrong")}</span>`,
label: '<span size="x-large">%s</span>'.format(_("Somethings gone wrong")),
use_markup: true
});
label.get_style_context().add_class(Gtk.STYLE_CLASS_DIM_LABEL);