js: Don't use templates in files with translations
xgettext gained some support for template strings, and no longer fails when encountering '/' somewhere between backticks. Unfortunately its support is still buggy as hell, and it is now silently dropping translatable strings, yay. I hate making the code worse, but until xgettext really gets its shit together, the only viable way forward seems to be to not use template strings in any files listed in POTFILES. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/1014
This commit is contained in:
@ -113,7 +113,7 @@ var AutomountManager = class {
|
||||
try {
|
||||
drive.stop_finish(res);
|
||||
} catch (e) {
|
||||
log(`Unable to stop the drive after drive-eject-button ${e.toString()}`);
|
||||
log('Unable to stop the drive after drive-eject-button %s'.format(e.toString()));
|
||||
}
|
||||
});
|
||||
} else if (drive.can_eject()) {
|
||||
@ -122,7 +122,7 @@ var AutomountManager = class {
|
||||
try {
|
||||
drive.eject_with_operation_finish(res);
|
||||
} catch (e) {
|
||||
log(`Unable to eject the drive after drive-eject-button ${e.toString()}`);
|
||||
log('Unable to eject the drive after drive-eject-button %s'.format(e.toString()));
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -210,7 +210,7 @@ var AutomountManager = class {
|
||||
}
|
||||
|
||||
if (!e.matches(Gio.IOErrorEnum, Gio.IOErrorEnum.FAILED_HANDLED))
|
||||
log(`Unable to mount volume ${volume.get_name()}: ${e.toString()}`);
|
||||
log('Unable to mount volume %s: %s'.format(volume.get_name(), e.toString()));
|
||||
this._closeOperation(volume);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user