Merge pull request #20 from Rongronggg9/i18n/zh_CN

Add zh_CN localization
This commit is contained in:
edisionnano
2024-08-16 22:27:41 +03:00
committed by GitHub
3 changed files with 486 additions and 0 deletions

View File

@@ -6,5 +6,6 @@
<file alias="qdiskinfo_el_GR.qm">../translations/qdiskinfo_el_GR.qm</file>
<file alias="qdiskinfo_es_ES.qm">../translations/qdiskinfo_es_ES.qm</file>
<file alias="qdiskinfo_pt_BR.qm">../translations/qdiskinfo_pt_BR.qm</file>
<file alias="qdiskinfo_zh_CN.qm">../translations/qdiskinfo_zh_CN.qm</file>
</qresource>
</RCC>

Binary file not shown.

View File

@@ -0,0 +1,485 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="zh_CN">
<context>
<name>MainWindow</name>
<message>
<location filename="../src/mainwindow.ui" line="23"/>
<source>QDiskInfo</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="56"/>
<location filename="../src/mainwindow.ui" line="243"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;Health Status&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="72"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt;Good&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt;100 %&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt;100 %&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="95"/>
<location filename="../src/mainwindow.ui" line="364"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;Temperature&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="111"/>
<location filename="../src/mainwindow.ui" line="354"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt;23° C&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="156"/>
<source>Firmware</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="170"/>
<source>Serial Number</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="184"/>
<source>Protocol</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="198"/>
<source>Device Node</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="233"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt;Good 100 %&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:12pt; font-weight:700; color:#000000;&quot;&gt; 100 %&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="250"/>
<location filename="../src/mainwindow.cpp" line="416"/>
<source>Type</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="272"/>
<source>Total Host Reads</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="286"/>
<source>Total Host Writes</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="300"/>
<source>Rotation Rate</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="314"/>
<source>Power On Count</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="328"/>
<location filename="../src/mainwindow.cpp" line="416"/>
<source>Power On Hours</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="402"/>
<source>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:14pt; font-weight:700;&quot;&gt;Hard Drive Name&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</source>
<translation>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p align=&quot;center&quot;&gt;&lt;span style=&quot; font-size:14pt; font-weight:700;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="498"/>
<source>File</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="505"/>
<source>Settings</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="515"/>
<source>&amp;Help</source>
<translation> (&amp;H)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="524"/>
<source>De&amp;vice</source>
<translation> (&amp;D)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="531"/>
<location filename="../src/mainwindow.cpp" line="291"/>
<source>Disk</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="545"/>
<source>&amp;Save JSON</source>
<translation> J&amp;SON</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="553"/>
<source>&amp;Quit</source>
<translation>退 (&amp;Q)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="564"/>
<source>&amp;Refresh Devices</source>
<translation> (&amp;R)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="572"/>
<source>&amp;GitHub</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="581"/>
<source>&amp;About QDiskInfo</source>
<translation> QDiskInfo (&amp;A)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="592"/>
<source>&amp;Ignore C4 (Reallocated Event Count)</source>
<translation> C4 (Reallocated Event Count) (&amp;I)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="600"/>
<source>&amp;Convert Raw values to HEX</source>
<translation> (HEX) (&amp;C)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="608"/>
<source>&amp;Use Fahrenheit</source>
<translation>使 (&amp;U)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="613"/>
<source>Self Test</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="621"/>
<source>Cyclic &amp;Navigation</source>
<translation> (&amp;N)</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="629"/>
<source>Use &amp;GB instead of TB</source>
<translation>使 &amp;GB TB</translation>
</message>
<message>
<location filename="../src/mainwindow.ui" line="637"/>
<source>About &amp;Qt</source>
<translation> &amp;Qt</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="72"/>
<source>Start Self Test</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="76"/>
<location filename="../src/mainwindow.cpp" line="461"/>
<source>Self Test Log</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="277"/>
<location filename="../src/mainwindow.cpp" line="716"/>
<location filename="../src/mainwindow.cpp" line="729"/>
<source>Good</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="280"/>
<location filename="../src/mainwindow.cpp" line="714"/>
<location filename="../src/mainwindow.cpp" line="727"/>
<source>Caution</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="283"/>
<location filename="../src/mainwindow.cpp" line="712"/>
<location filename="../src/mainwindow.cpp" line="725"/>
<source>Bad</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="286"/>
<source>Unknown</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="416"/>
<source>Status</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="495"/>
<source>count</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="506"/>
<source>hours</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="765"/>
<location filename="../src/mainwindow.cpp" line="815"/>
<source>Short</source>
<translation> (Short)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="767"/>
<source>Conveyance</source>
<translation> (Conveyance)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="769"/>
<location filename="../src/mainwindow.cpp" line="821"/>
<source>Extended</source>
<translation> (Extended)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="774"/>
<source>Min.)</source>
<translation>)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="879"/>
<source>Read</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="881"/>
<source>Write</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="883"/>
<source>Verify</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="934"/>
<location filename="../src/mainwindow.cpp" line="1036"/>
<source>ID</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="934"/>
<location filename="../src/mainwindow.cpp" line="1036"/>
<source>Attribute Name</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="934"/>
<location filename="../src/mainwindow.cpp" line="1036"/>
<source>Raw Values</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="961"/>
<source>Available spare capacity has fallen below the threshold</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="963"/>
<source>Temperature error (Overheat or Overcool)</source>
<translation> ()</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="965"/>
<source>NVM subsystem reliability has been degraded</source>
<translation>NVM </translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="967"/>
<source>Media has been placed in Read Only Mode</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="969"/>
<source>Volatile memory backup device has Failed</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="971"/>
<source>Persistent memory region has become Read-Only</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1023"/>
<source>Critical Warning</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1036"/>
<source>Current</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1036"/>
<source>Worst</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1036"/>
<source>Threshold</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1186"/>
<source>Empty JSON</source>
<translation> JSON</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1187"/>
<source>The JSON is empty</source>
<translation>JSON </translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1192"/>
<source>Save JSON</source>
<translation> JSON</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1193"/>
<source>JSON (*.json);;All Files (*)</source>
<translation>JSON (*.json);; (*)</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1199"/>
<source>Unable to open file for writing</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1219"/>
<source>An ATA and NVMe S.M.A.R.T. data viewer for Linux</source>
<translation> Linux ATA NVMe S.M.A.R.T. </translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1220"/>
<source>Licensed under the GNU G.P.L. Version 3</source>
<translation> GNU G.P.L. 3 </translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1221"/>
<source>Made by Samantas5855</source>
<translation> Samantas5855 </translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1222"/>
<source>Version</source>
<translation></translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1224"/>
<source>About QDiskInfo</source>
<translation> QDiskInfo</translation>
</message>
<message>
<location filename="../src/mainwindow.cpp" line="1229"/>
<source>About Qt</source>
<translation> Qt</translation>
</message>
</context>
<context>
<name>QObject</name>
<message>
<location filename="../src/utils.cpp" line="57"/>
<location filename="../src/utils.cpp" line="90"/>
<location filename="../src/utils.cpp" line="148"/>
<location filename="../src/utils.cpp" line="152"/>
<location filename="../src/utils.cpp" line="159"/>
<location filename="../src/utils.cpp" line="202"/>
<source>QDiskInfo Error</source>
<translation>QDiskInfo </translation>
</message>
<message>
<location filename="../src/utils.cpp" line="57"/>
<source>QDiskInfo needs root access in order to read S.M.A.R.T. data!</source>
<translation>QDiskInfo root S.M.A.R.T. </translation>
</message>
<message>
<location filename="../src/utils.cpp" line="90"/>
<source>smartctl was not found, please install it!</source>
<translation> smartctl</translation>
</message>
<message>
<location filename="../src/utils.cpp" line="148"/>
<source>QDiskInfo needs root access in order to abort a self-test!</source>
<translation>QDiskInfo root </translation>
</message>
<message>
<location filename="../src/utils.cpp" line="150"/>
<location filename="../src/utils.cpp" line="200"/>
<source>Test Requested</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="150"/>
<source>The self-test has been aborted</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="152"/>
<location filename="../src/utils.cpp" line="202"/>
<source>Error: Something went wrong</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="159"/>
<source>QDiskInfo needs root access in order to request a self-test!</source>
<translation>QDiskInfo root </translation>
</message>
<message>
<location filename="../src/utils.cpp" line="178"/>
<source>remaining</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="179"/>
<source>completed</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="183"/>
<source>Test Already Running</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="184"/>
<source>A self-test is already being performed</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="184"/>
<source>You can press the Ok button in order to abort the test that is currently running</source>
<translation> OK </translation>
</message>
<message>
<location filename="../src/utils.cpp" line="196"/>
<source>A self-test has been requested successfully</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="198"/>
<source>It will be completed after</source>
<translation></translation>
</message>
<message>
<location filename="../src/utils.cpp" line="198"/>
<source>minutes</source>
<translation></translation>
</message>
</context>
</TS>