Project

General

Profile

Bug #16806

Formats from Greeter not respected

Added by sajolida 5 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
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:
Greeter

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.


Related issues

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

Associated revisions

Revision fc2842e6 (diff)
Added by segfault about 2 months ago

Set the system locale GSetting (refs: #16806)

Revision 5c3fad2f (diff)
Added by segfault about 2 months ago

Set the system locale GSetting (refs: #16806)

Revision 53c6c19a
Added by intrigeri about 1 month ago

Merge branch 'feature/17098-refactor-greeter' into devel (Closes: #17098, #17089, #16806, #13447, #17087, #17058, #17101, #6525, #16095, #16094, #16093)

History

#1 Updated by intrigeri 5 months ago

#2 Updated by intrigeri 5 months ago

  • 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 5 months ago

  • Status changed from New to Confirmed

#4 Updated by sajolida 3 months ago

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

#5 Updated by sajolida 3 months ago

  • Description updated (diff)

#6 Updated by segfault about 2 months ago

  • Status changed from Confirmed to In Progress

#7 Updated by segfault about 2 months ago

  • 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 about 2 months ago

  • Status changed from Needs Validation to In Progress

#9 Updated by segfault about 2 months ago

  • Status changed from In Progress to Needs Validation

#10 Updated by segfault about 2 months ago

  • Target version set to Tails_4.0

#11 Updated by segfault about 2 months ago

  • Affected tool set to Greeter

#12 Updated by intrigeri about 2 months ago

  • Assignee set to intrigeri

#13 Updated by intrigeri about 2 months ago

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 about 2 months ago

LGTM, will now build & test.

#15 Updated by intrigeri about 2 months ago

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

#16 Updated by intrigeri about 2 months ago

  • 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 about 1 month ago

  • 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 about 1 month ago

  • Assignee set to intrigeri

#19 Updated by intrigeri about 1 month ago

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

Also available in: Atom PDF