gnome-shell/subprojects/extensions-tool
Florian Müllner 1deb13e1aa extensionUtils: Add gettext convenience helpers
We have initTranslations() for binding an extension's
gettext domain, but nothing to help with using gettext
from an extension.

Such help would be useful though, as an extension that
calls textdomain() like a normal application would
inadvertently changes the default domain for the whole
gnome-shell process.

Instead, extensions have to use domain-specific versions
of the gettext functions:

```js
const Gettext = imports.gettext.domain('my-extension');
const _ = Gettext.gettext;
```

Make this a bit easier by adding those functions directly
to the extensions object when initTranslations() is called,
then expose helper functions for calling them.

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2594

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1941>
2021-08-14 18:45:25 +00:00
..
completion/bash extensions-tool: Add --template create option 2020-04-07 20:27:00 +00:00
man extensions-tool: Add --template create option 2020-04-07 20:27:00 +00:00
po extensions-tool: Set up translations for standalone builds 2019-12-18 19:13:24 +00:00
src extensionUtils: Add gettext convenience helpers 2021-08-14 18:45:25 +00:00
COPYING extensions-tool: Move to a subproject 2019-12-18 19:13:24 +00:00
generate-translations.sh extensions-tool: Set up translations for standalone builds 2019-12-18 19:13:24 +00:00
meson_options.txt build: Make bash-completion support optional 2020-03-21 20:44:43 +01:00
meson.build Post-release version bump 2021-05-14 16:54:06 +02:00
README.md extensions-tool: Set up translations for standalone builds 2019-12-18 19:13:24 +00:00

gnome-extensions-tool

gnome-extensions-tool is a command line utility for managing GNOME Shell extensions. It is usually built as part of gnome-shell, but can be used as a stand-alone project as well (for example to create an extension bundle as part of continuous integration).

Bugs should be reported to the GNOME bug tracking system.

Building

Before the project can be built stand-alone, the po directory has to be populated with translations (from gnome-shell).

To do that, simply run the included script:

$ ./generate-translations.sh

License

gnome-extensions-tool is distributed under the terms of the GNU General Public License, version 3 or later. See the COPYING file for details.