diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml
index 022a327..d1d6ebf 100644
--- a/.github/workflows/checks.yml
+++ b/.github/workflows/checks.yml
@@ -78,5 +78,9 @@ jobs:
contains(github.event.head_commit.message, '[run-ci]')
steps:
- uses: actions/checkout@v2
+ - name: Download Dependencies
+ run: |
+ sudo apt update -qq
+ sudo apt install gettext -qq
- name: Build Burn-My-Windows
run: make
diff --git a/.gitignore b/.gitignore
index 77585ec..11da693 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,6 +3,7 @@
*.blend1
*.blend2
*.blend3
+/locale
/schemas/gschemas.compiled
/resources/burn-my-windows.gresource
/resources/burn-my-windows.gresource.xml
\ No newline at end of file
diff --git a/Makefile b/Makefile
index 6dc34d4..c6d8430 100644
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,13 @@
SHELL := /bin/bash
JS_FILES = $(shell find -type f -and \( -name "*.js" \))
+UI_FILES = $(shell find -type f -and \( -name "*.ui" \))
RESOURCE_FILES = $(shell find resources -mindepth 2 -type f)
-.PHONY: zip install uninstall clean
+LOCALES_PO = $(wildcard po/*.po)
+LOCALES_MO = $(patsubst po/%.po,locale/%/LC_MESSAGES/burn-my-windows.mo,$(LOCALES_PO))
+
+.PHONY: zip install uninstall all-po pot clean
zip: burn-my-windows@schneegans.github.com.zip
@@ -14,23 +18,31 @@ install: burn-my-windows@schneegans.github.com.zip
uninstall:
gnome-extensions uninstall "burn-my-windows@schneegans.github.com"
+all-po: $(LOCALES_PO)
+
+pot: $(JS_FILES) $(UI_FILES)
+ @echo "Generating 'burn-my-windows.pot'..."
+ @xgettext --from-code=UTF-8 \
+ --add-comments=Translators \
+ --copyright-holder="Simon Schneegans" \
+ --package-name="Burn-My-Windows" \
+ --output=po/burn-my-windows.pot \
+ $(JS_FILES) $(UI_FILES)
+
clean:
rm -rf \
burn-my-windows@schneegans.github.com.zip \
resources/burn-my-windows.gresource \
resources/burn-my-windows.gresource.xml \
- schemas/gschemas.compiled
+ schemas/gschemas.compiled \
+ locale \
+ ui/*.ui~ \
+ po/*.po~
-burn-my-windows@schneegans.github.com.zip: schemas/gschemas.compiled resources/burn-my-windows.gresource $(JS_FILES)
- @# Check if the VERSION variable was passed and set version to it
- @if [[ "$(VERSION)" != "" ]]; then \
- sed -i "s| \"version\":.*| \"version\": $(VERSION)|g" metadata.json; \
- fi
- @# TODO Maybe echo version number of the release that was built, in order to facilitate double-checking before publishing it?
-
+burn-my-windows@schneegans.github.com.zip: schemas/gschemas.compiled resources/burn-my-windows.gresource $(JS_FILES) $(LOCALES_MO)
@echo "Packing zip file..."
@rm --force burn-my-windows@schneegans.github.com.zip
- @zip -r burn-my-windows@schneegans.github.com.zip -- *.js src/*.js resources/burn-my-windows.gresource schemas/gschemas.compiled metadata.json LICENSE
+ @zip -r burn-my-windows@schneegans.github.com.zip -- *.js src/*.js resources/burn-my-windows.gresource schemas/gschemas.compiled $(LOCALES_MO) metadata.json LICENSE
@#Check if the zip size is too big to be uploaded
@if [[ "$$(stat -c %s burn-my-windows@schneegans.github.com.zip)" -gt 4096000 ]]; then \
@@ -48,4 +60,15 @@ resources/burn-my-windows.gresource.xml: $(RESOURCE_FILES)
schemas/gschemas.compiled: schemas/org.gnome.shell.extensions.burn-my-windows.gschema.xml
@echo "Compiling schemas..."
- @glib-compile-schemas schemas
\ No newline at end of file
+ @glib-compile-schemas schemas
+
+locale/%/LC_MESSAGES/burn-my-windows.mo: po/%.po
+ @echo "Compiling $@"
+ @mkdir -p locale/$*/LC_MESSAGES
+ @msgfmt -c -o $@ $<
+
+po/%.po:
+ @echo "Updating $@"
+ msgmerge --previous --update $@ po/burn-my-windows.pot
+ @# Output translation progress
+ @msgfmt --check --verbose --output-file=/dev/null $@
\ No newline at end of file
diff --git a/README.md b/README.md
index 34dad0d..06ce1d1 100644
--- a/README.md
+++ b/README.md
@@ -3,6 +3,8 @@
+
+
When I released the [Desktop Cube Extension](https://github.com/Schneegans/Desktop-Cube/), many people requested to revive one of the most useless features of Linux desktop history: Setting windows on fire!
This extension is not only more useless than the cube, but it is also much more hacky. So I expect some bug! [Let's incinerate them all](https://github.com/Schneegans/Burn-My-Windows/issues)!
@@ -25,7 +27,7 @@ Effect | Preview
## 💞 These People _love_ this Extension
-While coding new features is the most awesome way to contribute, providing financial support will help me stay motivated to invest my spare time to keep the project alive in the future.
+While [coding new features](docs/how-to-create-new-effects.md) or [translating the extension](https://hosted.weblate.org/engage/burn-my-windows/) are the most awesome ways to contribute, providing financial support will help me stay motivated to invest my spare time to keep the project alive in the future.
🥇 Current Gold Sponsors
@@ -116,7 +118,7 @@ gnome-extensions enable burn-my-windows@schneegans.github.com
## :octocat: I want to contribute!
That's great!
-Most likely, you want to [create a new effect](docs/how-to-create-new-effects.md)?
+Most likely, you want to [create a new effect](docs/how-to-create-new-effects.md) or to [translate the extension](https://hosted.weblate.org/engage/burn-my-windows/)?
Here are some basic rules to get you started:
Commits should start with a Capital letter and should be written in present tense (e.g. __:tada: Add cool new feature__ instead of __:tada: Added cool new feature__).
You should also start your commit message with **one** applicable emoji.
diff --git a/docs/changelog.md b/docs/changelog.md
index 18b212e..6857dcb 100644
--- a/docs/changelog.md
+++ b/docs/changelog.md
@@ -12,6 +12,7 @@
#### Other Enhancements
+* **Translations!** It is now possible to [translate the preferences dialog](https://hosted.weblate.org/engage/burn-my-windows/).
* Added a menu entry with a link to the guide for creating new effect types.
* Added a new option to the Matrix Effect: **Vertical Overshooting**: This can add some vertical variation to the start and end position of the letter drops.
* Thanks to improved timing, the default animation time of several effects could be reduced.
diff --git a/docs/how-to-create-new-effects.md b/docs/how-to-create-new-effects.md
index a69d5ae..2a5714d 100644
--- a/docs/how-to-create-new-effects.md
+++ b/docs/how-to-create-new-effects.md
@@ -334,7 +334,7 @@ Remember to replace any occurrence of `simple-fade` with your effect's nick-name
1
- Reset to Default Value
+ Reset to Default Value
@@ -382,7 +382,7 @@ Remember to replace any occurrence of `simple-fade` with your effect's nick-name
1
- Reset to Default Value
+ Reset to Default Value
@@ -467,7 +467,7 @@ Remember to replace any occurrence of `simple-fade` with your effect's nick-name
- Reset to Default Value
+ Reset to Default Value
@@ -157,7 +157,7 @@
1
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk3/EnergizeB.ui b/resources/ui/gtk3/EnergizeB.ui
index 051821d..fbc8f0e 100644
--- a/resources/ui/gtk3/EnergizeB.ui
+++ b/resources/ui/gtk3/EnergizeB.ui
@@ -1,5 +1,5 @@
-
+10000
@@ -65,7 +65,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -114,7 +114,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -157,7 +157,7 @@
1
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk3/Fire.ui b/resources/ui/gtk3/Fire.ui
index 4b43025..85e703b 100644
--- a/resources/ui/gtk3/Fire.ui
+++ b/resources/ui/gtk3/Fire.ui
@@ -1,5 +1,5 @@
-
+10000
@@ -116,7 +116,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -164,7 +164,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -212,7 +212,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -274,7 +274,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -342,7 +342,7 @@
1
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk3/TVEffect.ui b/resources/ui/gtk3/TVEffect.ui
index adebe01..f7ef186 100644
--- a/resources/ui/gtk3/TVEffect.ui
+++ b/resources/ui/gtk3/TVEffect.ui
@@ -1,5 +1,5 @@
-
+5000
@@ -58,7 +58,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -101,7 +101,7 @@
1
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk3/Wisps.ui b/resources/ui/gtk3/Wisps.ui
index ff096ae..a9fff34 100644
--- a/resources/ui/gtk3/Wisps.ui
+++ b/resources/ui/gtk3/Wisps.ui
@@ -1,5 +1,5 @@
-
+10000
@@ -65,7 +65,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -114,7 +114,7 @@
1
- Reset to Default Value
+ Reset to Default Value
@@ -157,7 +157,7 @@
1
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk3/effectPage.ui b/resources/ui/gtk3/effectPage.ui
index 2ec5311..52419a5 100644
--- a/resources/ui/gtk3/effectPage.ui
+++ b/resources/ui/gtk3/effectPage.ui
@@ -1,5 +1,5 @@
-
+
diff --git a/resources/ui/gtk3/prefs.ui b/resources/ui/gtk3/prefs.ui
index 708d1f5..12a3b3f 100644
--- a/resources/ui/gtk3/prefs.ui
+++ b/resources/ui/gtk3/prefs.ui
@@ -1,5 +1,5 @@
-
+
@@ -230,7 +230,7 @@
1
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/BrokenGlass.ui b/resources/ui/gtk4/BrokenGlass.ui
index 55c30eb..e3f7a05 100644
--- a/resources/ui/gtk4/BrokenGlass.ui
+++ b/resources/ui/gtk4/BrokenGlass.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -95,7 +95,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -141,7 +141,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -187,7 +187,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -223,6 +223,7 @@
startcenter1
+ 1
diff --git a/resources/ui/gtk4/EnergizeA.ui b/resources/ui/gtk4/EnergizeA.ui
index 5236da0..c5e4470 100644
--- a/resources/ui/gtk4/EnergizeA.ui
+++ b/resources/ui/gtk4/EnergizeA.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -95,7 +95,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -129,7 +129,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/EnergizeB.ui b/resources/ui/gtk4/EnergizeB.ui
index 786afcb..6750851 100644
--- a/resources/ui/gtk4/EnergizeB.ui
+++ b/resources/ui/gtk4/EnergizeB.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -95,7 +95,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -129,7 +129,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/Fire.ui b/resources/ui/gtk4/Fire.ui
index 52c503a..372a658 100644
--- a/resources/ui/gtk4/Fire.ui
+++ b/resources/ui/gtk4/Fire.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -74,7 +74,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -120,7 +120,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -166,7 +166,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -219,7 +219,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -277,7 +277,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/Matrix.ui b/resources/ui/gtk4/Matrix.ui
index d15e81a..d0aa791 100644
--- a/resources/ui/gtk4/Matrix.ui
+++ b/resources/ui/gtk4/Matrix.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -95,7 +95,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -141,7 +141,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -187,7 +187,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -221,7 +221,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -255,7 +255,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/TRexAttack.ui b/resources/ui/gtk4/TRexAttack.ui
index b77e7f6..003c77b 100644
--- a/resources/ui/gtk4/TRexAttack.ui
+++ b/resources/ui/gtk4/TRexAttack.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -95,7 +95,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -141,7 +141,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -187,7 +187,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -221,7 +221,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/TVEffect.ui b/resources/ui/gtk4/TVEffect.ui
index f49f0bc..8ecf2c4 100644
--- a/resources/ui/gtk4/TVEffect.ui
+++ b/resources/ui/gtk4/TVEffect.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -83,7 +83,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/Wisps.ui b/resources/ui/gtk4/Wisps.ui
index 8e5bcb2..1591f46 100644
--- a/resources/ui/gtk4/Wisps.ui
+++ b/resources/ui/gtk4/Wisps.ui
@@ -1,5 +1,5 @@
-
+vertical
@@ -49,7 +49,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -95,7 +95,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
@@ -129,7 +129,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
diff --git a/resources/ui/gtk4/effectPage.ui b/resources/ui/gtk4/effectPage.ui
index f166da6..119340c 100644
--- a/resources/ui/gtk4/effectPage.ui
+++ b/resources/ui/gtk4/effectPage.ui
@@ -1,5 +1,5 @@
-
+
diff --git a/resources/ui/gtk4/prefs.ui b/resources/ui/gtk4/prefs.ui
index a4182b1..c884716 100644
--- a/resources/ui/gtk4/prefs.ui
+++ b/resources/ui/gtk4/prefs.ui
@@ -1,5 +1,5 @@
-
+
@@ -106,7 +106,7 @@
- Choose Effects
+ Choose Effectsopen-effect-menu
@@ -150,7 +150,7 @@
- Choose Effects
+ Choose Effectsclose-effect-menu
@@ -182,7 +182,7 @@
edit-clear-symbolic
- Reset to Default Value
+ Reset to Default Value
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..e045984 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
@@ -125,7 +127,7 @@ var Fire = class Fire {
dialog.getBuilder().get_object('settings-widget').connect('realize', (widget) => {
const presets = [
{
- name: 'Default Fire',
+ name: _('Default Fire'),
scale: 1.0,
speed: 0.5,
color1: 'rgba(76, 51, 25, 0.0)',
@@ -135,7 +137,7 @@ var Fire = class Fire {
color5: 'rgba(255, 255, 255, 1)'
},
{
- name: 'Hell Fire',
+ name: _('Hell Fire'),
scale: 1.5,
speed: 0.2,
color1: 'rgba(0,0,0,0)',
@@ -145,7 +147,7 @@ var Fire = class Fire {
color5: 'rgba(255, 255, 255, 1)'
},
{
- name: 'Dark and Smutty',
+ name: _('Dark and Smutty'),
scale: 1.0,
speed: 0.5,
color1: 'rgba(0,0,0,0)',
@@ -155,7 +157,7 @@ var Fire = class Fire {
color5: 'rgb(255,238,166)'
},
{
- name: 'Cold Breeze',
+ name: _('Cold Breeze'),
scale: 1.5,
speed: -0.1,
color1: 'rgba(0,110,255,0)',
@@ -165,7 +167,7 @@ var Fire = class Fire {
color5: 'rgb(97,189,255)'
},
{
- name: 'Santa is Coming',
+ name: _('Santa is Coming'),
scale: 0.4,
speed: -0.5,
color1: 'rgba(0,110,255,0)',
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