[mutter] clutter: Reuse GTK+'s RTL/LTR handling



commit a4e69f338d40355952e16362a424e720a07ec6e3
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Sep 16 19:59:01 2016 +0200

    clutter: Reuse GTK+'s RTL/LTR handling
    
    Commit a4fb7ef5a3e dropped translations of our internal cogl/clutter
    forks, which broke the local-based text direction support. Instead
    of bringing back translations just for this purpose, we can re-use
    GTK's translations which use the same technique.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=771549

 clutter/clutter/clutter-main.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c
index ba94843..0f85db6 100644
--- a/clutter/clutter/clutter-main.c
+++ b/clutter/clutter/clutter-main.c
@@ -719,14 +719,8 @@ clutter_get_text_direction (void)
     }
   else
     {
-      /* Translators: Leave this UNTRANSLATED if your language is
-       * left-to-right.  If your language is right-to-left
-       * (e.g. Hebrew, Arabic), translate it to "default:RTL".
-       *
-       * Do NOT translate it to non-English e.g. "predefinito:LTR"! If
-       * it isn't default:LTR or default:RTL it will not work.
-       */
-      char *e = _("default:LTR");
+      /* Re-use GTK+'s LTR/RTL handling */
+      const char *e = g_dgettext ("gtk30", "default:LTR");
 
       if (strcmp (e, "default:RTL") == 0)
         dir = CLUTTER_TEXT_DIRECTION_RTL;


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