Automatically load translated pages according to the user language

Bug #1425025 reported by David Planella on 2015-02-24
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Help App
High
David Planella

Bug Description

The user should be presented with the content according to their user language automatically.

This means:
1. Detecting the language
2. Loading the matching translated pages

For the language detection (1), it seems the HTML app container should correctly set window.navigator.language:
https://developer.mozilla.org/en-US/docs/Web/API/NavigatorLanguage/language

For loading the page, this might work, although I'm not sure if it will make HTML5 experts cringe:
http://stackoverflow.com/questions/17636528/how-do-i-load-an-html-page-in-a-div-using-javascript

Related branches

David Planella (dpm) on 2015-02-24
Changed in ubuntu-devices-help:
status: New → Triaged
importance: Undecided → High
assignee: nobody → David Planella (dpm)
David Planella (dpm) on 2015-02-24
description: updated
Daniel Holbach (dholbach) wrote :

Don't want to step on anyone's toes in fixing this, but lp:~dholbach/ubuntu-devices-help/1425025-partial might help as a first step.

Daniel Holbach (dholbach) wrote :

Ok, branch is landed, the index.html file will be a starting point for the 'phone' use-case.

tags: added: i18n
tags: added: nav
David Planella (dpm) on 2015-03-17
Changed in help-app:
milestone: none → 0.1
milestone: 0.1 → 0.2
David Planella (dpm) on 2015-03-17
Changed in help-app:
milestone: 0.2 → 0.1
David Planella (dpm) on 2015-03-18
Changed in help-app:
status: Triaged → In Progress
tags: added: phone
Changed in help-app:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers