Trust prompt doesn't use translations at the first run

Bug #1582148 reported by Robin Heroldich
30
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
Medium
Rex Tsai
Ubuntu Touch session manager
Fix Committed
Undecided
Rex Tsai
location-service
Fix Committed
Undecided
Rex Tsai

Bug Description

I flashed my phone with the --wipe option, but at the first run trust prompt doesn't use my choosen language's translation, it displays the prompt in Weather App or Camera app in English. After a reboot it works as expected.

Tags: cta
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

Can you explain the steps more clearly - you flash the phone, boot, change language, reboot, and trust prompts are not in the right language?

Changed in canonical-devices-system-image:
status: New → Incomplete
Revision history for this message
Robin Heroldich (robinheroldich) wrote :

@Pat: Flash the phone, then in the setup wizard you need to change language to Hungarian, then start an app (for instance Weather App), the trust prompt is in English. Reboot the phone, start another app (uNav), the trust prompt is in the right language.

This is not the same bug: https://bugs.launchpad.net/canonical-devices-system-image/+bug/1582169
I guess the main reason behind that bug is that these strings don't included in the .pot file.

Changed in canonical-devices-system-image:
assignee: nobody → Thomas Voß (thomas-voss)
importance: Undecided → Medium
status: Incomplete → Confirmed
Rex Tsai (chihchun)
Changed in canonical-devices-system-image:
assignee: Thomas Voß (thomas-voss) → Rex Tsai (chihchun)
summary: - Trust prompt doesn't use translations at the fist run
+ Trust prompt doesn't use translations at the first run
Rex Tsai (chihchun)
Changed in trust-store:
status: New → Confirmed
Revision history for this message
Thomas Voß (thomas-voss) wrote :

Translations are not provided by the trust-store in the general case. It relies on the respective services providing them, and on the runtime language setup. I think we are seeing a race here as the trust-store instances are started up prior to the language being chosen in the wizard. So we either start supporting changes to the language selection at runtime or postpone startup of the trust-store until after the wizard.

Revision history for this message
Rex Tsai (chihchun) wrote :

After the user pick up the language from Welcome Wizard, unity8 sends out a few signals and restart some services. It includes

- org.freedesktop.DBus UpdateActivationEnvironment (LANGUAGE, LANG, LC_ALL)
- initctl set-env --global
- restarting maliit-server, indicator-messages, unity8-dash, indicator-services-end, indicator-services-start.

There are a few approaches to fix
- add a few more initctl restart to restart cameraservice-trust-stored, pay-service-trust-stored, pulseaudio-trust-stored, ubuntu-location-service-trust-stored.
- send yet another upstart signals
- restart trust-store daemons, when unity8-dash or maliit, indicator-messages restarted.
- reuse the indicator-services-end & indicator-services-start upstart event, and restart trust-store daemons.

I propose to use indicator-services-end & indicator-services-start upstart event to restart trust-store daemons.

Revision history for this message
Rex Tsai (chihchun) wrote :

Based on the idea of using indicator-services-end & indicator-services-start upstart event.

changes need to be done in
ubuntu-touch-session: /usr/share/upstart/sessions/cameraservice-trust-stored.conf
ubuntu-touch-session: /usr/share/upstart/sessions/pulseaudio-trust-stored.conf
ubuntu-location-service-bin: /usr/share/upstart/sessions/ubuntu-location-service-trust-stored.conf
pay-service: /usr/share/upstart/sessions/pay-service-trust-stored.conf

Changed in canonical-devices-system-image:
status: Confirmed → In Progress
tags: added: cta
Changed in canonical-devices-system-image:
milestone: none → fi
Revision history for this message
Rex Tsai (chihchun) wrote :

* Bileto Landing Tickets - https://requests.ci-train.ubuntu.com/#/ticket/1652
* Merge into trunk : lp1582148 : Code : location-service - https://code.launchpad.net/~chihchun/location-service/lp1582148/+merge/299553
* Merge into trunk : lp1582148 : Code : Ubuntu Touch session manager - https://code.launchpad.net/~chihchun/ubuntu-touch-session/lp1582148/+merge/299551

affects: trust-store → ubuntu-touch-session
Changed in ubuntu-touch-session:
assignee: nobody → Rex Tsai (chihchun)
status: Confirmed → In Progress
Changed in location-service:
assignee: nobody → Rex Tsai (chihchun)
status: New → In Progress
Revision history for this message
Timo Jyrinki (timo-jyrinki) wrote :

The other merge request is still requiring top approval and the ticket hasn't landed yet therefore.

Changed in canonical-devices-system-image:
status: In Progress → Fix Committed
milestone: fi → 13
Rex Tsai (chihchun)
Changed in location-service:
status: In Progress → Fix Committed
Changed in ubuntu-touch-session:
status: In Progress → Fix Committed
Changed in canonical-devices-system-image:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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