Skip to content

Commit

Permalink
Add miles per hour for weather speeds. #866
Browse files Browse the repository at this point in the history
  • Loading branch information
theyosh committed Dec 27, 2023
1 parent 9a6ee76 commit 2ccfb13
Show file tree
Hide file tree
Showing 13 changed files with 194 additions and 11 deletions.
16 changes: 16 additions & 0 deletions gui/locale/ca.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Serveis de notificació"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Benachrichtigungsdienste"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
6 changes: 6 additions & 0 deletions gui/locale/en_GB.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,12 @@
},
"title": "Notification services"
},
"settings": {
"units": {
"kelvin": "Kelvin",
"ukgall": "UK Gallons"
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Notification services"
},
"settings": {
"units": {
"beaufort": "Beaufort",
"celsius": "Celsius",
"cm": "Centimeter",
"fahrenheit": "Fahrenheit",
"inch": "Inch",
"kelvin": "Kelvin",
"km_h": "Kilometer per hour",
"l": "Liter",
"m_h": "Miles per hour",
"m_s": "Meter per second",
"ukgall": "UK Gallons",
"usgall": "US Gallons"
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -1619,6 +1619,22 @@
},
"title": "Servicios de notificación"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/fr_BE.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Notifications"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/it_IT.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Località"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "通知サービス"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/nb_NO.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Varsler"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/nl_NL.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Meldingsdiensten"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Usługi powiadomień"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
16 changes: 16 additions & 0 deletions gui/locale/pt_BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -1674,6 +1674,22 @@
},
"title": "Serviços de notificação"
},
"settings": {
"units": {
"beaufort": "",
"celsius": "",
"cm": "",
"fahrenheit": "",
"inch": "",
"kelvin": "",
"km_h": "",
"l": "",
"m_h": "",
"m_s": "",
"ukgall": "",
"usgall": ""
}
},
"system": {
"log": {
"download": {
Expand Down
23 changes: 12 additions & 11 deletions gui/pages/Settings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,24 @@
const units = {
temperature: [
{ value: 'celsius', text: 'Celsius' },
{ value: 'fahrenheit', text: 'Fahrenheit' },
{ value: 'kelvin', text: 'Kelvin' },
{ value: 'celsius', text: $_('settings.units.celsius', { default: 'Celsius' }) },
{ value: 'fahrenheit', text: $_('settings.units.fahrenheit', { default: 'Fahrenheit' }) },
{ value: 'kelvin', text: $_('settings.units.kelvin', { default: 'Kelvin' }) },
],
distance: [
{ value: 'cm', text: 'Centimetre' },
{ value: 'inch', text: 'Inch' },
{ value: 'cm', text: $_('settings.units.cm', { default: 'Centimeter' })},
{ value: 'inch', text: $_('settings.units.inch', { default: 'Inch' })},
],
liquid_volume: [
{ value: 'l', text: 'Litre' },
{ value: 'ukgall', text: 'UK Gallons' },
{ value: 'usgall', text: 'US Gallons' },
{ value: 'l', text: $_('settings.units.l', { default: 'Liter' })},
{ value: 'ukgall', text: $_('settings.units.ukgall', { default: 'UK Gallons' })},
{ value: 'usgall', text: $_('settings.units.usgall', { default: 'US Gallons' })},
],
wind_speed: [
{ value: 'm/s', text: 'Metre per second' },
{ value: 'km/h', text: 'Kilometre per hour' },
{ value: 'beaufort', text: 'Beaufort' },
{ value: 'm/s', text: $_('settings.units.m_s', { default: 'Meter per second' })},
{ value: 'km/h', text: $_('settings.units.km_h', { default: 'Kilometer per hour' })},
{ value: 'm/h', text: $_('settings.units.m_h', { default: 'Miles per hour' })},
{ value: 'beaufort', text: $_('settings.units.beaufort', { default: 'Beaufort' })},
],
};
Expand Down

0 comments on commit 2ccfb13

Please sign in to comment.