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
@ -66,7 +66,7 @@ function _getFolderName(folder) {
|
||||
|
||||
if (folder.get_boolean('translate')) {
|
||||
let keyfile = new GLib.KeyFile();
|
||||
let path = 'desktop-directories/' + name;
|
||||
let path = `desktop-directories/${name}`;
|
||||
|
||||
try {
|
||||
keyfile.load_from_data_dirs(path, GLib.KeyFileFlags.NONE);
|
||||
@ -469,7 +469,7 @@ var AllView = GObject.registerClass({
|
||||
|
||||
let folders = this._folderSettings.get_strv('folder-children');
|
||||
folders.forEach(id => {
|
||||
let path = this._folderSettings.path + 'folders/' + id + '/';
|
||||
let path = `${this._folderSettings.path}folders/${id}/`;
|
||||
let icon = this._items[id];
|
||||
if (!icon) {
|
||||
icon = new FolderIcon(id, path, this);
|
||||
|
Reference in New Issue
Block a user