Bug #16806

Formats from Greeter not respected

Added by sajolida 2019-06-12 15:27:06 . Updated 2020-04-15 06:02:22 .

Status:
Resolved
Priority:
Normal
Assignee:
intrigeri
Category:
Internationalization
Target version:
Start date:
Due date:
% Done:

100%

Feature Branch:
https://salsa.debian.org/tails-team/tails/merge_requests/39/commits
Type of work:
Code
Blueprint:

Starter:
Affected tool:
Welcome Screen
Deliverable for:

Description

Both 3.14 and bc022ef71e and affected:

  • When I start Tails in French/France, I get A4 by default in LibreOffice
  • When I start Tails in English/United States, I get Letter by default in LibreOffice

So far so good, but:

  • When I start Tails in French/United States, I get A4 by default in LibreOffice
  • When I start Tails in English/France, I get Letter by default in LibreOffice

Once this is fixed, tech writers will have to update /doc/first_steps/startup_options/US_calendar_in_Russian.png.


Subtasks


Related issues

Related to Tails - Feature #14544: Spend software developer time on smallish UX improvements In Progress 2018-08-31
Blocks Tails - Feature #16209: Core work: Foundations Team Confirmed
Blocked by Tails - Feature #16095: Curate the list of languages in Tails Greeter Resolved 2018-11-04

History

#1 Updated by intrigeri 2019-06-17 09:18:13

#2 Updated by intrigeri 2019-06-17 09:18:32

> * When I start Tails in English/France

I’ve tried this both on feature/buster and 3.14 and indeed, the locales are not configured correctly:

$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

… while our code (look for TAILS_FORMATS in https://git.tails.boum.org/greeter) has had the expected side effect:

$ cat /etc/default/locale 
LANG=en_US.UTF-8
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8

So it sounds like either something-GNOME-ish overrides /etc/default/locale, or something-else-GNOME-ish stopped honoring /etc/default/locale at some point.

#3 Updated by intrigeri 2019-06-22 13:48:38

  • Status changed from New to Confirmed

#4 Updated by sajolida 2019-08-28 10:42:45

  • related to Feature #14544: Spend software developer time on smallish UX improvements added

#5 Updated by sajolida 2019-08-28 10:49:09

  • Description updated

#6 Updated by segfault 2019-09-24 22:51:37

  • Status changed from Confirmed to In Progress

Applied in changeset commit:tails|fc2842e6707afd89bd591742ccf8396af56fc73c.

#7 Updated by segfault 2019-09-24 22:58:20

  • Status changed from In Progress to Needs Validation
  • Feature Branch set to feature/16095-curate-languages-in-greeter

This one took me ages (I won’t clock all that time, else we would be out of budget :P). But I learned that dconf paths and gsettings paths are not always the same: gsettings’ “org.gnome.system.locale” corresponds to dconf’s “/system/locale”.

@intrigeri, I pushed this to the other Greeter locale related path, to (hopefully) facilitate reviewing.

#8 Updated by segfault 2019-09-24 23:37:27

  • Status changed from Needs Validation to In Progress

Applied in changeset commit:tails|5c3fad2f6d9874665642052b1a980fdbef4a7881.

#9 Updated by segfault 2019-09-25 08:45:54

  • Status changed from In Progress to Needs Validation

#10 Updated by segfault 2019-09-28 23:11:03

  • Target version set to Tails_4.0

#11 Updated by segfault 2019-09-28 23:12:00

  • Affected tool set to Greeter

#12 Updated by intrigeri 2019-09-29 15:00:00

  • Assignee set to intrigeri

#13 Updated by intrigeri 2019-09-29 15:32:46

> This one took me ages (I won’t clock all that time, else we would be out of budget :P).

I think you should clock it.

> But I learned that dconf paths and gsettings paths are not always the same: gsettings’ “org.gnome.system.locale” corresponds to dconf’s “/system/locale”.

Wow, I had no idea! TIL.

> intrigeri, I pushed this to the other Greeter locale related path, to (hopefully) facilitate reviewing.

Indeed, optimistically, there’s a pretty good chance it saves me some time :)

#14 Updated by intrigeri 2019-09-29 15:36:22

LGTM, will now build & test.

#15 Updated by intrigeri 2019-09-30 07:34:38

  • blocked by Feature #16095: Curate the list of languages in Tails Greeter added

#16 Updated by intrigeri 2019-09-30 07:41:22

  • Status changed from Needs Validation to In Progress
  • Assignee changed from intrigeri to segfault

It works! Please reassign to me once the branch is ready for merging.

#17 Updated by segfault 2019-10-04 14:00:18

  • Status changed from In Progress to Needs Validation
  • Assignee deleted (segfault)
  • Feature Branch changed from feature/16095-curate-languages-in-greeter to https://salsa.debian.org/tails-team/tails/merge_requests/39/commits

#18 Updated by intrigeri 2019-10-05 07:12:26

  • Assignee set to intrigeri

#19 Updated by intrigeri 2019-10-05 15:04:43

  • Status changed from Needs Validation to Resolved
  • % Done changed from 0 to 100

Applied in changeset commit:tails|53c6c19a4ede83bcc99337a46c70b8dfe7277f42.

#20 Updated by intrigeri 2020-04-15 06:02:22

  • Affected tool changed from Greeter to Welcome Screen