🔧 MAke effect names translatable

This commit is contained in:
Simon Schneegans
2022-01-28 20:40:46 +01:00
parent 65969ce7a6
commit fea441000d
8 changed files with 24 additions and 8 deletions
+3 -1
View File
@@ -15,6 +15,8 @@
const GObject = imports.gi.GObject;
const _ = imports.gettext.domain('burn-my-windows').gettext;
const ExtensionUtils = imports.misc.extensionUtils;
const Me = imports.misc.extensionUtils.getCurrentExtension();
const utils = Me.imports.src.utils;
@@ -51,7 +53,7 @@ var TVEffect = class TVEffect {
// This will be shown in the sidebar of the preferences dialog as well as in the
// drop-down menus where the user can choose the effect.
static getLabel() {
return 'TV Effect';
return _('TV Effect');
}
// -------------------------------------------------------------------- API for prefs.js