summaryrefslogtreecommitdiff
path: root/dash/previews
diff options
authorManuel de la Pena <manuel@canonical.com>2013-04-29 11:40:45 +0200
committerManuel de la Pena <manuel@canonical.com>2013-04-29 11:40:45 +0200
commit862b569289c29418a1c02f706c6e10ad969c3b48 (patch)
treeaf24ba49157d2eda978a48c655dcd971354889ca /dash/previews
parent492af779cbfb866ef6ab4dc1d628fea28c1ae7f9 (diff)
parentbba38faeeb436b77b11929f6e8bcc5122f8fdd81 (diff)
Merged with trunk.
(bzr r3263.2.13)
Diffstat (limited to 'dash/previews')
-rw-r--r--dash/previews/PreviewInfoHintWidget.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/dash/previews/PreviewInfoHintWidget.cpp b/dash/previews/PreviewInfoHintWidget.cpp
index 8ad7dbe03..46ebfb0e3 100644
--- a/dash/previews/PreviewInfoHintWidget.cpp
+++ b/dash/previews/PreviewInfoHintWidget.cpp
@@ -20,6 +20,9 @@
*
*/
+#include "config.h"
+#include <glib/gi18n-lib.h>
+
#include "PreviewInfoHintWidget.h"
#include "unity-shared/IntrospectableWrappers.h"
#include <NuxCore/Logger.h>
@@ -158,8 +161,8 @@ void PreviewInfoHintWidget::SetupViews()
StaticCairoTextPtr info_name;
if (!info_hint->display_name.empty())
{
- std::string tmp_display_name = info_hint->display_name;
- tmp_display_name += ":";
+ // The "%s" is used in the dash preview to display the "<hint>: <value>" infos
+ std::string tmp_display_name = glib::String(g_strdup_printf (_("%s:"), info_hint->display_name.c_str())).Str();
info_name = new StaticCairoText(tmp_display_name, true, NUX_TRACKER_LOCATION);
info_name->SetFont(style.info_hint_bold_font());