Merge lp:~vthompson/ubuntu-weather-app/reboot-remove-precip-from-settings into lp:ubuntu-weather-app

Proposed by Victor Thompson
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 58
Merged at revision: 60
Proposed branch: lp:~vthompson/ubuntu-weather-app/reboot-remove-precip-from-settings
Merge into: lp:ubuntu-weather-app
Diff against target: 140 lines (+9/-63)
2 files modified
app/ui/settings/UnitsPage.qml (+0/-36)
po/com.ubuntu.weather.pot (+9/-27)
To merge this branch: bzr merge lp:~vthompson/ubuntu-weather-app/reboot-remove-precip-from-settings
Reviewer Review Type Date Requested Status
Nekhelesh Ramananthan (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+263210@code.launchpad.net

Commit message

Remove precip settings from the Settings Page because it is not part of the data shown to the user

Description of the change

Remove precip settings from the Settings Page because it is not part of the data shown to the user. None of the design specs show the total amount of rain being displayed. I suggest we leave the setting in the app's storage for now, just in case we want to introduce it later.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

It seems to have been overlooked by design. But considering we could easily re-add the functionality anytime if required I approve.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'app/ui/settings/UnitsPage.qml'
--- app/ui/settings/UnitsPage.qml 2015-06-21 14:54:05 +0000
+++ app/ui/settings/UnitsPage.qml 2015-06-29 00:23:21 +0000
@@ -48,22 +48,6 @@
48 }48 }
4949
50 ListModel {50 ListModel {
51 id: precipationModel
52 Component.onCompleted: initialize()
53 function initialize() {
54 // TRANSLATORS: The strings are standard measurement units
55 // of precipitation in millimeters and are shown in the settings page.
56 // Only the abbreviated form of millimeters should be used.
57 precipationModel.append({"text": i18n.tr("mm"), "value": "mm"})
58
59 // TRANSLATORS: The strings are standard measurement units
60 // of precipitation in inches and are shown in the settings page.
61 // Only the abbreviated form of inches should be used.
62 precipationModel.append({"text": i18n.tr("in"), "value": "in"})
63 }
64 }
65
66 ListModel {
67 id: windSpeedModel51 id: windSpeedModel
68 Component.onCompleted: initialize()52 Component.onCompleted: initialize()
69 function initialize() {53 function initialize() {
@@ -104,26 +88,6 @@
104 }88 }
10589
106 ExpandableListItem {90 ExpandableListItem {
107 id: precipationSetting
108
109 listViewHeight: precipationModel.count*units.gu(7) - units.gu(1)
110 model: precipationModel
111 text: i18n.tr("Precipitation")
112 subText: settings.precipUnits === "mm" ? i18n.tr("mm")
113 : i18n.tr("in")
114
115 delegate: StandardListItem {
116 title: model.text
117 icon: "ok"
118 showIcon: settings.precipUnits === model.value
119 onClicked: {
120 settings.precipUnits = model.value
121 refreshData(true)
122 }
123 }
124 }
125
126 ExpandableListItem {
127 id: windSetting91 id: windSetting
12892
129 listViewHeight: windSpeedModel.count*units.gu(7) - units.gu(1)93 listViewHeight: windSpeedModel.count*units.gu(7) - units.gu(1)
13094
=== modified file 'po/com.ubuntu.weather.pot'
--- po/com.ubuntu.weather.pot 2015-06-21 20:14:39 +0000
+++ po/com.ubuntu.weather.pot 2015-06-29 00:23:21 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: ubuntu-weather-app\n"9"Project-Id-Version: ubuntu-weather-app\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2015-06-21 20:10+0000\n"11"POT-Creation-Date: 2015-06-28 19:17-0500\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -66,11 +66,11 @@
66msgid "Cancel selection"66msgid "Cancel selection"
67msgstr ""67msgstr ""
6868
69#: ../app/ubuntu-weather-app.qml:16769#: ../app/ubuntu-weather-app.qml:168
70msgid "Searching for current location..."70msgid "Searching for current location..."
71msgstr ""71msgstr ""
7272
73#: ../app/ubuntu-weather-app.qml:17673#: ../app/ubuntu-weather-app.qml:177
74msgid "Add a manual location"74msgid "Add a manual location"
75msgstr ""75msgstr ""
7676
@@ -152,54 +152,36 @@
152#. TRANSLATORS: The strings are standard measurement units152#. TRANSLATORS: The strings are standard measurement units
153#. of temperature in Celcius and are shown in the settings page.153#. of temperature in Celcius and are shown in the settings page.
154#. Only the abbreviated form of Celcius should be used.154#. Only the abbreviated form of Celcius should be used.
155#: ../app/ui/settings/UnitsPage.qml:41 ../app/ui/settings/UnitsPage.qml:92155#: ../app/ui/settings/UnitsPage.qml:41 ../app/ui/settings/UnitsPage.qml:76
156msgid "°C"156msgid "°C"
157msgstr ""157msgstr ""
158158
159#. TRANSLATORS: The strings are standard measurement units159#. TRANSLATORS: The strings are standard measurement units
160#. of temperature in Fahrenheit and are shown in the settings page.160#. of temperature in Fahrenheit and are shown in the settings page.
161#. Only the abbreviated form of Fahrenheit should be used.161#. Only the abbreviated form of Fahrenheit should be used.
162#: ../app/ui/settings/UnitsPage.qml:46 ../app/ui/settings/UnitsPage.qml:93162#: ../app/ui/settings/UnitsPage.qml:46 ../app/ui/settings/UnitsPage.qml:77
163msgid "°F"163msgid "°F"
164msgstr ""164msgstr ""
165165
166#. TRANSLATORS: The strings are standard measurement units166#. TRANSLATORS: The strings are standard measurement units
167#. of precipitation in millimeters and are shown in the settings page.
168#. Only the abbreviated form of millimeters should be used.
169#: ../app/ui/settings/UnitsPage.qml:57 ../app/ui/settings/UnitsPage.qml:112
170msgid "mm"
171msgstr ""
172
173#. TRANSLATORS: The strings are standard measurement units
174#. of precipitation in inches and are shown in the settings page.
175#. Only the abbreviated form of inches should be used.
176#: ../app/ui/settings/UnitsPage.qml:62 ../app/ui/settings/UnitsPage.qml:113
177msgid "in"
178msgstr ""
179
180#. TRANSLATORS: The strings are standard measurement units
181#. of wind speed in kilometers per hour and are shown in the settings page.167#. of wind speed in kilometers per hour and are shown in the settings page.
182#. Only the abbreviated form of kilometers per hour should be used.168#. Only the abbreviated form of kilometers per hour should be used.
183#: ../app/ui/settings/UnitsPage.qml:73 ../app/ui/settings/UnitsPage.qml:132169#: ../app/ui/settings/UnitsPage.qml:57 ../app/ui/settings/UnitsPage.qml:96
184msgid "kph"170msgid "kph"
185msgstr ""171msgstr ""
186172
187#. TRANSLATORS: The strings are standard measurement units173#. TRANSLATORS: The strings are standard measurement units
188#. of wind speed in miles per hour and are shown in the settings page.174#. of wind speed in miles per hour and are shown in the settings page.
189#. Only the abbreviated form of miles per hour should be used.175#. Only the abbreviated form of miles per hour should be used.
190#: ../app/ui/settings/UnitsPage.qml:78 ../app/ui/settings/UnitsPage.qml:133176#: ../app/ui/settings/UnitsPage.qml:62 ../app/ui/settings/UnitsPage.qml:97
191msgid "mph"177msgid "mph"
192msgstr ""178msgstr ""
193179
194#: ../app/ui/settings/UnitsPage.qml:91180#: ../app/ui/settings/UnitsPage.qml:75
195msgid "Temperature"181msgid "Temperature"
196msgstr ""182msgstr ""
197183
198#: ../app/ui/settings/UnitsPage.qml:111184#: ../app/ui/settings/UnitsPage.qml:95
199msgid "Precipitation"
200msgstr ""
201
202#: ../app/ui/settings/UnitsPage.qml:131
203msgid "Wind Speed"185msgid "Wind Speed"
204msgstr ""186msgstr ""
205187

Subscribers

People subscribed via source and target branches

to all changes: