Simon Kelley wrote:
Carlos Carvalho wrote:
OTOH, changing the strings will make the logs more concise...
Only a few, and it adds lots of copies of the string "DHCP:" to the
binary. The ones which are obviously more concise could  be changed.

Here is one:

--- dnsmasq-2.47.orig/src/dhcp.c    2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/src/dhcp.c    2009-02-27 22:20:22.000000000 +0100
@@ -35,7 +35,7 @@
#endif

  if (fd == -1)
-    die (_("cannot create DHCP socket : %s"), NULL, EC_BADNET);
+    die (_("cannot create DHCP socket: %s"), NULL, EC_BADNET);
if (!fix_fd(fd) ||
#if defined(IP_MTU_DISCOVER) && defined(IP_PMTUDISC_DONT)


Several translations had already (mysteriously ;-)) changed "socket :" into "socket:".


Olaf
diff -Nur dnsmasq-2.47.orig/po/de.po dnsmasq-2.47/po/de.po
--- dnsmasq-2.47.orig/po/de.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/de.po	2009-02-27 22:35:08.000000000 +0100
@@ -1092,7 +1092,7 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr ""
 
 #: dhcp.c:50
diff -Nur dnsmasq-2.47.orig/po/es.po dnsmasq-2.47/po/es.po
--- dnsmasq-2.47.orig/po/es.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/es.po	2009-02-27 22:35:08.000000000 +0100
@@ -1079,7 +1079,7 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr "no se puede crear socket DHCP: %s"
 
 #: dhcp.c:50
diff -Nur dnsmasq-2.47.orig/po/fi.po dnsmasq-2.47/po/fi.po
--- dnsmasq-2.47.orig/po/fi.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/fi.po	2009-02-27 22:35:08.000000000 +0100
@@ -1049,7 +1049,7 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr ""
 
 #: dhcp.c:50
diff -Nur dnsmasq-2.47.orig/po/fr.po dnsmasq-2.47/po/fr.po
--- dnsmasq-2.47.orig/po/fr.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/fr.po	2009-02-27 22:35:08.000000000 +0100
@@ -1077,8 +1077,8 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
-msgstr "ne peut créer la socket DHCP : %s"
+msgid "cannot create DHCP socket: %s"
+msgstr "ne peut créer la socket DHCP: %s"
 
 #: dhcp.c:50
 #, c-format
diff -Nur dnsmasq-2.47.orig/po/id.po dnsmasq-2.47/po/id.po
--- dnsmasq-2.47.orig/po/id.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/id.po	2009-02-27 22:35:08.000000000 +0100
@@ -1240,7 +1240,7 @@
 # OK
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr "tidak bisa membuat socket DHCP: %s"
 
 # OK
diff -Nur dnsmasq-2.47.orig/po/it.po dnsmasq-2.47/po/it.po
--- dnsmasq-2.47.orig/po/it.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/it.po	2009-02-27 22:35:08.000000000 +0100
@@ -1049,7 +1049,7 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr ""
 
 #: dhcp.c:50
diff -Nur dnsmasq-2.47.orig/po/no.po dnsmasq-2.47/po/no.po
--- dnsmasq-2.47.orig/po/no.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/no.po	2009-02-27 22:35:08.000000000 +0100
@@ -1077,8 +1077,8 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
-msgstr "kan ikke lage DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
+msgstr "kan ikke lage DHCP socket: %s"
 
 #: dhcp.c:50
 #, c-format
diff -Nur dnsmasq-2.47.orig/po/pl.po dnsmasq-2.47/po/pl.po
--- dnsmasq-2.47.orig/po/pl.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/pl.po	2009-02-27 22:35:08.000000000 +0100
@@ -1055,7 +1055,7 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr "nie uda³o siê utworzyæ gniazda dla DHCP: %s"
 
 #: dhcp.c:50
diff -Nur dnsmasq-2.47.orig/po/pt_BR.po dnsmasq-2.47/po/pt_BR.po
--- dnsmasq-2.47.orig/po/pt_BR.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/pt_BR.po	2009-02-27 22:35:08.000000000 +0100
@@ -1049,7 +1049,7 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
+msgid "cannot create DHCP socket: %s"
 msgstr ""
 
 #: dhcp.c:50
diff -Nur dnsmasq-2.47.orig/po/ro.po dnsmasq-2.47/po/ro.po
--- dnsmasq-2.47.orig/po/ro.po	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/po/ro.po	2009-02-27 22:35:08.000000000 +0100
@@ -1078,8 +1078,8 @@
 
 #: dhcp.c:38
 #, c-format
-msgid "cannot create DHCP socket : %s"
-msgstr "nu pot creea socket DHCP : %s"
+msgid "cannot create DHCP socket: %s"
+msgstr "nu pot creea socket DHCP: %s"
 
 #: dhcp.c:50
 #, c-format
diff -Nur dnsmasq-2.47.orig/src/dhcp.c dnsmasq-2.47/src/dhcp.c
--- dnsmasq-2.47.orig/src/dhcp.c	2009-02-26 16:18:37.000000000 +0100
+++ dnsmasq-2.47/src/dhcp.c	2009-02-27 22:20:22.000000000 +0100
@@ -35,7 +35,7 @@
 #endif
 
   if (fd == -1)
-    die (_("cannot create DHCP socket : %s"), NULL, EC_BADNET);
+    die (_("cannot create DHCP socket: %s"), NULL, EC_BADNET);
   
   if (!fix_fd(fd) ||
 #if defined(IP_MTU_DISCOVER) && defined(IP_PMTUDISC_DONT)

Reply via email to