This repository contains the browser extension that provides integration with GNOME Shell and the corresponding extensions repository at https://extensions.gnome.org/.
This extension works in conjunction with its os-native counterpart.
First you need to install the build requirements:
Then invoke meson to build the extension:
meson builddir
cd builddir
meson compile
This will produce 2 zip files in the builddir
folder:
These files can be uploaded to the corresponding browser add-on websites.
Unpacked extensions are also available in the builddir/extension
folder which can be loaded in web browsers for development purposes.
This project uses the GNOME Translation Project. Translation statistics can be obtained on the corresponding Damned Lies page.
All user-visible web extension strings are maintained by developers in the messages.json file, which is located in the extension/extension/_locale/en/
folder. The file format is described here.
The Gettext template is located in po/chrome-gnome-shell.pot
and automatically generated using meson:
meson -Dbuild_messages=true -Dbuild_extension=false builddir
cd builddir
meson compile
As result of those commands:
po/chrome-gnome-shell.pot
.po/*.po
files will be updated by msgmerge
using the new gettext template.This process is fully compatible with Damned Lies.
There is a limited number of supported locales.
If you use an unsupported locale, Google Chrome will ignore it.
To create a new translation, you can use the msginit
command (or any po editor) and the gettext template. Please refer to the Translation Project wiki page for further information about optimal translation workflow.