Bug #5469

tails-greeter: fix Portuguese translation

Added by Tails 2013-07-18 07:41:32 . Updated 2020-04-15 06:05:19 .

Status:
Resolved
Priority:
Elevated
Assignee:
Category:
Target version:
Start date:
Due date:
% Done:

0%

Feature Branch:
Type of work:
Code
Blueprint:

Starter:
0
Affected tool:
Welcome Screen
Deliverable for:

Description

Tails Greeter has a pt_BR.po file, and the .deb installs /usr/share/locale/pt_BR/LC_MESSAGES/tails-greeter.mo, but the interface doesn’t get translated into Brazilian Portuguese when Portuguese / Brazil is selected.

This bug is present at least on Tails 0.17.1, Tails 0.17, Tails 0.16.

Let’s first test if another translation for a locale that’s not the default one for its language (e.g. fr_BE or de_AT) is applied.

If it is, then the problem is specific to the pt_BR translation.

Else, then the problem is a general one related to how a locale change in the UI reflects to the UI language. FWIW, the call chain, from the signal triggered by the UI change, to the window being translated on the fly, should be: locale_selected > set_locale> self.__apply_locale() > self._greeter.SelectLanguage(self._locale)> translate_to.


Subtasks


History

#1 Updated by winterfairy 2013-11-02 13:27:24

I have submitted patches [1] that fixes this issue. The greeter wasn’t accepting translations with country code at all, it was looking for a translation file for “pt”, which doesn’t exist. Now, with my patches, gettext decides what translation to use for the specified locale, which works as it should.

[1] mailman.boum.org/pipermail/tails-dev/2013-November/004003.html

#2 Updated by intrigeri 2013-11-03 06:37:09

  • Category set to 165
  • Assignee set to intrigeri
  • QA Check set to Ready for QA
  • Type of work changed from Test to Code
  • Starter set to No

#3 Updated by intrigeri 2013-11-04 03:49:42

  • Tracker changed from Feature to Bug

#4 Updated by intrigeri 2013-11-04 06:01:10

  • Status changed from Confirmed to Fix committed
  • Assignee deleted (intrigeri)
  • QA Check changed from Ready for QA to Pass

Pending for Tails 0.22, \o/ :)

#5 Updated by intrigeri 2013-12-11 08:15:56

  • Status changed from Fix committed to Resolved

Fixed in 0.22.

#6 Updated by intrigeri 2020-04-15 06:05:19

  • Affected tool changed from Greeter to Welcome Screen