[Xfce4-commits] [xfce/xfce4-panel] 01/01: clock: Make the default date and time format translatable (Bug #9637)

noreply at xfce.org noreply at xfce.org
Wed Jun 21 22:59:34 CEST 2017


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-panel.

commit 4de767e604c2fcd063282ef051c224b9e87661e7
Author: André Miranda <andreldm at xfce.org>
Date:   Wed Jun 21 22:58:11 2017 +0200

    clock: Make the default date and time format translatable (Bug #9637)
---
 plugins/clock/clock-digital.h | 3 ++-
 plugins/clock/clock.c         | 3 ++-
 po/POTFILES.in                | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/plugins/clock/clock-digital.h b/plugins/clock/clock-digital.h
index f8d4771..26f52a4 100644
--- a/plugins/clock/clock-digital.h
+++ b/plugins/clock/clock-digital.h
@@ -21,7 +21,8 @@
 
 G_BEGIN_DECLS
 
-#define DEFAULT_DIGITAL_FORMAT "%R"
+/* TRANSLATORS: adjust this accordingly for your locale format */
+#define DEFAULT_DIGITAL_FORMAT NC_("Time", "%R")
 
 typedef struct _XfceClockDigitalClass XfceClockDigitalClass;
 typedef struct _XfceClockDigital      XfceClockDigital;
diff --git a/plugins/clock/clock.c b/plugins/clock/clock.c
index 89ba45c..e982fdf 100644
--- a/plugins/clock/clock.c
+++ b/plugins/clock/clock.c
@@ -42,7 +42,8 @@
 #include "clock-lcd.h"
 #include "clock-dialog_ui.h"
 
-#define DEFAULT_TOOLTIP_FORMAT "%A %d %B %Y"
+/* TRANSLATORS: adjust this accordingly for your locale format */
+#define DEFAULT_TOOLTIP_FORMAT NC_("Date", "%A %d %B %Y")
 
 /* Please adjust the following command to match your distribution */
 /* e.g. "time-admin" */
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7d1db85..b4b01c7 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -47,6 +47,7 @@ plugins/clock/clock-analog.c
 plugins/clock/clock-binary.c
 plugins/clock/clock-dialog.glade
 plugins/clock/clock-digital.c
+plugins/clock/clock-digital.h
 plugins/clock/clock-fuzzy.c
 plugins/clock/clock-lcd.c
 plugins/clock/clock.desktop.in.in

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list