Ask / Submit
6

Spelling error in Sailfish Weather code [answered]

asked 2017-12-06 13:25:31 +0200

Edz gravatar image

updated 2017-12-06 16:26:51 +0200

lakutalo gravatar image

@jiit - Firstly, I realise this will be viewed as being very low priority, as the errors are not visible when using the application, but it still comes across as being a little unprofessional.

While playing around, making patches and fishing for ideas, I noticed a new word; PRECIPIRATION - which of course, is not a new word at all, but a simply typo of PRECIPITATION.

The files affected are;

/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js

& ALL translations files for Sailfish Weather;

Binary file /usr/share/translations/sailfish_components_weather_qt5-bn_IN.qm matches
edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Edz
close date 2017-12-07 18:46:12.674571

Comments

Consider it a feature. Pirates FTW P-)

Kao ( 2017-12-07 01:06:50 +0200 )edit

1 Answer

Sort by » oldest newest most voted
8

answered 2017-12-07 12:12:02 +0200

jahonen gravatar image

Hi,

Thanks for the feedback! We will fix the typo for future releases!

Regards,

Jarkko

edit flag offensive delete publish link more

Comments

Thanks for the response :)

Edz ( 2017-12-07 18:45:58 +0200 )edit

Hi again,

I can't find any occurrences of the misspelt "precipiration" in our translation mass / TM. Which release are you using?

Thanks!

Jarkko

jahonen ( 2017-12-08 10:52:59 +0200 )edit

@jahonen - sailfish-weather 0.2.3 - according to Jolla Store details.

Output from search parameters: devel-su grep -r 'precipiration' /usr

Binary file /usr/share/translations/sailfish_components_weather_qt5-bn_IN.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-da.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-de.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-en_GB.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-en_US.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-es.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-fi.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-fr.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-gu.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-hi.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-it.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-kn.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-ml.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-mr.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-nb.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-pa.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-pl.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-pt.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-ru.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-sv.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-ta.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-te.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-tt.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-zh_CN.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5-zh_HK.qm matches
Binary file /usr/share/translations/sailfish_components_weather_qt5_eng_en.qm matches
/usr/share/patchmanager/patches/sailfishos-patch-windspeed-ms-to-mph/unified_diff.patch:         
"precipitationRate": precipirationRate,
/usr/share/patchmanager/patches/sailfishos-patch-windspeed-ms-to-mph/unified_diff.patch:         
"precipitationType": precipirationType,
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    var precipirationRateCode = 
weather.code.charAt(2)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    var precipirationRate = ""
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    switch (precipirationRateCode) {
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        precipirationRate = qsTrId("weather-la-
precipitation_none")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        precipirationRate = qsTrId("weather-la-
precipitation_slight")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        precipirationRate = qsTrId("weather-la-
precipitation_showers")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        precipirationRate = qsTrId("weather-la-
precipitation_normal")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        precipirationRate = qsTrId("weather-la-
precipitation_thunder")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        console.log("WeatherModel warning: invalid 
precipiration rate code", precipirationRateCode)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    var precipirationType = ""
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    if (precipirationRateCode === '0') { // no rain
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        precipirationType = qsTrId("weather-la-
precipirationtype_none")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        var precipirationTypeCode = 
weather.code.charAt(3)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        switch (precipirationTypeCode) {
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            precipirationType = qsTrId("weather-la-
precipitationtype_rain")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            precipirationType = qsTrId("weather-la-
precipitationtype_sleet")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            precipirationType = qsTrId("weather-la-
precipitationtype_snow")
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            console.log("WeatherModel warning: invalid 
precipiration type code", precipirationTypeCode)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        "precipitationRate": precipirationRate,
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        "precipitationType": precipirationType,
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    var precipirationRate = code.charAt(2)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    var precipirationType = code.charAt(3)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:    switch(precipirationRate) {
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        switch (precipirationType) {
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            type = "rain-water-" + precipirationRate
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            type = "rain-sleet-" + precipirationRate
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            type = "rain-snow-" + precipirationRate
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:            console.log("WeatherModel warning: invalid 
precipiration type code", precipirationType)
/usr/lib/qt5/qml/Sailfish/Weather/WeatherModel.js:        console.log("WeatherModel warning: invalid 
precipiration rate code", precipirationRate)
Edz ( 2017-12-08 12:21:32 +0200 )edit

Question tools

Follow
1 follower

Stats

Asked: 2017-12-06 13:25:31 +0200

Seen: 182 times

Last updated: Dec 07