[gnome-characters/wip/properties: 12/14] character: Translate detail labels



commit 78aac28173486b2d6645b3ae6108f175e520332e
Author: Daiki Ueno <dueno src gnome org>
Date:   Tue Feb 10 12:29:13 2015 +0900

    character: Translate detail labels

 src/character.js |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/character.js b/src/character.js
index a834e87..65e8584 100644
--- a/src/character.js
+++ b/src/character.js
@@ -24,6 +24,7 @@ const GObject = imports.gi.GObject;
 const Gtk = imports.gi.Gtk;
 const Pango = imports.gi.Pango;
 const Gc = imports.gi.Gc;
+const Gettext = imports.gettext;
 const Main = imports.main;
 const Util = imports.util;
 
@@ -147,9 +148,9 @@ const CharacterDialog = new Lang.Class({
 
         this._codepoint_label.label =
             _("U+%04s").format(Util.hexCodepoint(uc));
-        this._category_label.label = Gc.character_category(uc);
-        this._script_label.label = Gc.character_script(uc);
-        this._block_label.label = Gc.character_block(uc);
+        this._category_label.label = Gettext.gettext(Gc.character_category(uc));
+        this._script_label.label = Gettext.gettext(Gc.character_script(uc));
+        this._block_label.label = Gettext.gettext(Gc.character_block(uc));
 
         this._detail_grid.remove_row(4);
         let result = Gc.character_decomposition(uc);


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