Skip to content

Commit 5763d34

Browse files
18202781743deepin-bot[bot]
authored andcommitted
chore: missing some translations for notification
as title. pms: BUG-289337
1 parent 9b48b65 commit 5763d34

20 files changed

+294
-219
lines changed

panels/notification/center/notifyitem.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,12 @@ void AppNotifyItem::updateTime()
7979
} else if (minute > 0 && minute < 60) {
8080
ret = tr("%1 minutes ago").arg(minute);
8181
} else {
82-
ret = tr("%1 hours ago").arg(minute / 60);
82+
const auto hour = minute / 60;
83+
if (hour == 1) {
84+
ret = tr("1 hour ago");
85+
} else {
86+
ret = tr("%1 hours ago").arg(hour);
87+
}
8388
}
8489
} else if (elapsedDay >= 1 && elapsedDay < 2) {
8590
ret = tr("Yesterday ") + " " + time.toString("hh:mm");

panels/notification/center/translations/org.deepin.ds.notificationcenter.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44
<context>
55
<name>GroupNotify</name>
66
<message>
7-
<location filename="../GroupNotify.qml" line="50"/>
7+
<location filename="../GroupNotify.qml" line="51"/>
88
<source>Clear All</source>
99
<translation type="unfinished"></translation>
1010
</message>
1111
</context>
1212
<context>
1313
<name>NotifyHeader</name>
1414
<message>
15-
<location filename="../NotifyHeader.qml" line="20"/>
16-
<source>Notification Setting</source>
17-
<translation type="unfinished"></translation>
18-
</message>
19-
<message>
20-
<location filename="../NotifyHeader.qml" line="56"/>
15+
<location filename="../NotifyHeader.qml" line="42"/>
2116
<source>Notification Center</source>
2217
<translation type="unfinished"></translation>
2318
</message>
2419
<message>
25-
<location filename="../NotifyHeader.qml" line="108"/>
20+
<location filename="../NotifyHeader.qml" line="90"/>
2621
<source>Clear All</source>
2722
<translation type="unfinished"></translation>
2823
</message>
@@ -48,22 +43,27 @@
4843
<context>
4944
<name>notifycenter::AppNotifyItem</name>
5045
<message>
51-
<location filename="../notifyitem.cpp" line="76"/>
46+
<location filename="../notifyitem.cpp" line="78"/>
5247
<source>Just now</source>
5348
<translation type="unfinished"></translation>
5449
</message>
5550
<message>
56-
<location filename="../notifyitem.cpp" line="78"/>
51+
<location filename="../notifyitem.cpp" line="80"/>
5752
<source>%1 minutes ago</source>
5853
<translation type="unfinished"></translation>
5954
</message>
6055
<message>
61-
<location filename="../notifyitem.cpp" line="80"/>
56+
<location filename="../notifyitem.cpp" line="84"/>
57+
<source>1 hour ago</source>
58+
<translation type="unfinished"></translation>
59+
</message>
60+
<message>
61+
<location filename="../notifyitem.cpp" line="86"/>
6262
<source>%1 hours ago</source>
6363
<translation type="unfinished"></translation>
6464
</message>
6565
<message>
66-
<location filename="../notifyitem.cpp" line="83"/>
66+
<location filename="../notifyitem.cpp" line="90"/>
6767
<source>Yesterday </source>
6868
<translation type="unfinished"></translation>
6969
</message>

panels/notification/center/translations/org.deepin.ds.notificationcenter_az.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="az">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="az">
24
<context>
35
<name>GroupNotify</name>
46
<message>
5-
<location filename="../GroupNotify.qml" line="50"/>
7+
<location filename="../GroupNotify.qml" line="51"/>
68
<source>Clear All</source>
79
<translation>مسح الكل</translation>
810
</message>
911
</context>
1012
<context>
1113
<name>NotifyHeader</name>
1214
<message>
13-
<location filename="../NotifyHeader.qml" line="20"/>
1415
<source>Notification Setting</source>
15-
<translation>إعداد الإشعارات</translation>
16+
<translation type="vanished">إعداد الإشعارات</translation>
1617
</message>
1718
<message>
18-
<location filename="../NotifyHeader.qml" line="56"/>
19+
<location filename="../NotifyHeader.qml" line="42"/>
1920
<source>Notification Center</source>
2021
<translation>مركز الإشعارات</translation>
2122
</message>
2223
<message>
23-
<location filename="../NotifyHeader.qml" line="108"/>
24+
<location filename="../NotifyHeader.qml" line="90"/>
2425
<source>Clear All</source>
2526
<translation>مسح الكل</translation>
2627
</message>
@@ -46,24 +47,29 @@
4647
<context>
4748
<name>notifycenter::AppNotifyItem</name>
4849
<message>
49-
<location filename="../notifyitem.cpp" line="76"/>
50+
<location filename="../notifyitem.cpp" line="78"/>
5051
<source>Just now</source>
5152
<translation>الآن</translation>
5253
</message>
5354
<message>
54-
<location filename="../notifyitem.cpp" line="78"/>
55+
<location filename="../notifyitem.cpp" line="80"/>
5556
<source>%1 minutes ago</source>
5657
<translation>%1 دقيقة مضت</translation>
5758
</message>
5859
<message>
59-
<location filename="../notifyitem.cpp" line="80"/>
60+
<location filename="../notifyitem.cpp" line="84"/>
61+
<source>1 hour ago</source>
62+
<translation type="unfinished"></translation>
63+
</message>
64+
<message>
65+
<location filename="../notifyitem.cpp" line="86"/>
6066
<source>%1 hours ago</source>
6167
<translation>%1 ساعة مضت</translation>
6268
</message>
6369
<message>
64-
<location filename="../notifyitem.cpp" line="83"/>
70+
<location filename="../notifyitem.cpp" line="90"/>
6571
<source>Yesterday </source>
6672
<translation>أمس </translation>
6773
</message>
6874
</context>
69-
</TS>
75+
</TS>

panels/notification/center/translations/org.deepin.ds.notificationcenter_bo.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,20 @@
44
<context>
55
<name>GroupNotify</name>
66
<message>
7-
<location filename="../GroupNotify.qml" line="50"/>
7+
<location filename="../GroupNotify.qml" line="51"/>
88
<source>Clear All</source>
99
<translation type="unfinished"></translation>
1010
</message>
1111
</context>
1212
<context>
1313
<name>NotifyHeader</name>
1414
<message>
15-
<location filename="../NotifyHeader.qml" line="20"/>
16-
<source>Notification Setting</source>
17-
<translation type="unfinished"></translation>
18-
</message>
19-
<message>
20-
<location filename="../NotifyHeader.qml" line="56"/>
15+
<location filename="../NotifyHeader.qml" line="42"/>
2116
<source>Notification Center</source>
2217
<translation type="unfinished"></translation>
2318
</message>
2419
<message>
25-
<location filename="../NotifyHeader.qml" line="108"/>
20+
<location filename="../NotifyHeader.qml" line="90"/>
2621
<source>Clear All</source>
2722
<translation type="unfinished"></translation>
2823
</message>
@@ -48,22 +43,27 @@
4843
<context>
4944
<name>notifycenter::AppNotifyItem</name>
5045
<message>
51-
<location filename="../notifyitem.cpp" line="76"/>
46+
<location filename="../notifyitem.cpp" line="78"/>
5247
<source>Just now</source>
5348
<translation type="unfinished"></translation>
5449
</message>
5550
<message>
56-
<location filename="../notifyitem.cpp" line="78"/>
51+
<location filename="../notifyitem.cpp" line="80"/>
5752
<source>%1 minutes ago</source>
5853
<translation type="unfinished"></translation>
5954
</message>
6055
<message>
61-
<location filename="../notifyitem.cpp" line="80"/>
56+
<location filename="../notifyitem.cpp" line="84"/>
57+
<source>1 hour ago</source>
58+
<translation type="unfinished"></translation>
59+
</message>
60+
<message>
61+
<location filename="../notifyitem.cpp" line="86"/>
6262
<source>%1 hours ago</source>
6363
<translation type="unfinished"></translation>
6464
</message>
6565
<message>
66-
<location filename="../notifyitem.cpp" line="83"/>
66+
<location filename="../notifyitem.cpp" line="90"/>
6767
<source>Yesterday </source>
6868
<translation type="unfinished"></translation>
6969
</message>

panels/notification/center/translations/org.deepin.ds.notificationcenter_ca.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="ca">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="ca">
24
<context>
35
<name>GroupNotify</name>
46
<message>
5-
<location filename="../GroupNotify.qml" line="50"/>
7+
<location filename="../GroupNotify.qml" line="51"/>
68
<source>Clear All</source>
79
<translation>Neteja-ho tot</translation>
810
</message>
911
</context>
1012
<context>
1113
<name>NotifyHeader</name>
1214
<message>
13-
<location filename="../NotifyHeader.qml" line="20"/>
1415
<source>Notification Setting</source>
15-
<translation>Configuració de les notificacions</translation>
16+
<translation type="vanished">Configuració de les notificacions</translation>
1617
</message>
1718
<message>
18-
<location filename="../NotifyHeader.qml" line="56"/>
19+
<location filename="../NotifyHeader.qml" line="42"/>
1920
<source>Notification Center</source>
2021
<translation>Centre de notificacions</translation>
2122
</message>
2223
<message>
23-
<location filename="../NotifyHeader.qml" line="108"/>
24+
<location filename="../NotifyHeader.qml" line="90"/>
2425
<source>Clear All</source>
2526
<translation>Neteja-ho tot</translation>
2627
</message>
@@ -46,24 +47,29 @@
4647
<context>
4748
<name>notifycenter::AppNotifyItem</name>
4849
<message>
49-
<location filename="../notifyitem.cpp" line="76"/>
50+
<location filename="../notifyitem.cpp" line="78"/>
5051
<source>Just now</source>
5152
<translation>Ara mateix</translation>
5253
</message>
5354
<message>
54-
<location filename="../notifyitem.cpp" line="78"/>
55+
<location filename="../notifyitem.cpp" line="80"/>
5556
<source>%1 minutes ago</source>
5657
<translation>Fa %1 minuts</translation>
5758
</message>
5859
<message>
59-
<location filename="../notifyitem.cpp" line="80"/>
60+
<location filename="../notifyitem.cpp" line="84"/>
61+
<source>1 hour ago</source>
62+
<translation type="unfinished"></translation>
63+
</message>
64+
<message>
65+
<location filename="../notifyitem.cpp" line="86"/>
6066
<source>%1 hours ago</source>
6167
<translation>Fa %1 hores</translation>
6268
</message>
6369
<message>
64-
<location filename="../notifyitem.cpp" line="83"/>
70+
<location filename="../notifyitem.cpp" line="90"/>
6571
<source>Yesterday </source>
6672
<translation>Ahir</translation>
6773
</message>
6874
</context>
69-
</TS>
75+
</TS>

panels/notification/center/translations/org.deepin.ds.notificationcenter_es.ts

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
1-
<?xml version="1.0" ?><!DOCTYPE TS><TS version="2.1" language="es">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="es">
24
<context>
35
<name>GroupNotify</name>
46
<message>
5-
<location filename="../GroupNotify.qml" line="50"/>
7+
<location filename="../GroupNotify.qml" line="51"/>
68
<source>Clear All</source>
79
<translation>Limpiar todo</translation>
810
</message>
911
</context>
1012
<context>
1113
<name>NotifyHeader</name>
1214
<message>
13-
<location filename="../NotifyHeader.qml" line="20"/>
1415
<source>Notification Setting</source>
15-
<translation>Ajustes de notificaciones</translation>
16+
<translation type="vanished">Ajustes de notificaciones</translation>
1617
</message>
1718
<message>
18-
<location filename="../NotifyHeader.qml" line="56"/>
19+
<location filename="../NotifyHeader.qml" line="42"/>
1920
<source>Notification Center</source>
2021
<translation>Centro de notificaciones</translation>
2122
</message>
2223
<message>
23-
<location filename="../NotifyHeader.qml" line="108"/>
24+
<location filename="../NotifyHeader.qml" line="90"/>
2425
<source>Clear All</source>
2526
<translation>Limpiar todo</translation>
2627
</message>
@@ -46,24 +47,29 @@
4647
<context>
4748
<name>notifycenter::AppNotifyItem</name>
4849
<message>
49-
<location filename="../notifyitem.cpp" line="76"/>
50+
<location filename="../notifyitem.cpp" line="78"/>
5051
<source>Just now</source>
5152
<translation>Ahora mismo</translation>
5253
</message>
5354
<message>
54-
<location filename="../notifyitem.cpp" line="78"/>
55+
<location filename="../notifyitem.cpp" line="80"/>
5556
<source>%1 minutes ago</source>
5657
<translation>Hace %1 minutos</translation>
5758
</message>
5859
<message>
59-
<location filename="../notifyitem.cpp" line="80"/>
60+
<location filename="../notifyitem.cpp" line="84"/>
61+
<source>1 hour ago</source>
62+
<translation type="unfinished"></translation>
63+
</message>
64+
<message>
65+
<location filename="../notifyitem.cpp" line="86"/>
6066
<source>%1 hours ago</source>
6167
<translation>Hace %1 horas</translation>
6268
</message>
6369
<message>
64-
<location filename="../notifyitem.cpp" line="83"/>
70+
<location filename="../notifyitem.cpp" line="90"/>
6571
<source>Yesterday </source>
6672
<translation>Ayer </translation>
6773
</message>
6874
</context>
69-
</TS>
75+
</TS>

0 commit comments

Comments
 (0)