[chrome-gnome-shell] Allow html in translation strings for some dom elements



commit 0fcccbae0f6eb3624ac50a4a082b3639579f5937
Author: Yuri Konotopov <ykonotopov gmail com>
Date:   Sat Mar 5 10:53:57 2016 +0300

    Allow html in translation strings for some dom elements

 extension/include/i18n.js |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/extension/include/i18n.js b/extension/include/i18n.js
index c960747..7ca58a3 100644
--- a/extension/include/i18n.js
+++ b/extension/include/i18n.js
@@ -28,7 +28,14 @@ i18n = (function($) {
 
                        if(data.length)
                        {
-                               $(this).text(m(data[0], data.slice(1)));
+                               if($(this).data('i18n-html'))
+                               {
+                                       $(this).html(m(data[0], data.slice(1)));
+                               }
+                               else
+                               {
+                                       $(this).text(m(data[0], data.slice(1)));
+                               }
                        }
                });
        }


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