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
@ -222,9 +222,9 @@ function _collect(scriptModule, outputFile) {
|
||||
let monitor = monitors[i];
|
||||
if (i != 0)
|
||||
Shell.write_string_to_stream(out, ', ');
|
||||
Shell.write_string_to_stream(out, '"%s%dx%d+%d+%d"'.format(i == primary ? "*" : "",
|
||||
monitor.width, monitor.height,
|
||||
monitor.x, monitor.y));
|
||||
const prefix = i === primary ? '*' : '';
|
||||
Shell.write_string_to_stream(out,
|
||||
`"${prefix}${monitor.width}x${monitor.height}+${monitor.x}+${monitor.y}"`);
|
||||
}
|
||||
Shell.write_string_to_stream(out, ' ]');
|
||||
|
||||
|
Reference in New Issue
Block a user