diff --git a/src/BrokenGlass.js b/src/BrokenGlass.js index 26c5cc4..6171ca0 100644 --- a/src/BrokenGlass.js +++ b/src/BrokenGlass.js @@ -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 diff --git a/src/EnergizeA.js b/src/EnergizeA.js index 5cbef47..79d8c5d 100644 --- a/src/EnergizeA.js +++ b/src/EnergizeA.js @@ -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 diff --git a/src/EnergizeB.js b/src/EnergizeB.js index 37dd1a1..9d64d71 100644 --- a/src/EnergizeB.js +++ b/src/EnergizeB.js @@ -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 diff --git a/src/Fire.js b/src/Fire.js index b824c74..34a5773 100644 --- a/src/Fire.js +++ b/src/Fire.js @@ -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 diff --git a/src/Matrix.js b/src/Matrix.js index bed7983..952cde2 100644 --- a/src/Matrix.js +++ b/src/Matrix.js @@ -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 diff --git a/src/TRexAttack.js b/src/TRexAttack.js index 123c9dc..a5f167a 100644 --- a/src/TRexAttack.js +++ b/src/TRexAttack.js @@ -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 diff --git a/src/TVEffect.js b/src/TVEffect.js index 80be7bc..826cf57 100644 --- a/src/TVEffect.js +++ b/src/TVEffect.js @@ -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 diff --git a/src/Wisps.js b/src/Wisps.js index 5d5f6b7..42b17d5 100644 --- a/src/Wisps.js +++ b/src/Wisps.js @@ -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