gnome-shell/js/extensions
Florian Müllner a6d8e7ab6f extensionBase: Use UUID as fallback gettext domain
Nowadays we can set up translations automatically, but only when
the domain is provided with the metadata.

This can be a problem, for example our extension templates use
the automatic translation handling that we recommend, but as a
result the code will throw an error unless `gettext-domain` is
added to the metadata.

Binding a text domain is cheap enough to not care about unnecessary
or duplicated calls, so add a final fallback to the UUID when no
domain was provided as parameter or in the metadata.

There is already a precedent with the `gnome-extensions pack` command
that falls back to the UUID when no explicit gettext domain was
included in the metadata.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2888>
2023-08-29 21:21:51 +00:00
..
extension.js js: Port to modules 2023-08-06 13:02:49 +02:00
prefs.js extensions: Make ExtensionPreferences more flexible 2023-07-30 10:29:44 +03:00
sharedInternals.js extensionBase: Use UUID as fallback gettext domain 2023-08-29 21:21:51 +00:00