cleanup: Use more template strings
xgettext got better at recognizing template strings, so we can replace more string concatenations. Alas xgettext is still buggy (surprise, regular expressions are hard), so there are still a handful of holdouts that prevent us from making a complete switch. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/792
This commit is contained in:

committed by
Florian Müllner

parent
2c62e45168
commit
f309d98bc8
@ -76,13 +76,13 @@ function loadInterfaceXML(iface) {
|
||||
if (!_ifaceResource) {
|
||||
// don't use global.datadir so the method is usable from tests/tools
|
||||
let dir = GLib.getenv ('GNOME_SHELL_DATADIR') || Config.PKGDATADIR;
|
||||
let path = dir + '/gnome-shell-dbus-interfaces.gresource';
|
||||
let path = `${dir}/gnome-shell-dbus-interfaces.gresource`;
|
||||
_ifaceResource = Gio.Resource.load(path);
|
||||
_ifaceResource._register();
|
||||
}
|
||||
|
||||
let xml = null;
|
||||
let uri = 'resource:///org/gnome/shell/dbus-interfaces/' + iface + '.xml';
|
||||
let uri = `resource:///org/gnome/shell/dbus-interfaces/${iface}.xml`;
|
||||
let f = Gio.File.new_for_uri(uri);
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user