From 5c9cedca3c56b74e9e670b29cad1af9514136915 Mon Sep 17 00:00:00 2001 From: zhaolong Date: Tue, 12 May 2020 13:10:00 +0800 Subject: [PATCH] refactor(sound):amendment translation copywriting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 电池过放后接电源,OS下电池图标显示“电量0%...” 修正翻译文案 task:21671 (cherry picked from commit 0b22d1466975f4652cae4d8a7305c6cb3c6027fe) --- plugins/power/powerplugin.cpp | 4 ++-- translations/dde-dock.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/plugins/power/powerplugin.cpp b/plugins/power/powerplugin.cpp index 12307ad18..cbefd5fbc 100644 --- a/plugins/power/powerplugin.cpp +++ b/plugins/power/powerplugin.cpp @@ -234,8 +234,8 @@ void PowerPlugin::refreshTipsData() uint hour = time.toString("hh").toUInt(); uint min = time.toString("mm").toUInt(); QString tips; - if (timeToFull == 0) { - tips = tr("Charging %1 ....").arg(value); + if(timeToFull == 0) { // 电量已充満或电量计算中,剩余充满时间会返回0 + tips = tr("Capacity %1 ....").arg(value); } else if (hour == 0) { tips = tr("Charging %1, %2 min until full").arg(value).arg(min); } else { diff --git a/translations/dde-dock.ts b/translations/dde-dock.ts index 4f0296ef0..465a2153b 100644 --- a/translations/dde-dock.ts +++ b/translations/dde-dock.ts @@ -221,6 +221,10 @@ Charged Charged + + Capacity %1 .... + + ShowDesktopPlugin