@jrom, the condition didn't changed. This commit you pointed was released in 
snapd version 2.51
You can see it here:
https://github.com/snapcore/snapd/compare/2.50.1...2.51

If you compare the release 2.51 with the latest release 2.52:
https://github.com/snapcore/snapd/compare/2.51...2.52

...you will see that there is no significant change in this
`cmd/snap/main.go` file. They just changed some lines positions but the
content is the same.

The fact that the locale "pt_BR" is not on the code, means nothing since
this is replaced in runtime in the variable "%q".

The bug may be in the translation in the `language-pack-pt-base` package
itself.

-- 
You received this bug notification because you are a member of
Translators Packages, which is subscribed to language-pack-pt-base in
Ubuntu.
https://bugs.launchpad.net/bugs/1932579

Title:
  snap pt_BR locale shows warning every time

Status in language-pack-pt-base package in Ubuntu:
  Confirmed
Status in snapd package in Ubuntu:
  Confirmed

Bug description:
  The following warning appears every time I type a snap command, and
  thus breaks auto-completion.

  2021/06/18 13:15:24.372374 main.go:176: description of prepare-image's
  "<target-dir>" is lowercase in locale "pt_BR": "o directório de
  destino"

  The problem seems locale dependent, since "LANG=C snap" doesn't show
  this warning. I'm currently using Ubuntu 21.04, and this bug happens
  since I upgraded from 20.10. (I don't know if this is off-topic or
  where I can help, but "directório" is more pt_PT than pt_BR, which
  could be "pasta/diretório")

  echo $LANG output:
  pt_BR.UTF-8

  lsb_release -rb output:
  Description:  Ubuntu 21.04
  Release:      21.04

  apt-cache policy snapd output:
  snapd:
    Instalado: 2.49.2+21.04ubuntu1
    Candidato: 2.49.2+21.04ubuntu1
    Tabela de versão:
   *** 2.49.2+21.04ubuntu1 500
          500 http://br.archive.ubuntu.com/ubuntu hirsute/main amd64 Packages
          100 /var/lib/dpkg/status

  snap list output:
  ...[other packages]...
  snap-store         3.38.0-64-g23c4c77          547    latest/stable    
canonical✓       -
  snapd              2.51                        12159  latest/stable    
canonical✓       snapd

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-pack-pt-base/+bug/1932579/+subscriptions


-- 
Mailing list: https://launchpad.net/~translators-packages
Post to     : translators-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~translators-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to