🔧 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;
@@ -52,7 +54,7 @@ var BrokenGlass = class BrokenGlass {
// 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 'Broken Glass';
return _('Broken Glass');
}
// -------------------------------------------------------------------- API for prefs.js
+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;
@@ -49,7 +51,7 @@ var EnergizeA = class EnergizeA {
// 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 'Energize A';
return _('Energize A');
}
// -------------------------------------------------------------------- API for prefs.js
+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;
@@ -49,7 +51,7 @@ var EnergizeB = class EnergizeB {
// 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 'Energize B';
return _('Energize B');
}
// -------------------------------------------------------------------- API for prefs.js
+3 -1
View File
@@ -15,6 +15,8 @@
const {Gio, GObject} = imports.gi;
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;
@@ -53,7 +55,7 @@ var Fire = class Fire {
// 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 'Fire';
return _('Fire');
}
// -------------------------------------------------------------------- API for prefs.js
+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;
@@ -53,7 +55,7 @@ var Matrix = class Matrix {
// 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 'Matrix';
return _('Matrix');
}
// -------------------------------------------------------------------- API for prefs.js
+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 TRexAttack = class TRexAttack {
// 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 'T-Rex Attack';
return _('T-Rex Attack');
}
// -------------------------------------------------------------------- API for prefs.js
+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
+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;
@@ -50,7 +52,7 @@ var Wisps = class Wisps {
// 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 'Wisps';
return _('Wisps');
}
// -------------------------------------------------------------------- API for prefs.js