Skip to content

Commit

Permalink
[SettingsPage.qml] Improve #237 (#240)
Browse files Browse the repository at this point in the history
* [SettingsPage.qml] Improve #237

* [sailfishos-chum-gui.ts] Align with source code file

* [SettingsPage.qml] Add `code` attribute in string
  • Loading branch information
Olf0 authored Oct 18, 2023
1 parent 434a0a2 commit d26f9a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions qml/pages/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,19 @@ Page {
wrapMode: Text.WordWrap
}

// '<big>' does not work, but should: https://doc.qt.io/qt-5/richtext-html-subset.html#supported-tags
// hence using '<b>' (bold).
// `<big>`, `<kbd>` and `<dfn>` do not work, although all three should, see
// https://doc.qt.io/qt-5/richtext-html-subset.html#supported-tags
// Hence using `<b>` (bold), `<tt>` (typewriter) and `<i>` (italic) instead.
TextFieldDesc {
id: txtRelease
//% "<b>Press <kbd>Enter</kbd> to apply</b><br />"
//% "<b>Press <tt>Enter</tt> to apply</b><br />"
//% "Usually a specific SailfishOS:Chum repository is automatically selected according to the "
//% "installed Sailfish&nbsp;OS release version. To manually select a SailfishOS:Chum repository "
//% "for a specific Sailfish&nbsp;OS release, specify this release here (for example, 4.3.0.12). "
//% "for a specific Sailfish&nbsp;OS release, specify this release here (for example, <code>4.3.0.12</code>). "
//% "This is useful when the SailfishOS:Chum repository is not available for the installed "
//% "Sailfish&nbsp;OS version, as for Cbeta users."
description: qsTrId("chum-setings-override-release-description")
//% "<dfn>Specify a Sailfish&nbsp;OS version</dfn>"
//% "<i>Specify a Sailfish&nbsp;OS version</i>"
placeholderText: qsTrId("chum-setings-override-release-placeholder")
text: Chum.manualVersion
onEnterClicked: {
Expand Down
4 changes: 2 additions & 2 deletions translations/sailfishos-chum-gui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,12 +421,12 @@
</message>
<message id="chum-setings-override-release-description">
<location filename="../qml/pages/SettingsPage.qml" line="118"/>
<source>&lt;b&gt;Press &lt;kbd&gt;Enter&lt;/kbd&gt; to apply&lt;/b&gt;&lt;br /&gt;Usually a specific SailfishOS:Chum repository is automatically selected according to the installed Sailfish&amp;nbsp;OS release version. To manually select a SailfishOS:Chum repository for a specific Sailfish&amp;nbsp;OS release, specify this Sailfish&amp;nbsp;OS release here (for example, 4.3.0.12). This is useful when the SailfishOS:Chum repository is not available for the installed Sailfish&amp;nbsp;OS version, as for Cbeta users.</source>
<source>&lt;b&gt;Press &lt;tt&gt;Enter&lt;/tt&gt; to apply&lt;/b&gt;&lt;br /&gt;Usually a specific SailfishOS:Chum repository is automatically selected according to the installed Sailfish&amp;nbsp;OS release version. To manually select a SailfishOS:Chum repository for a specific Sailfish&amp;nbsp;OS release, specify this Sailfish&amp;nbsp;OS release here (for example, &lt;code&gt;4.3.0.12&lt;/code&gt;). This is useful when the SailfishOS:Chum repository is not available for the installed Sailfish&amp;nbsp;OS version, as for Cbeta users.</source>
<translation type="unfinished"></translation>
</message>
<message id="chum-setings-override-release-placeholder">
<location filename="../qml/pages/SettingsPage.qml" line="120"/>
<source>&lt;dfn&gt;Specify a Sailfish&amp;nbsp;OS version&lt;/dfn&gt;</source>
<source>&lt;i&gt;Specify a Sailfish&amp;nbsp;OS version&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message id="chum-categories">
Expand Down

0 comments on commit d26f9a8

Please sign in to comment.