Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

qmmp: UI translations missing due to post_patch removing .qm files

Đang mở Phù hợp với người mới
#63,041 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
82/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, shell
Lĩnh vực
build-system

Hướng nghiên cứu

Vấn đề nằm ở hàm post_patch() trong srcpkgs/qmmp/template, hàm này xóa các tham chiếu .qm khỏi các tệp .qrc trong src. Hãy đọc hàm đó và trường revision, rồi kiểm tra xem bản build CMake với Qt6LinguistTools có tạo các tệp .qm sau khi bỏ bước xóa hay không. Hoàn thành khi ./xbps-src pkg qmmp chạy thành công và gói được build chứa các tệp .qm trong /usr/share/qmmp/translations, đồng thời trường revision được tăng lên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

AI 🤖 bug needs-testing
Is this a new report?

Yes

System Info

Void x86_64 glibc Linux 6.16.56

Package(s) Affected

qmmp 2.4.2_1

Does a report exist for this bug with the project's home (upstream) and/or another distro?

Description

qmmp package (version 2.4.2_1) does not load any translation. The language selector in Settings -> Appearance -> Language lists all supported languages, but selecting any language other than English (e.g. it, es, fr, de) has no effect. After restart, the UI remains in English.

Reproduction

  1. xbps-install qmmp
  2. Open qmmp (simple UI)
  3. Go to Settings -> Appearance -> Language
  4. Select Italiano or Español
  5. Click OK and restart qmmp

Expected: UI in Italian/Spanish
Actual: UI still in English

Checked with strings on binary and inside /usr/share/qmmp/translations - no .qm files are installed. Qt translation loader fails silently.

Root Cause

In srcpkgs/qmmp/template:

# Remove references to prebuilt Qt translation files (.qm) that are
# missing from the source tarball and not generated by the CMake build.
post_patch() {
	find src -name "*.qrc" -exec sed -i '/\.qm/d' {} +
}

## Fix

Remove post_patch() entirely. qt6-tools is already in hostmakedepends, CMake with Qt6LinguistTools will generate .qm from .ts.

Tested locally:
- Removed post_patch
- revision=1 -> revision=2
- ./xbps-src pkg qmmp
- Translations it/es now work.

Suggested diff:
- revision=1
+ revision=2
- post_patch() { find src -name "*.qrc" -exec sed -i '/\.qm/d' {} + }

### Expected behaviour

When I select a language (e.g. Italian, Spanish) in Settings -> Appearance -> Language and restart qmmp, the UI should be translated to that language. The package should include the compiled .qm translation files.

### Actual behaviour

Selecting any language other than English has no effect. The UI always stays in English after restart. 

The template contains:

post_patch() {
    find src -name "*.qrc" -exec sed -i '/\.qm/d' {} +
}

This removes all .qm file references from the .qrc resources because upstream tarball doesn't ship prebuilt .qm files. As a result, no translations are built or installed, even though qt6-tools (which provides lrelease) is already in hostmakedepends and CMake would generate them correctly if not deleted.

Steps to reproduce:
1. xbps-install qmmp
2. Settings -> Appearance -> Language -> select Italiano
3. Restart qmmp
4. UI still in English

### Steps to reproduce

1. Install qmmp: `sudo xbps-install -S qmmp`
2. Open qmmp (simple UI is default)
3. Go to Settings -> Appearance (or Ctrl+P -> Appearance)
4. In Language dropdown, select Italiano [it] or Español [es]
5. Click OK and restart qmmp when prompted
6. Observe: UI is still in English, not translated
Ngôn ngữ chính
Shell
Star
3.5k
Fork
2.8k
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
310

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của void-linux/void-packages

Tất cả issue của void-linux/void-packages

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.