diff options
author | Daiki Ueno <ueno@unixuser.org> | 2012-10-17 12:32:16 +0900 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2012-11-08 14:28:41 +1300 |
commit | b16d0d8f8bcd556867f3bfe12176af234ca36337 (patch) | |
tree | c8b6c0a0c09b978fe4f5c18595bf5e8e304480d7 | |
parent | bbe86236d2f8c0a82af42da23399890f2bd25e23 (diff) | |
download | dconf-b16d0d8f8bcd556867f3bfe12176af234ca36337.tar.gz |
editor: Translate summary and description
https://bugzilla.gnome.org/show_bug.cgi?id=686262
-rw-r--r-- | editor/dconf-editor.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/dconf-editor.vala b/editor/dconf-editor.vala index 4721d25..78f92dd 100644 --- a/editor/dconf-editor.vala +++ b/editor/dconf-editor.vala @@ -216,11 +216,16 @@ class ConfigurationEditor : Gtk.Application { if (selected_key.schema != null) { + var gettext_domain = selected_key.schema.gettext_domain; schema_name = selected_key.schema.schema.id; if (selected_key.schema.summary != null) summary = selected_key.schema.summary; + if (gettext_domain != null && summary != "") + summary = dgettext(gettext_domain, summary); if (selected_key.schema.description != null) description = selected_key.schema.description; + if (gettext_domain != null && description != "") + description = dgettext(gettext_domain, description); type = key_to_description(selected_key); default_value = selected_key.schema.default_value.print(false); } |