[Xfce-i18n] mcs-manager dialog too wide

Adriano Winter Bess awbess at gmail.com
Thu Apr 13 08:48:22 CEST 2006


On Wed, Apr 12, 2006 at 08:31:44PM +0200, Benedikt Meurer wrote:
> Yes, please send a patch that adds context translations. It makes sense.
> I'll apply it.

Here they are. I've created one patch per package, I thought it would be easier
to handle them this way. This is the description for each patch:

xfce-mcs-manager.patch:
	Center justifies the label in the xfce-mcs-manager dialog's buttons
	(same one I posted sometime ago).

libexo.patch:
	Context translation for "Preferred Applications" mcs plugin.

xfcalendar.patch:
	Context translation for "Orage" mcs plugin.

xfce4-mixer.patch:
	Context translation for "Sound" mcs plugin.

xfce4-session.patch:
	Context translation for "Sessions and Startup" mcs plugin.

xfce-mcs-plugins.patch:
	Context translation for "Mouse" mcs plugin.

xfdesktop.patch:
	Context translation for "Desktop" mcs plugin.

xfwm4.patch:
	Context translation for "Workspaces and Margins", Window Manager
	Tweaks" and "Window Manager" mcs plugins.

Regards,
Adriano
-- 
Adriano Winter Bess

-------------- next part --------------
Index: xfce-mcs-manager/xfce-mcs-dialog.c
===================================================================
--- xfce-mcs-manager/xfce-mcs-dialog.c	(revis?o 20859)
+++ xfce-mcs-manager/xfce-mcs-dialog.c	(c?pia de trabalho)
@@ -113,6 +113,7 @@
     label = gtk_label_new (text);
     gtk_widget_show (label);
     gtk_label_set_line_wrap (GTK_LABEL (label), TRUE);
+    gtk_label_set_justify (GTK_LABEL (label), GTK_JUSTIFY_CENTER);
     gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
 
     return button;
-------------- next part --------------
Index: exo-helper/exo-preferred-applications-settings.c
===================================================================
--- exo-helper/exo-preferred-applications-settings.c	(revis?o 20859)
+++ exo-helper/exo-preferred-applications-settings.c	(c?pia de trabalho)
@@ -59,7 +59,8 @@
 
   /* initialize plugin structure */
   plugin->plugin_name = g_strdup ("exo-preferred-applications");
-  plugin->caption = g_strdup (_("Preferred Applications"));
+  /* the button label in the xfce-mcs-manager dialog */
+  plugin->caption = g_strdup (Q_("Button Label|Preferred Applications"));
   plugin->run_dialog = run_dialog;
 
   /* lookup the icon (on the default icon theme, *sigh*) */
-------------- next part --------------
Index: plugin/xfcalendar_plugin.c
===================================================================
--- plugin/xfcalendar_plugin.c	(revis?o 20859)
+++ plugin/xfcalendar_plugin.c	(c?pia de trabalho)
@@ -785,7 +785,8 @@
 
     create_channel(mcs_plugin);
     mcs_plugin->plugin_name = g_strdup(PLUGIN_NAME);
-    mcs_plugin->caption = g_strdup(_("Orage"));
+    /* the button label in the xfce-mcs-manager dialog */
+    mcs_plugin->caption = g_strdup(Q_("Button Label|Orage"));
     mcs_plugin->run_dialog = run_dialog;
     mcs_plugin->icon = xfce_themed_icon_load("xfcalendar", 48);
     mcs_manager_notify(mcs_plugin->manager, CHANNEL);
-------------- next part --------------
Index: settings/sound.c
===================================================================
--- settings/sound.c	(revis?o 20859)
+++ settings/sound.c	(c?pia de trabalho)
@@ -77,7 +77,8 @@
 	g_free(file);
 
 	plugin->plugin_name = g_strdup ("sound");
-	plugin->caption = g_strdup ( _("Sound"));
+	/* the button label in the xfce-mcs-manager dialog */
+	plugin->caption = g_strdup (Q_("Button Label|Sound"));
 	plugin->run_dialog = run_dialog;
 	plugin->icon = xfce_themed_icon_load ("xfce4-mixer", 48);
 	
-------------- next part --------------
Index: settings/session/session.c
===================================================================
--- settings/session/session.c	(revis?o 20859)
+++ settings/session/session.c	(c?pia de trabalho)
@@ -380,7 +380,8 @@
   xfce_textdomain (GETTEXT_PACKAGE, PACKAGE_LOCALE_DIR, "UTF-8");
 
   plugin->plugin_name = g_strdup ("session");
-  plugin->caption = g_strdup (_("Sessions and Startup"));
+  /* the button label in the xfce-mcs-manager dialog */
+  plugin->caption = g_strdup (Q_("Button Label|Sessions and Startup"));
   plugin->run_dialog = dialog_run;
   plugin->icon = xfce_themed_icon_load ("xfce4-session", 48);
 
-------------- next part --------------
Index: plugins/mouse_plugin/mouse_plugin.c
===================================================================
--- plugins/mouse_plugin/mouse_plugin.c	(revis?o 20859)
+++ plugins/mouse_plugin/mouse_plugin.c	(c?pia de trabalho)
@@ -457,7 +457,8 @@
 
     create_channel(mcs_plugin);
     mcs_plugin->plugin_name = g_strdup(PLUGIN_NAME);
-    mcs_plugin->caption = g_strdup(_("Mouse"));
+    /* the button label in the xfce-mcs-manager dialog */
+    mcs_plugin->caption = g_strdup(Q_("Button Label|Mouse"));
     mcs_plugin->run_dialog = run_dialog;
     mcs_plugin->icon = xfce_themed_icon_load ("xfce4-mouse", 48);
     mcs_manager_notify(mcs_plugin->manager, CHANNEL1);
-------------- next part --------------
Index: settings/appearance-settings.c
===================================================================
--- settings/appearance-settings.c	(revis?o 20859)
+++ settings/appearance-settings.c	(c?pia de trabalho)
@@ -130,7 +130,8 @@
     xfce_textdomain (GETTEXT_PACKAGE, LOCALEDIR, "UTF-8");
 
     mcs_plugin->plugin_name = g_strdup (PLUGIN_NAME);
-    mcs_plugin->caption = g_strdup (_("Desktop"));
+    /* the button label in the xfce-mcs-manager dialog */
+    mcs_plugin->caption = g_strdup (Q_("Button Label|Desktop"));
     mcs_plugin->run_dialog = run_dialog;
 
     mcs_plugin->icon = xfce_themed_icon_load("xfce4-backdrop", 48);
-------------- next part --------------
Index: mcs-plugin/plugin.c
===================================================================
--- mcs-plugin/plugin.c	(revis?o 20859)
+++ mcs-plugin/plugin.c	(c?pia de trabalho)
@@ -106,7 +106,8 @@
     manager = mcs_plugin->manager;
 
     mcs_plugin->plugin_name = g_strdup (PLUGIN_NAME);
-    mcs_plugin->caption = g_strdup (_("Workspaces and Margins"));
+    /* the button label in the xfce-mcs-manager dialog */
+    mcs_plugin->caption = g_strdup (Q_("Button Label|Workspaces and Margins"));
     mcs_plugin->run_dialog = run_dialog;
     mcs_plugin->icon = xfce_themed_icon_load ("xfce4-workspaces", 48);
 
Index: mcs-plugin/wmtweaks_plugin.c
===================================================================
--- mcs-plugin/wmtweaks_plugin.c	(revis?o 20859)
+++ mcs-plugin/wmtweaks_plugin.c	(c?pia de trabalho)
@@ -603,7 +603,8 @@
 
     xfwm4_create_channel (mcs_plugin);
     mcs_plugin->plugin_name = g_strdup (PLUGIN_NAME);
-    mcs_plugin->caption = g_strdup (_("Window Manager Tweaks"));
+    /* the button label in the xfce-mcs-manager dialog */
+    mcs_plugin->caption = g_strdup (Q_("Button Label|Window Manager Tweaks"));
     mcs_plugin->run_dialog = run_dialog;
     mcs_plugin->icon = xfce_themed_icon_load ("wmtweaks", 48);
     mcs_manager_notify (mcs_plugin->manager, CHANNEL);
Index: mcs-plugin/xfwm4_plugin.c
===================================================================
--- mcs-plugin/xfwm4_plugin.c	(revis?o 20859)
+++ mcs-plugin/xfwm4_plugin.c	(c?pia de trabalho)
@@ -1973,7 +1973,8 @@
 
     xfwm4_create_channel (mcs_plugin);
     mcs_plugin->plugin_name = g_strdup (PLUGIN_NAME);
-    mcs_plugin->caption = g_strdup (_("Window Manager"));
+    /* the button label in the xfce-mcs-manager dialog */
+    mcs_plugin->caption = g_strdup (Q_("Button Label|Window Manager"));
     mcs_plugin->run_dialog = run_dialog;
     mcs_plugin->icon = xfce_themed_icon_load ("xfwm4", 48);
     mcs_manager_notify (mcs_plugin->manager, CHANNEL1);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://mail.xfce.org/pipermail/xfce-i18n/attachments/20060413/be09edd7/attachment.pgp>


More information about the Xfce-i18n mailing list