mint-check-translations misses issues with plural strings
@mtwebster đang làm issue này rồi.
Từ ngày 20/11/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
The checking of plural forms misses some translations issues. For example, this is causing a segfault in my codebase:
msgid "There is %zu provider available for %s\n"
msgid_plural "There are %zu providers available for %s:\n"
msgstr[0] "Za %s je na voljo %zu ponudnik\n"
msgstr[1] "Za %s sta a voljo %zu ponudnika:\n"
msgstr[2] "Za %s so na voljo %zu ponundiki:\n"
msgstr[3] "Za %s je na voljo %zu ponudnikov :\n"
Taking a sledge hammer approach... Removing the following check "fixes" the issue for me - or at least prints issues with msgstr[0]
if (is_plural and not is_python):
# Plural forms don't have to match the number of arguments in C, but they do in Python
return GOOD
While the comment in the code is true, the arguments still need to be provided in the right order. Thus skipping all checks is missing a class of translation bugs.
- Ngôn ngữ chính
- Python
- Star
- 33
- Fork
- 19
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 linuxmint/mint-dev-tools
-
mint-check-translations emits parsing errors for lone '%' strings and provides no success feedback Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
linuxmint/mint-dev-tools#28 ·
Tất cả issue của linuxmint/mint-dev-tools
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stephrobert/dsoxlab#238 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
sublimehq/package_control#1780 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nwg-piotr/nwg-displays#145 ·