mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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:
parent
0c232876c3
commit
9d941f8202
43 changed files with 219 additions and 212 deletions
|
|
@ -66,7 +66,7 @@ function startAppForMount(app, mount) {
|
|||
retval = app.launch(files,
|
||||
global.create_app_launch_context(0, -1));
|
||||
} catch (e) {
|
||||
log(`Unable to launch the application ${app.get_name()}: ${e}`);
|
||||
log('Unable to launch the application %s: %s'.format(app.get_name(), e.toString()));
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
|
@ -105,7 +105,7 @@ var ContentTypeDiscoverer = class {
|
|||
try {
|
||||
contentTypes = mount.guess_content_type_finish(res);
|
||||
} catch (e) {
|
||||
log(`Unable to guess content types on added mount ${mount.get_name()}: ${e}`);
|
||||
log('Unable to guess content types on added mount %s: %s'.format(mount.get_name(), e.toString()));
|
||||
}
|
||||
|
||||
if (contentTypes.length) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue