Public bug reported:

When running apt purge or any dpkg operation that triggers the database reading 
message, the plural form string "%d files and directories currently installed" 
falls back to the pt (Portugal) locale translation, displaying "ficheiros e 
diretórios" instead of the correct Brazilian Portuguese "arquivos e diretórios".
The root cause is that the plural form entry for %d files and directories 
currently installed (located in lib/dpkg/db-fsys-files.c) is missing from the 
pt_BR.mo file packaged in Noble (24.04). When dpkg cannot find the translation 
in pt_BR, it falls back to the generic pt locale which contains the Portuguese 
from Portugal translation.

This has already been fixed in Ubuntu 26.10 (Stoking) — the correct
translation was added on 2025-02-11 by Paulo Henrique de Lima Santana
via Launchpad Translations. A backport to Noble would fix the issue for
Mint 22.3 and Ubuntu 24.04 users.

Steps to reproduce:

Set locale to pt_BR.UTF-8
Run sudo apt purge <any-package>
Observe "ficheiros e diretórios" in the database reading line

Expected: %d arquivos e diretórios atualmente instalados
Actual: %d ficheiros e diretórios atualmente instalados

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2155058

Title:
  dpkg displays "ficheiros e diretórios" (Portuguese from Portugal)
  instead of "arquivos e diretórios" (Brazilian Portuguese) when
  removing packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2155058/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to