[gnome-desktop/mtyshibata/gnome-desktop-fix_ratio_vs_colon: 1/4] wall-clock: make RATIO mark translatable



commit 20d58a539bf92135dd5debf6672400dbfa561793
Author: Mitsuya Shibata <mty shibata gmail com>
Date:   Fri Mar 20 19:30:36 2020 +0900

    wall-clock: make RATIO mark translatable

 libgnome-desktop/gnome-wall-clock.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
---
diff --git a/libgnome-desktop/gnome-wall-clock.c b/libgnome-desktop/gnome-wall-clock.c
index 47d972de..caede60d 100644
--- a/libgnome-desktop/gnome-wall-clock.c
+++ b/libgnome-desktop/gnome-wall-clock.c
@@ -248,9 +248,19 @@ date_time_format (GDateTime *datetime,
 
        if (is_utf8) {
                char *tmp;
+               g_autofree char *replacement = NULL;
+
+               /* Translators: In some languages, the width of the ratio character
+                * being ambiguous can cause problems, and the plain colon should be
+                * used instead of ratio.
+                * Translate this only if that's the case for your language. */
+               replacement = g_strconcat ("\xE2\x80\x8E",
+                                          C_("time separator", "∶"),
+                                          NULL);
+
                /* Then, after formatting, replace the plain colon with ratio,
                 * and prepend it with an LTR marker to force direction. */
-               tmp = string_replace (replaced_format, ":", "\xE2\x80\x8E∶");
+               tmp = string_replace (replaced_format, ":", replacement);
 
                /* Finally, replace double spaces with a single en-space.*/
                ret = string_replace (tmp, "_", " ");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]