[Geonames] Return localized city names
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Incomplete
|
High
|
David Planella | ||
Ubuntu Clock App |
Incomplete
|
Medium
|
Unassigned | ||
Ubuntu Geonames |
Confirmed
|
Undecided
|
Alan Pope 🍺🐧🐱 🦄 |
Bug Description
Right now the names of the cities to add to the world clock are in English. As it seems that geonames.org supports localized names using the 'lang' parameter, we should use the user's locale (Qt.locale().name) and set 'lang' when doing queries to their API.
A few caveats:
- lang only supports the language code, so the country code will need to be stripped out. E.g. Qt.locale().name returns 'ca_ES', but geonames.org only supports 'ca'. It's not clear how they support zh_CN vs. zh_TW
- It seems that if name_startsWith is specified in the query, the English names instead of the localized ones are returned
- To display the localized results in the app, we should be using name instead of the current toponymName
Changed in ubuntu-clock-app: | |
status: | New → Triaged |
importance: | Undecided → Medium |
tags: | added: bitesize touch-cn |
description: | updated |
Changed in canonical-devices-system-image: | |
assignee: | nobody → David Planella (dpm) |
importance: | Undecided → High |
milestone: | none → ww09-2015 |
status: | New → Confirmed |
Changed in ubuntu-clock-app: | |
assignee: | nobody → Nekhelesh Ramananthan (nik90) |
milestone: | none → ota-1 |
Changed in canonical-devices-system-image: | |
milestone: | ww09-2015 → ww13-2015 |
Changed in canonical-devices-system-image: | |
milestone: | ww13-2015 → ww17-2015 |
Changed in canonical-devices-system-image: | |
milestone: | ww17-2015 → ww21-2015 |
status: | Confirmed → Incomplete |
Changed in ubuntu-geonames: | |
assignee: | nobody → Alan Pope (popey) |
Changed in ubuntu-clock-app: | |
milestone: | 3.3 → 3.4 |
Changed in ubuntu-clock-app: | |
assignee: | Nekhelesh Ramananthan (nik90) → nobody |
Changed in ubuntu-clock-app: | |
milestone: | 3.4 → 3.5 |
summary: |
- Return localized city names + [Geonames] Return localized city names |
Changed in ubuntu-clock-app: | |
milestone: | 3.5 → 3.6 |
Changed in ubuntu-clock-app: | |
milestone: | 3.6 → 3.x.backlog |
Changed in ubuntu-clock-app: | |
status: | Triaged → Incomplete |
tags: | added: l10n zh |
Changed in canonical-devices-system-image: | |
milestone: | none → 12 |
no longer affects: | band-aids-uphone |
I remember riccardo bringing this up in the previous cycle. The issue here is that the languages that geonames support are limited. So we could hit a language used by the user that is not supported by geonames. What do you recommend we do in those cases?