🔧 Use dynamic imports for gettext

This commit is contained in:
Simon Schneegans
2023-09-09 06:46:09 +02:00
parent 0ccbb31d06
commit 734530fdab
23 changed files with 64 additions and 45 deletions
+2 -2
View File
@@ -14,8 +14,6 @@
'use strict';
const _ = imports.gettext.domain('burn-my-windows').gettext;
import * as utils from '../utils.js';
// We import some modules only in the Shell process as they are not available in the
@@ -26,6 +24,8 @@ const Clutter = await utils.importInShellOnly('gi://Clutter');
const GdkPixbuf = await utils.importInShellOnly('gi://GdkPixbuf');
const Cogl = await utils.importInShellOnly('gi://Cogl');
const _ = await utils.importGettext();
//////////////////////////////////////////////////////////////////////////////////////////
// This effect tears your windows apart with a series of violent scratches! //
// This effect is not available on GNOME 3.3x, due to the limitation described in the //