[Gpa-commits] r895 - trunk/src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 9 19:18:57 CEST 2008


Author: werner
Date: 2008-05-09 19:18:56 +0200 (Fri, 09 May 2008)
New Revision: 895

Modified:
   trunk/src/ChangeLog
   trunk/src/confdialog.c
Log:
Use localized group names.


Modified: trunk/src/ChangeLog
===================================================================
--- trunk/src/ChangeLog	2008-05-09 04:45:25 UTC (rev 894)
+++ trunk/src/ChangeLog	2008-05-09 17:18:56 UTC (rev 895)
@@ -1,3 +1,7 @@
+2008-05-09  Werner Koch  <wk at g10code.com>
+
+	* confdialog.c (create_dialog_tabs_2): Use a localized group name.
+
 2008-05-09  Marcus Brinkmann  <marcus at g10code.de>
 
 	* Makefile.am (gpa_SOURCES): Add gpastreamverifyop.h,

Modified: trunk/src/confdialog.c
===================================================================
--- trunk/src/confdialog.c	2008-05-09 04:45:25 UTC (rev 894)
+++ trunk/src/confdialog.c	2008-05-09 17:18:56 UTC (rev 895)
@@ -1012,8 +1012,15 @@
 	      gtk_box_pack_start (GTK_BOX (page), frame, FALSE, FALSE, 0);
 	      gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_NONE);
 
-	      /* FIXME: l10n? */
-	      snprintf (name, sizeof (name), "<b>%s</b>", option->name);
+	      /* For i18n reasons we use the description.  It might be
+                 better to add a new field to privide a localized
+                 version of the Group name.  Maybe the argname can be
+                 used for it.  AFAICS, we would only need to prefix
+                 the description with the group name and gpgconf would
+                 instantly privide that. */
+	      snprintf (name, sizeof (name), "<b>%s</b>", 
+                        (option->argname && *option->argname)?
+                         option->argname : option->description);
 	      name[sizeof (name) - 1] = '\0';
 	      label = gtk_label_new (name);
 



More information about the Gpa-commits mailing list