Weather Channel doesn't display forecasts in Spanish

Bug #1355835 reported by Víctor R. Ruiz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Weather App
Fix Released
High
Martin Borho

Bug Description

Weather Channel doesn't display forecasts in Spanish, redirects to main page.

Test case.
- Switch Ubuntu Touch to Spanish.
- Open Weather app.
- Add a location.
- In main screen, click in forecasts for next 10 days.

Expected result.
- Browser app opens Weather Channel page in the selected location to check the forecasts.

Actual result.
- Browser redirects to Weather Channel's mobile site and asks for location.

Related branches

Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :
Revision history for this message
Martin Borho (martin-borho) wrote :

Problem lies on TWC side. The mobile redirect is broken, not only for spanish forecasts.

The forecasts urls to open were implemented like supposed by TWC.

Changed in ubuntu-weather-app:
status: New → Confirmed
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

The logic to compose localized forecasts URL's are in components/TabFooter.qml. These are tailored for the desktop and not for Touch.

   function openTWCLink(type) {
        var serviceId = locationTab.locationData.location.services["weatherchannel"],
            loc_name = Qt.locale().name, url = "http://";
        print("Open link for "+type+" - "+loc_name)
        if(loc_name.search(/^de_/) > -1) {
            url += "de.weather.com/";
            if(type) url += ((type === "10day") ? "10tage/" : "stündlich/");

        } else if(loc_name === "en_US" || loc_name === "en-CA") {
            url += "www.weather.com/";
            if(type) url += "weather/"+((type === "10day") ? "tenday/" : "hourbyhour/graph/");

www.weather.com is m.weather.com and espanol.weather.com (as listed in the source code) is m.es.weather.com in the mobile version.

Revision history for this message
Martin Borho (martin-borho) wrote :

That's right, but mobile switch was intended to be on TWC side.

David Planella (dpm)
Changed in ubuntu-weather-app:
status: Confirmed → Triaged
importance: Undecided → High
tags: added: touch-2014-09-25
Revision history for this message
David Planella (dpm) wrote :

We can contact TWC if something is broken on their side. Martin, could you tell me in more detail what they might need to fix?

David Planella (dpm)
tags: removed: touch-2014-09-25
Changed in ubuntu-weather-app:
status: Triaged → Incomplete
Revision history for this message
Víctor R. Ruiz (vrruiz) wrote :

David: They need to fix the redirection rule. The application composes a localized URL to display the selected country and forecast span. When TWC's servers detect a mobile browser, they redirect to the main site of the country, and forgets about the forecast span. Of course, this can be fixed at the client side, just adding a different set of rules to compose the URL for mobile.

Revision history for this message
Martin Borho (martin-borho) wrote :

As Victor says: Either TWC is fixing their mobile redirect or we make the distinction in the app. But as lengthy dealing with TWC is, we should perhaps go with the latter one. Afaik the TWC scope links directly to the mobile page.

Revision history for this message
David Planella (dpm) wrote :

Thanks Victor and Martin for the clarification. In that case, Martin, could we do the distinction in the app, so that for RTM we've got a working "redirect", and in parallel I'll start a conversation with TWC? Do you think we could prioritize this bug to be fixed this week?

Revision history for this message
Martin Borho (martin-borho) wrote :

If the SDK provides an indicator for being on mobile, for sure. (I don't know if this is available now. )

But since phone is for now the main focus, we can even hardcode the links it to mobile twc, if nothing helps.

Changed in ubuntu-weather-app:
status: Incomplete → Confirmed
assignee: nobody → Martin Borho (martin-borho)
David Planella (dpm)
Changed in ubuntu-weather-app:
status: Confirmed → Triaged
David Planella (dpm)
tags: added: touch-2014-10-02
David Planella (dpm)
tags: added: touch-2014-10-09
removed: touch-2014-10-02
David Planella (dpm)
tags: added: touch-2014-10-16
removed: touch-2014-10-09
Changed in ubuntu-weather-app:
status: Triaged → In Progress
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:ubuntu-weather-app at revision None, scheduled for release in ubuntu-weather-app, milestone alpha-1

Changed in ubuntu-weather-app:
status: In Progress → Fix Committed
Changed in ubuntu-weather-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.