pamac-cli ignores LANG environment variable
Nobody has claimed this yet.
- Dominant language
- Vala
- Stars
- 10
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
Pamac should honor the LANG environment variable (but does only partially).
My system defaults to de_DE (German). To report errors to english-language developers, I would like to produce any output messages in English by setting LANG=C.
Doing so, pamac starts in English language. But somewhere midway, it still produces German output.
**Example:**
`$`**`pamac upgrade --force-refresh`**
```
Vorbereitung...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentifizierung wird zur Installation, Aktualisierung oder Entfernung von Paketen benötigt
Authenticating as: Bear&Honey (bearhoney)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronisiere Paketdatenbanken...
Aktualisierung von core.db...
Aktualisierung von extra.db...
Aktualisierung von multilib.db...
Aktualisierung von core.files...
Aktualisierung von extra.files...
Aktualisierung von multilib.files...
Aktualisierung von AUR...
Es gibt nichts zu tun.
Vorgang erfolgreich abgeschlossen.
```
`$`**`LANG=C pamac upgrade --force-refresh`**
```
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Bear&Honey (bearhoney)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronisiere Paketdatenbanken...
Aktualisierung von core.db...
Aktualisierung von extra.db...
Aktualisierung von multilib.db...
Aktualisierung von core.files...
Aktualisierung von extra.files...
Aktualisierung von multilib.files...
Aktualisierung von AUR...
Nothing to do.
Transaction successfully finished.
```
`$`**`(export LANG=C; pamac upgrade --force-refresh)`**
```
Preparing...
==== AUTHENTICATING FOR org.manjaro.pamac.commit ====
Authentication is required to install, update, or remove packages
Authenticating as: Bear&Honey (bearhoney)
Password:
==== AUTHENTICATION COMPLETE ====
Synchronisiere Paketdatenbanken...
Aktualisierung von core.db...
Aktualisierung von extra.db...
Aktualisierung von multilib.db...
Aktualisierung von core.files...
Aktualisierung von extra.files...
Aktualisierung von multilib.files...
Aktualisierung von AUR...
Nothing to do.
Transaction successfully finished.
```
Status quo: The "Synchronizing ..." and "Updating ..." messages are always produced in the default local language.
Expectation: They should follow the LANG environment variable.
Current versions on my system:
`$`**`pacman -Q|grep pamac`**
libpamac 11.7.3-4
libpamac-flatpak-plugin 11.7.3-4
pamac-cli 11.7.3-1
pamac-gtk 11.7.3-0
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the issue with the three LANG command forms shown in the report and compare the synchronization and updating messages. Trace where those messages are generated in pamac-cli or its related package-management components. Done means both message groups follow LANG=C consistently while the existing command behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- cli, localization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100