f42d9df3e0
Commit dbf993300a
moved all inline D-Bus interface descriptions to template
strings so we can stop escaping line breaks.
Unfortunately that unveiled a grave bug in xgettext, which currently cannot
handle files that contain both backtick and slash characters - as a result,
translations from affected files have started to disappear as translators
run xgettext/msgmerge.
Instead of reverting the change and getting the crusty escaping back, we
will take this as an opportunity to stop inlining the XML altogether and
load it from a resource instead.
To facilitate that, add a small helper method that loads a D-Bus interface
description from a dedicated resource bundle.
https://gitlab.gnome.org/GNOME/gnome-shell/issues/537
21 lines
753 B
JavaScript
21 lines
753 B
JavaScript
// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
|
|
|
|
/* The name of this package (not localized) */
|
|
var PACKAGE_NAME = '@PACKAGE_NAME@';
|
|
/* The version of this package */
|
|
var PACKAGE_VERSION = '@PACKAGE_VERSION@';
|
|
/* 1 if gnome-bluetooth is available, 0 otherwise */
|
|
var HAVE_BLUETOOTH = @HAVE_BLUETOOTH@;
|
|
/* 1 if networkmanager is available, 0 otherwise */
|
|
var HAVE_NETWORKMANAGER = @HAVE_NETWORKMANAGER@;
|
|
/* gettext package */
|
|
var GETTEXT_PACKAGE = '@GETTEXT_PACKAGE@';
|
|
/* locale dir */
|
|
var LOCALEDIR = '@datadir@/locale';
|
|
/* other standard directories */
|
|
var LIBEXECDIR = '@libexecdir@';
|
|
var PKGDATADIR = '@datadir@/@PACKAGE_NAME@';
|
|
var VPNDIR = '@vpndir@';
|
|
/* g-i package versions */
|
|
var LIBMUTTER_API_VERSION = '@LIBMUTTER_API_VERSION@'
|