[dconf] editor: Translate summary and description
- From: Robert Ancell <rancell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dconf] editor: Translate summary and description
- Date: Thu, 8 Nov 2012 01:30:02 +0000 (UTC)
commit b16d0d8f8bcd556867f3bfe12176af234ca36337
Author: Daiki Ueno <ueno unixuser org>
Date: Wed Oct 17 12:32:16 2012 +0900
editor: Translate summary and description
https://bugzilla.gnome.org/show_bug.cgi?id=686262
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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]