Skip to content

Commit

Permalink
Remove unnecessary i18n entries
Browse files Browse the repository at this point in the history
Change-Id: I834f150011cf0cda60549406209585eb72facf91
  • Loading branch information
hualet committed Dec 27, 2016
1 parent ccab782 commit 192c4f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 18 deletions.
2 changes: 1 addition & 1 deletion plugins/datetime/datetimeplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void DatetimePlugin::updateCurrentTimeString()
{
const QDateTime currentDateTime = QDateTime::currentDateTime();

m_dateTipsLabel->setText(currentDateTime.date().toString(Qt::SystemLocaleLongDate) + currentDateTime.toString(tr(" HH:mm:ss")));
m_dateTipsLabel->setText(currentDateTime.date().toString(Qt::SystemLocaleLongDate) + currentDateTime.toString(" HH:mm:ss"));

const QString currentString = currentDateTime.toString("mm");

Expand Down
2 changes: 1 addition & 1 deletion plugins/datetime/datetimewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void DatetimeWidget::paintEvent(QPaintEvent *e)
if (displayMode == Dock::Efficient)
{
painter.setPen(Qt::white);
painter.drawText(rect(), Qt::AlignCenter, current.toString(tr("HH:mm")));
painter.drawText(rect(), Qt::AlignCenter, current.toString("HH:mm"));
return;
}

Expand Down
19 changes: 3 additions & 16 deletions translations/dde-dock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@
<source>Time Settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../plugins/datetime/datetimeplugin.cpp" line="105"/>
<source> HH:mm:ss</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DatetimeWidget</name>
<message>
<location filename="../plugins/datetime/datetimewidget.cpp" line="42"/>
<source>HH:mm</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>DeviceItem</name>
Expand Down Expand Up @@ -358,17 +345,17 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../plugins/network/item/applet/wirelessapplet.cpp" line="143"/>
<location filename="../plugins/network/item/applet/wirelessapplet.cpp" line="147"/>
<source>Wireless Network</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../plugins/network/item/applet/wirelessapplet.cpp" line="145"/>
<location filename="../plugins/network/item/applet/wirelessapplet.cpp" line="149"/>
<source>Wireless Network %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../plugins/network/item/applet/wirelessapplet.cpp" line="370"/>
<location filename="../plugins/network/item/applet/wirelessapplet.cpp" line="378"/>
<source>Password required to connect to &lt;font color=&quot;#faca57&quot;&gt;%1&lt;/font&gt;</source>
<translation type="unfinished"></translation>
</message>
Expand Down

0 comments on commit 192c4f9

Please sign in to comment.