Bug 2424927

Summary: The Chinese translation of dnf5 is incomplete | dnf5的中文翻译不完全
Product: [Fedora] Fedora Localization Reporter: 17354082936
Component: Chinese Simplified [zh_CN]Assignee: rpm-software-management
Status: NEW --- QA Contact:
Severity: low Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: jonathan, pkratoch, ppisar, rpm-software-management, tiansworld, trans-zh_cn
Target Milestone: ---Keywords: i18n, Translation
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
This is the zh_CN file (.mo) that I have finished translating | 这是我翻译完的zh_CN文件(.mo) none

Description 17354082936 2025-12-24 11:54:13 UTC
I found that dnf5 | 我发现dnf5中
"Nothing to do."
"Failed to resolve the transaction:"
"No match for argument: XXX"
"Package "XXX" is already installed."
"Missing positional argument "specs" for command "remove""
...
It's not just these outputs; many of them don't have Chinese translations either. | 不仅是这些输出,还有很多都没有中文翻译
I hope to be able to fill in these translations | 我希望可以填补这些翻译
Thank you! | 谢谢!

Reproducible: Always

Steps to Reproduce:
1.Set the language to Chinese(zh_CN) | 设置语言为中文(zh_CN)
2.Run dnf5 | 运行dnf5
Actual Results:
Missing Chinese translation | 缺失中文翻译

Expected Results:
Has a relatively complete Chinese translation | 有较完整的中文翻译

Additional Information:
Please fix this issue, thank you! | 请修复这个问题,谢谢!

New Discovery:
When I was looking at the translation files (po) of the DNF5 source code, I found | 我查看dnf5源码的翻译文件(po)时发现
dnf5-5.2.17.0/libdnf5-cli/po/no translation for zh_CN.po | dnf5-5.2.17.0/libdnf5-cli/po/没有zh_CN.po的翻译
And the zh_TW.po file does exist. | 而且zh_TW.po是有的
zh_Hant.po has not been translated at all | zh_Hant.po完全没有翻译
```bash
$ ls libdnf5-cli/po/*.po
libdnf5-cli/po/cs.po  libdnf5-cli/po/fr.po   libdnf5-cli/po/nl.po     libdnf5-cli/po/sv.po
libdnf5-cli/po/de.po  libdnf5-cli/po/hu.po   libdnf5-cli/po/pa.po     libdnf5-cli/po/tr.po
libdnf5-cli/po/es.po  libdnf5-cli/po/it.po   libdnf5-cli/po/pl.po     libdnf5-cli/po/vi.po
libdnf5-cli/po/et.po  libdnf5-cli/po/kab.po  libdnf5-cli/po/pt_BR.po  libdnf5-cli/po/zh_Hant.po
libdnf5-cli/po/eu.po  libdnf5-cli/po/ka.po   libdnf5-cli/po/ro.po     libdnf5-cli/po/zh_TW.po
libdnf5-cli/po/fi.po  libdnf5-cli/po/ko.po   libdnf5-cli/po/ru.po
```

Comment 1 17354082936 2025-12-25 10:49:04 UTC
Created attachment 2119991 [details]
This is the zh_CN file (.mo) that I have finished translating | 这是我翻译完的zh_CN文件(.mo)

Comment 2 Tian Shixiong 2025-12-28 10:00:18 UTC
Hello.
Thank you very much for letting us know the untranslated component of dnf5.

You can update the translation directly if you have the Fedora account by log in at https://translate.fedoraproject.org.

If you don't have the account, it's a good idea to sign up to contribute translations or other stuff in the long run.

If you just want to add a patch as you did, then I am glad to help you to upload it as soon as I can log in. However I can't log in with my account now due to unknown reason.



Additionally, if you want to see/review your translation on your machine immediately, try putting the compiled mo file under the /usr/share/locale/zh_CN/LC_MESSAGES directory. 
If you are in Simlified Chinese desktop environment, run dnf5 in the terminal again. 
If you are in English environment, make sure you set the LANG and LC_MESSAGES to zh_CN.UTF-8 respectively in the terminal, and run dnf5 again.

Just let me know if you have other questions. :) Or you can leave message on the translation mailing list.

Comment 3 17354082936 2025-12-30 12:58:02 UTC
Hello
I also ran into some problems
https://translate.fedoraproject.org/ I just can't log in today no matter what
I wonder if you have encountered this problem as well
Nothing is loading at all

If you can help me:
I made some modifications to lindnf5.po
For the specific files, see https://github.com/xiaome-space/dnf5-zh_CN/tree/main/libdnf5-cli
Please help me submit this (If you can login in now)

Thank you.

Comment 4 Tian Shixiong 2025-12-30 15:35:28 UTC
(In reply to 17354082936 from comment #3)
> Hello
> I also ran into some problems
> https://translate.fedoraproject.org/ I just can't log in today no matter what
> I wonder if you have encountered this problem as well
> Nothing is loading at all

Yes, it seems like the same issue. It's still holidays, so let's just wait for a few days more.

Comment 5 Petr Pisar 2026-01-05 09:48:41 UTC
DNF5 developers do not maintain the translations. As already pointed, they are maintained by people who understand particular languages at <https://translate.fedoraproject.org>. Once the service is restored, you can create an account there and upload your translations there.

Comment 6 17354082936 2026-01-05 09:52:33 UTC
Is it my fault?
The website still can't load.
Their 'vacation' really lasts quite a long time.

Comment 7 Petr Pisar 2026-01-06 08:42:05 UTC
I don't know. I cannot log in there because of legal problems <https://pagure.io/Fedora-Council/tickets/issue/553>. Maybe the service operator broke the Fedora instance and both these issues have the some cause.

Comment 8 17354082936 2026-01-12 10:25:40 UTC
I suspect it's a host issue.
I checked on whois, and then added it to /etc/hosts
The following page appeared during the next visit
```html
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<meta http-equiv="content-type" content="text/html; charset=windows-1252">
  <title>Index of /</title>
 </head>
 <body>
<h1>Index of /</h1>
  <table>
   <tbody><tr><th valign="top"><img src="Index%20of%20__files/blank.gif" alt="[ICO]"></th><th><a href="https://translate.fedoraproject.org/?C=N;O=D">Name</a></th><th><a href="https://translate.fedoraproject.org/?C=M;O=A">Last modified</a></th><th><a href="https://translate.fedoraproject.org/?C=S;O=A">Size</a></th><th><a href="https://translate.fedoraproject.org/?C=D;O=A">Description</a></th></tr>
   <tr><th colspan="5"><hr></th></tr>
   <tr><th colspan="5"><hr></th></tr>
</tbody></table>
<address>Apache Server at translate.fedoraproject.org Port 443</address>

</body></html>
```

Comment 9 Tian Shixiong 2026-02-07 17:11:15 UTC
Did you try to log in again?
I found zh_CN translation of libdnf5-cli had been updated.

Comment 10 17354082936 2026-02-10 13:38:03 UTC
Sorry for my late reply.
but I still can't access https://translate.fedoraproject.org/

Comment 11 Tian Shixiong 2026-02-13 09:13:22 UTC
(In reply to 17354082936 from comment #10)
> Sorry for my late reply.
> but I still can't access https://translate.fedoraproject.org/
Please try to restore your hosts file first and try again.

We can discuss this problem further on the mailing list or privately.

I suggest to close this bug report, what do you think?