Contribute Page: Add version number
This commit is contained in:
@@ -22,6 +22,10 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
<property name="pixel-size">64</property>
|
<property name="pixel-size">64</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkBox">
|
||||||
|
<property name="orientation">vertical</property>
|
||||||
|
<property name="spacing">6</property>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkLabel">
|
<object class="GtkLabel">
|
||||||
<property name="label">Night Theme Switcher</property>
|
<property name="label">Night Theme Switcher</property>
|
||||||
@@ -31,6 +35,15 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
|||||||
</style>
|
</style>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkLabel">
|
||||||
|
<binding name="label">
|
||||||
|
<closure type="gchararray" function="getVersionString"/>
|
||||||
|
</binding>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
</object>
|
</object>
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: nightthemeswitcher@romainvigier.fr\n"
|
"Project-Id-Version: nightthemeswitcher@romainvigier.fr\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2022-07-28 09:52+0200\n"
|
"POT-Creation-Date: 2022-07-29 10:53+0200\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@@ -72,15 +72,15 @@ msgstr ""
|
|||||||
msgid "Contribute"
|
msgid "Contribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/data/ui/ContributePage.ui:42
|
#: src/data/ui/ContributePage.ui:55
|
||||||
msgid "View the code and report issues"
|
msgid "View the code and report issues"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/data/ui/ContributePage.ui:55
|
#: src/data/ui/ContributePage.ui:68
|
||||||
msgid "Contribute to the translation"
|
msgid "Contribute to the translation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/data/ui/ContributePage.ui:68
|
#: src/data/ui/ContributePage.ui:81
|
||||||
msgid "Support me with a donation"
|
msgid "Support me with a donation"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -225,31 +225,31 @@ msgstr ""
|
|||||||
msgid ":"
|
msgid ":"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:213
|
#: src/modules/TimerOndemand.js:214
|
||||||
msgid "Turn Night Mode Off"
|
msgid "Turn Night Mode Off"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:213
|
#: src/modules/TimerOndemand.js:214
|
||||||
msgid "Turn Night Mode On"
|
msgid "Turn Night Mode On"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:228
|
#: src/modules/TimerOndemand.js:229
|
||||||
msgid "Extension Settings"
|
msgid "Extension Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:237
|
#: src/modules/TimerOndemand.js:238
|
||||||
msgid "Night Mode Off"
|
msgid "Night Mode Off"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:237
|
#: src/modules/TimerOndemand.js:238
|
||||||
msgid "Night Mode On"
|
msgid "Night Mode On"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:238
|
#: src/modules/TimerOndemand.js:239
|
||||||
msgid "Turn Off"
|
msgid "Turn Off"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/modules/TimerOndemand.js:238
|
#: src/modules/TimerOndemand.js:239
|
||||||
msgid "Turn On"
|
msgid "Turn On"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@@ -257,6 +257,11 @@ msgstr ""
|
|||||||
msgid "Only JPEG, PNG, TIFF, SVG and XML files can be set as background image."
|
msgid "Only JPEG, PNG, TIFF, SVG and XML files can be set as background image."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/preferences/ContributePage.js:16
|
||||||
|
#, javascript-format
|
||||||
|
msgid "Version %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/preferences/SchedulePage.js:48
|
#: src/preferences/SchedulePage.js:48
|
||||||
msgid "Location Services"
|
msgid "Location Services"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|||||||
@@ -5,9 +5,14 @@ const { Adw, GLib, GObject } = imports.gi;
|
|||||||
const { extensionUtils } = imports.misc;
|
const { extensionUtils } = imports.misc;
|
||||||
|
|
||||||
const Me = extensionUtils.getCurrentExtension();
|
const Me = extensionUtils.getCurrentExtension();
|
||||||
|
const _ = extensionUtils.gettext;
|
||||||
|
|
||||||
|
|
||||||
var ContributePage = GObject.registerClass({
|
var ContributePage = GObject.registerClass({
|
||||||
GTypeName: 'ContributePage',
|
GTypeName: 'ContributePage',
|
||||||
Template: 'resource:///org/gnome/shell/extensions/nightthemeswitcher/preferences/ui/ContributePage.ui',
|
Template: 'resource:///org/gnome/shell/extensions/nightthemeswitcher/preferences/ui/ContributePage.ui',
|
||||||
}, class ContributePage extends Adw.PreferencesPage {});
|
}, class ContributePage extends Adw.PreferencesPage {
|
||||||
|
getVersionString(_page) {
|
||||||
|
return _('Version %d').format(Me.metadata.version);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user