qmmp: UI translations missing due to post_patch removing .qm files
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ả
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
xbps-install qmmp- Open qmmp (simple UI)
- Go to Settings -> Appearance -> Language
- Select
ItalianoorEspañol - 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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của void-linux/void-packages
-
linux6.18: enable SERIAL_DEV_BUS=y so BT_HCIUART_BCM (UART Broadcom Bluetooth) is builtCó thể đã có người làm @r0man1an đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
void-linux/void-packages#63047 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Package request: SomeWMĐang mởrequest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
void-linux/void-packages#63016 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
nextcloud-client: VFS plugins installed where the client does not searchCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mởbug needs-testing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
void-linux/void-packages#62700 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Package request: LandrunĐang mởrequest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
void-linux/void-packages#62661 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wf-shell: mixer widget does not work (missing pipewire/wireplumber support)Có thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
void-linux/void-packages#62620 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của void-linux/void-packages
Issue tương tự
-
Agents panel: Codex token stats always empty because Codex now writes `*.jsonl.zst` sessionsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 2 ngày
-
headers-parser: `forRegExp` does not escape regexp characters in path segments that contain `*`Có thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
mattpocock/skills#1307 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status: ready
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
melodic-software/claude-code-plugins#8537 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
vladmandic/sdnext#5161 ·
Maintainer thường phản hồi trong vòng 1 ngày