Contribute Page: Add version number
This commit is contained in:
@@ -23,12 +23,25 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Night Theme Switcher</property>
|
||||
<property name="wrap">True</property>
|
||||
<style>
|
||||
<class name="title-1"/>
|
||||
</style>
|
||||
<object class="GtkBox">
|
||||
<property name="orientation">vertical</property>
|
||||
<property name="spacing">6</property>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label">Night Theme Switcher</property>
|
||||
<property name="wrap">True</property>
|
||||
<style>
|
||||
<class name="title-1"/>
|
||||
</style>
|
||||
</object>
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<binding name="label">
|
||||
<closure type="gchararray" function="getVersionString"/>
|
||||
</binding>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
</child>
|
||||
</object>
|
||||
|
||||
@@ -8,7 +8,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: nightthemeswitcher@romainvigier.fr\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"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -72,15 +72,15 @@ msgstr ""
|
||||
msgid "Contribute"
|
||||
msgstr ""
|
||||
|
||||
#: src/data/ui/ContributePage.ui:42
|
||||
#: src/data/ui/ContributePage.ui:55
|
||||
msgid "View the code and report issues"
|
||||
msgstr ""
|
||||
|
||||
#: src/data/ui/ContributePage.ui:55
|
||||
#: src/data/ui/ContributePage.ui:68
|
||||
msgid "Contribute to the translation"
|
||||
msgstr ""
|
||||
|
||||
#: src/data/ui/ContributePage.ui:68
|
||||
#: src/data/ui/ContributePage.ui:81
|
||||
msgid "Support me with a donation"
|
||||
msgstr ""
|
||||
|
||||
@@ -225,31 +225,31 @@ msgstr ""
|
||||
msgid ":"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:213
|
||||
#: src/modules/TimerOndemand.js:214
|
||||
msgid "Turn Night Mode Off"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:213
|
||||
#: src/modules/TimerOndemand.js:214
|
||||
msgid "Turn Night Mode On"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:228
|
||||
#: src/modules/TimerOndemand.js:229
|
||||
msgid "Extension Settings"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:237
|
||||
#: src/modules/TimerOndemand.js:238
|
||||
msgid "Night Mode Off"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:237
|
||||
#: src/modules/TimerOndemand.js:238
|
||||
msgid "Night Mode On"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:238
|
||||
#: src/modules/TimerOndemand.js:239
|
||||
msgid "Turn Off"
|
||||
msgstr ""
|
||||
|
||||
#: src/modules/TimerOndemand.js:238
|
||||
#: src/modules/TimerOndemand.js:239
|
||||
msgid "Turn On"
|
||||
msgstr ""
|
||||
|
||||
@@ -257,6 +257,11 @@ msgstr ""
|
||||
msgid "Only JPEG, PNG, TIFF, SVG and XML files can be set as background image."
|
||||
msgstr ""
|
||||
|
||||
#: src/preferences/ContributePage.js:16
|
||||
#, javascript-format
|
||||
msgid "Version %d"
|
||||
msgstr ""
|
||||
|
||||
#: src/preferences/SchedulePage.js:48
|
||||
msgid "Location Services"
|
||||
msgstr ""
|
||||
|
||||
@@ -5,9 +5,14 @@ const { Adw, GLib, GObject } = imports.gi;
|
||||
const { extensionUtils } = imports.misc;
|
||||
|
||||
const Me = extensionUtils.getCurrentExtension();
|
||||
const _ = extensionUtils.gettext;
|
||||
|
||||
|
||||
var ContributePage = GObject.registerClass({
|
||||
GTypeName: 'ContributePage',
|
||||
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