js: Use templates for non-translatable strings
This reverts commit 9d941f8202
and replaces all additional
instances of .format() that have been added since.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2160>
This commit is contained in:

committed by
Marge Bot

parent
29dfde5a4a
commit
a1dd1b25d8
@ -194,7 +194,7 @@ class RunDialog extends ModalDialog.ModalDialog {
|
||||
if (inTerminal) {
|
||||
let exec = this._terminalSettings.get_string(EXEC_KEY);
|
||||
let execArg = this._terminalSettings.get_string(EXEC_ARG_KEY);
|
||||
command = '%s %s %s'.format(exec, execArg, input);
|
||||
command = `${exec} ${execArg} ${input}`;
|
||||
}
|
||||
Util.trySpawnCommandLine(command);
|
||||
} catch (e) {
|
||||
@ -205,7 +205,7 @@ class RunDialog extends ModalDialog.ModalDialog {
|
||||
} else if (input) {
|
||||
if (input.charAt(0) == '~')
|
||||
input = input.slice(1);
|
||||
path = '%s/%s'.format(GLib.get_home_dir(), input);
|
||||
path = `${GLib.get_home_dir()}/${input}`;
|
||||
}
|
||||
|
||||
if (path && GLib.file_test(path, GLib.FileTest.EXISTS)) {
|
||||
|
Reference in New Issue
Block a user