[Goodies-commits] r6992 - in xfce4-mount-plugin/trunk: . panel-plugin po
Fabian Nowak
timystery at xfce.org
Wed Mar 25 01:19:13 CET 2009
Author: timystery
Date: 2009-03-25 00:19:13 +0000 (Wed, 25 Mar 2009)
New Revision: 6992
Modified:
xfce4-mount-plugin/trunk/configure.ac
xfce4-mount-plugin/trunk/panel-plugin/devices.c
xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c
xfce4-mount-plugin/trunk/po/de.po
Log:
- updated german translation
- crop UUID strings
Modified: xfce4-mount-plugin/trunk/configure.ac
===================================================================
--- xfce4-mount-plugin/trunk/configure.ac 2009-03-24 18:05:31 UTC (rev 6991)
+++ xfce4-mount-plugin/trunk/configure.ac 2009-03-25 00:19:13 UTC (rev 6992)
@@ -7,7 +7,7 @@
dnl
dnl for Xfce4-panel 4.3 and higher only!
-m4_define([mount_version],[0.5.6])
+m4_define([mount_version],[0.5.7])
AC_INIT([xfce4-mount-plugin], [mount_version],
[timystery at arcor.de])
Modified: xfce4-mount-plugin/trunk/panel-plugin/devices.c
===================================================================
--- xfce4-mount-plugin/trunk/panel-plugin/devices.c 2009-03-24 18:05:31 UTC (rev 6991)
+++ xfce4-mount-plugin/trunk/panel-plugin/devices.c 2009-03-25 00:19:13 UTC (rev 6992)
@@ -162,7 +162,22 @@
return;
}
+char *
+shorten_disk_name (const char *dev)
+{
+ char *r, *lastchars;
+ if (strncmp(dev, "UUID", 4)==0 && strlen(dev)>13)
+ {
+ lastchars = (char *) (dev + strlen(dev) - 5);
+ r = (char *) malloc (14*sizeof(char));
+ snprintf (r, 14, "UUID=...%s", lastchars);
+ }
+ else
+ r = g_strdup (dev);
+ return r;
+}
+
t_disk *
disk_new (const char * dev, const char * mountpoint)
{
@@ -173,7 +188,7 @@
if ( dev != NULL && mountpoint != NULL)
{
pdisk = g_new0 (t_disk,1);
- pdisk->device = g_strdup(dev);
+ pdisk->device = shorten_disk_name (dev);
pdisk->mount_point = g_strdup (mountpoint);
pdisk->mount_info = NULL;
Modified: xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c
===================================================================
--- xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c 2009-03-24 18:05:31 UTC (rev 6991)
+++ xfce4-mount-plugin/trunk/panel-plugin/mount-plugin.c 2009-03-25 00:19:13 UTC (rev 6992)
@@ -296,7 +296,7 @@
char *dev_mp; /* device or mountpoint */
gboolean removed_device;
- /*get static infos from /etc/fstab */
+ /* get static infos from /etc/fstab */
mt->pdisks = disks_new (mt->include_NFSs, &(mt->showed_fstab_dialog));
/* remove unwanted file systems from list */
Modified: xfce4-mount-plugin/trunk/po/de.po
===================================================================
--- xfce4-mount-plugin/trunk/po/de.po 2009-03-24 18:05:31 UTC (rev 6991)
+++ xfce4-mount-plugin/trunk/po/de.po 2009-03-25 00:19:13 UTC (rev 6992)
@@ -9,7 +9,7 @@
"Project-Id-Version: xfce4-mount-plugin 0.5.3\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2009-01-21 21:56+0100\n"
-"PO-Revision-Date: 2009-01-21 21:56+0100\n"
+"PO-Revision-Date: 2009-03-25 00:07+0100\n"
"Last-Translator: Fabian Nowak <timystery at arcor.de>\n"
"Language-Team: German <xfce-i18n at xfce.org>\n"
"MIME-Version: 1.0\n"
@@ -225,7 +225,7 @@
#: ../panel-plugin/mount-plugin.c:986
msgid "Display _mount points only"
-msgstr "Nur die _Einhängepunkt anzeigen"
+msgstr "Nur den _Einhängepunkt anzeigen"
#: ../panel-plugin/mount-plugin.c:1001
msgid ""
More information about the Goodies-commits
mailing list