-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use KDE Connect's verification codes #1148
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2515,14 +2515,14 @@ SPDX-License-Identifier: GPL-2.0-or-later | |
</accessibility> | ||
</object> | ||
</child> | ||
<accessibility> | ||
<relation type="controller-for" target="stack"/> | ||
</accessibility> | ||
<child internal-child="accessible"> | ||
<object class="AtkObject" id="sidebar-atkobject"> | ||
<property name="AtkObject::accessible-name" translatable="yes">Device Settings</property> | ||
</object> | ||
</child> | ||
<accessibility> | ||
<relation type="controller-for" target="stack"/> | ||
</accessibility> | ||
</object> | ||
<packing> | ||
<property name="left_attach">0</property> | ||
|
@@ -2545,88 +2545,228 @@ SPDX-License-Identifier: GPL-2.0-or-later | |
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<child> | ||
<object class="GtkInfoBar"> | ||
<object class="GtkStack" id="infobar_stack"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<child internal-child="action_area"> | ||
<object class="GtkButtonBox"> | ||
<property name="can_focus">False</property> | ||
<property name="spacing">6</property> | ||
<property name="layout_style">end</property> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
<property name="can-focus">False</property> | ||
<child> | ||
<object class="GtkInfoBar" id="infobar_verify"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<child internal-child="action_area"> | ||
<object class="GtkButtonBox"> | ||
<property name="can-focus">False</property> | ||
<property name="spacing">6</property> | ||
<property name="layout-style">end</property> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<object class="GtkSpinner"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="active">True</property> | ||
</object> | ||
<packing> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">2</property> | ||
</packing> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkButton"> | ||
<property name="label" translatable="yes">Pair</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">True</property> | ||
<property name="receives_default">True</property> | ||
<property name="action_name">settings.pair</property> | ||
<child internal-child="content_area"> | ||
<object class="GtkBox"> | ||
<property name="can-focus">False</property> | ||
<property name="spacing">16</property> | ||
<child> | ||
<!-- n-columns=3 n-rows=3 --> | ||
<object class="GtkGrid"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<child> | ||
<object class="GtkLabel"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label">🔑</property> | ||
</object> | ||
<packing> | ||
<property name="left-attach">0</property> | ||
<property name="top-attach">1</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkLabel" id="verifycode"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
</object> | ||
<packing> | ||
<property name="left-attach">1</property> | ||
<property name="top-attach">1</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">2</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="position">0</property> | ||
<property name="name">page0</property> | ||
<property name="title" translatable="yes">page0</property> | ||
</packing> | ||
</child> | ||
<child internal-child="content_area"> | ||
<object class="GtkBox"> | ||
<property name="can_focus">False</property> | ||
<property name="spacing">6</property> | ||
<child> | ||
<object class="GtkGrid"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<child> | ||
<object class="GtkInfoBar" id="infobar_pair"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<child internal-child="action_area"> | ||
<object class="GtkButtonBox"> | ||
<property name="can-focus">False</property> | ||
<property name="spacing">6</property> | ||
<property name="layout-style">end</property> | ||
<child> | ||
<object class="GtkLabel"> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<object class="GtkButton"> | ||
<property name="label" translatable="yes" context="Send a pair request to the device">Request pairing</property> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label" translatable="yes">Device is unpaired</property> | ||
<attributes> | ||
<attribute name="weight" value="bold"/> | ||
</attributes> | ||
<property name="can-focus">True</property> | ||
<property name="receives-default">True</property> | ||
<property name="action-name">settings.pair</property> | ||
</object> | ||
<packing> | ||
<property name="left_attach">0</property> | ||
<property name="top_attach">0</property> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">2</property> | ||
</packing> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
<child internal-child="content_area"> | ||
<object class="GtkBox"> | ||
<property name="can-focus">False</property> | ||
<property name="spacing">6</property> | ||
<child> | ||
<object class="GtkLabel"> | ||
<!-- n-columns=3 n-rows=3 --> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Were these dimension comments inserted automatically by some tool, or did you place them manually? I don't love embedding narration into code, especially as hidden comment text. Simple reason: I have never, ever seen a narrative comment get updated when subsequent changes to the code turn it into a complete LIE. Not one single time. Any narrative comment that's more than a year or two old, or is located in a file that's had more than 20 commits touch it since then, has a roughly 99% chance of being completely false. And the only thing worse than a comment that describes code, is a comment that describes code incorrectly. ...But if some tool manages those, then I suppose it's fine. At least when that tool is used to make changes, they'll presumably be brought up to date. |
||
<object class="GtkGrid"> | ||
<property name="visible">True</property> | ||
<property name="can_focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label" translatable="yes">You may configure this device before pairing</property> | ||
<property name="can-focus">False</property> | ||
<child> | ||
<object class="GtkLabel"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label" translatable="yes">Device is unpaired</property> | ||
<attributes> | ||
<attribute name="weight" value="bold"/> | ||
</attributes> | ||
</object> | ||
<packing> | ||
<property name="left-attach">0</property> | ||
<property name="top-attach">0</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<object class="GtkLabel"> | ||
<property name="visible">True</property> | ||
<property name="can-focus">False</property> | ||
<property name="halign">start</property> | ||
<property name="label" translatable="yes">You may configure this device before pairing</property> | ||
</object> | ||
<packing> | ||
<property name="left-attach">0</property> | ||
<property name="top-attach">1</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="left_attach">0</property> | ||
<property name="top_attach">1</property> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">True</property> | ||
<property name="fill">True</property> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="position">0</property> | ||
</packing> | ||
</child> | ||
</object> | ||
<packing> | ||
<property name="expand">False</property> | ||
<property name="fill">False</property> | ||
<property name="position">0</property> | ||
<property name="position">1</property> | ||
</packing> | ||
</child> | ||
</object> | ||
|
@@ -2636,11 +2776,17 @@ SPDX-License-Identifier: GPL-2.0-or-later | |
</style> | ||
</object> | ||
<packing> | ||
<property name="left_attach">0</property> | ||
<property name="top_attach">0</property> | ||
<property name="left-attach">0</property> | ||
<property name="top-attach">0</property> | ||
<property name="width">3</property> | ||
</packing> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
<child> | ||
<placeholder/> | ||
</child> | ||
</template> | ||
|
||
<!-- Device Menu --> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be a translator
comment=
property, rather than acontext=
. Contexts are typically used in a more structured way, usually as a hierarchy based on things like class names or high-level UI objects.1 (For example, obvious picks for the context of these messages might beGSConnectPreferencesDevicePanel
orPreferences|Device
.)Comments, OTOH, are for supplying free-form hints about intended meaning to assist translators, as you've done. 👍
Notes