* [PATCH] Fix hardcoded strings in pppsetup.cgi [not found] <1433079323.3370.92.camel@ipfire.org> @ 2015-06-01 20:59 ` Larsen 2015-06-01 21:57 ` Aw: " Bernhard Bitsch 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-01 20:59 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 6572 bytes --] Some strings for PPTP were hardcoded instead of using i18n features. Signed-off-by: Lars Schuhmacher <larsen007(a)web.de> --- html/cgi-bin/pppsetup.cgi | 6 +++--- langs/de/cgi-bin/de.pl | 3 +++ langs/en/cgi-bin/en.pl | 3 +++ langs/es/cgi-bin/es.pl | 3 +++ langs/fr/cgi-bin/fr.pl | 3 +++ langs/it/cgi-bin/it.pl | 3 +++ langs/nl/cgi-bin/nl.pl | 3 +++ langs/pl/cgi-bin/pl.pl | 3 +++ langs/ru/cgi-bin/ru.pl | 3 +++ langs/tr/cgi-bin/tr.pl | 3 +++ 10 files changed, 30 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi index 33f521e..59677a4 100644 --- a/html/cgi-bin/pppsetup.cgi +++ b/html/cgi-bin/pppsetup.cgi @@ -793,15 +793,15 @@ print <<END <td colspan='4' width='100%' bgcolor='$color{'color20'}'><b>$Lang::tr{'pptp settings'}</b></td> </tr> <tr> - <td width='25%'>Peer</td> + <td width='25%'>$Lang::tr{'pptp peer'}:</td> <td colspan='3'><input size=50 type='text' name='PPTP_PEER' value='$pppsettings{'PPTP_PEER'}' /></td> </tr> <tr> - <td width='25%'>My Netconfig</td> + <td width='25%'>$Lang::tr{'pptp netconfig'}:</td> <td colspan='3'><input size=50 type='text' name='PPTP_NICCFG' value='$pppsettings{'PPTP_NICCFG'}' /></td> </tr> <tr> - <td width='25%'>PPTP Route <img src='/blob.gif' alt='*' /></td> + <td width='25%'>$Lang::tr{'pptp route'}: <img src='/blob.gif' alt='*' /></td> <td colspan='3'><input size=50 type='text' name='PPTP_ROUTE' value='$pppsettings{'PPTP_ROUTE'}' /></td> </tr> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 8adefdf..65277a9 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1822,6 +1822,9 @@ 'ppp setup' => 'PPP-Einstellungen', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Zusätzliche PPPoE-Einstellungen:', +'pptp netconfig' => 'Eigene Netzkonfiguration', +'pptp peer' => 'Gegenstelle', +'pptp route' => 'PPTP Route', 'pptp settings' => 'Zusätzliche PPTP-Einstellungen:', 'pre-shared key is too short' => 'Pre-shared Schlüsel ist zu kurz', 'prefered master' => 'Prefered Master', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 43601c8..3e60b00 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1852,6 +1852,9 @@ 'ppp setup' => 'PPP setup', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Additional PPPoE settings:', +'pptp netconfig' => 'My Netconfig', +'pptp peer' => 'Peer', +'pptp route' => 'PPTP Route', 'pptp settings' => 'Additional PPTP settings:', 'pre-shared key is too short' => 'Pre-shared key is too short.', 'prefered master' => 'Prefered Master', diff --git a/langs/es/cgi-bin/es.pl b/langs/es/cgi-bin/es.pl index 90f4237..1e315a6 100644 --- a/langs/es/cgi-bin/es.pl +++ b/langs/es/cgi-bin/es.pl @@ -1417,6 +1417,9 @@ 'ppp setup' => 'Configuración PPP', 'pppoe' => 'PPPoe', 'pppoe settings' => 'Configuraciones PPPoE adicionales', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Configuracion PPTP adicionales', 'pre-shared key is too short' => 'La clave pre-compartida es demasiado corta.', 'prefered master' => 'Master preferido', diff --git a/langs/fr/cgi-bin/fr.pl b/langs/fr/cgi-bin/fr.pl index 40053a0..384cc05 100644 --- a/langs/fr/cgi-bin/fr.pl +++ b/langs/fr/cgi-bin/fr.pl @@ -1423,6 +1423,9 @@ 'ppp setup' => 'Installation PPP', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Paramètres supplémentaires PPPoE :', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Paramètres supplémentaires PPTP :', 'pre-shared key is too short' => 'La clef partagée préliminaire est trop courte.', 'prefered master' => 'Maître préféré', diff --git a/langs/it/cgi-bin/it.pl b/langs/it/cgi-bin/it.pl index 4fde313..050bffd 100644 --- a/langs/it/cgi-bin/it.pl +++ b/langs/it/cgi-bin/it.pl @@ -1808,6 +1808,9 @@ 'ppp setup' => 'PPP setup', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Additional PPPoE settings:', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Additional PPTP settings:', 'pre-shared key is too short' => 'Pre-shared key is too short.', 'prefered master' => 'Prefered Master', diff --git a/langs/nl/cgi-bin/nl.pl b/langs/nl/cgi-bin/nl.pl index 7468eb9..46b07d4 100644 --- a/langs/nl/cgi-bin/nl.pl +++ b/langs/nl/cgi-bin/nl.pl @@ -1760,6 +1760,9 @@ 'ppp setup' => 'PPP setup', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Extra PPPoE instellingen:', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Extra PPTP instellingen:', 'pre-shared key is too short' => 'Pre-shared sleutel is te kort.', 'prefered master' => 'Voorkeur master', diff --git a/langs/pl/cgi-bin/pl.pl b/langs/pl/cgi-bin/pl.pl index 02fb531..894a562 100644 --- a/langs/pl/cgi-bin/pl.pl +++ b/langs/pl/cgi-bin/pl.pl @@ -1429,6 +1429,9 @@ 'ppp setup' => 'Konfiguracja PPP', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Dodatkowe ustawienia PPPoE:', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Dodatkowe ustawienia PPTP:', 'pre-shared key is too short' => 'Klucz współdzielony jest za krótki.', 'prefered master' => 'Preferowany Master', diff --git a/langs/ru/cgi-bin/ru.pl b/langs/ru/cgi-bin/ru.pl index a2a3693..6754b1d 100644 --- a/langs/ru/cgi-bin/ru.pl +++ b/langs/ru/cgi-bin/ru.pl @@ -1424,6 +1424,9 @@ 'ppp setup' => 'Настройки PPP', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Дополнительные настройки PPPoE:', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Дополнительные настройки PPTP:', 'pre-shared key is too short' => 'Pre-shared key is too short.', 'prefered master' => 'Prefered Master', diff --git a/langs/tr/cgi-bin/tr.pl b/langs/tr/cgi-bin/tr.pl index 89f753e..ced4fd8 100644 --- a/langs/tr/cgi-bin/tr.pl +++ b/langs/tr/cgi-bin/tr.pl @@ -1829,6 +1829,9 @@ 'ppp setup' => 'PPP kurulumu', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Ek PPPoE ayarları:', +'pptp netconfig' => '', +'pptp peer' => '', +'pptp route' => '', 'pptp settings' => 'Ek PPTP ayarları:', 'pre-shared key is too short' => 'Ön paylaşımlı anahtar çok kısa.', 'prefered master' => 'Tercih edilen yönetici', ^ permalink raw reply [flat|nested] 13+ messages in thread
* Aw: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-01 20:59 ` [PATCH] Fix hardcoded strings in pppsetup.cgi Larsen @ 2015-06-01 21:57 ` Bernhard Bitsch 2015-06-02 6:58 ` Larsen 0 siblings, 1 reply; 13+ messages in thread From: Bernhard Bitsch @ 2015-06-01 21:57 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 7598 bytes --] Language files should contain translations only. The process for building the language cache for the language <lang> desired is - read en.pl files ( the base definition ) - read <lang>.pl files ( replacing english terms ) --> all translated strings appear in <lang>, untranslated strings are in english --> to find untranslated strings, computed the complement of set of keys in en.pl and set of keys in <lang>.pl Hope, I could clarify a bit. -Bernhard > Gesendet: Montag, 01. Juni 2015 um 22:59 Uhr > Von: Larsen <larsen007(a)web.de> > An: "development(a)lists.ipfire.org" <development(a)lists.ipfire.org> > Betreff: [PATCH] Fix hardcoded strings in pppsetup.cgi > > Some strings for PPTP were hardcoded instead of using i18n features. > > Signed-off-by: Lars Schuhmacher <larsen007(a)web.de> > --- > html/cgi-bin/pppsetup.cgi | 6 +++--- > langs/de/cgi-bin/de.pl | 3 +++ > langs/en/cgi-bin/en.pl | 3 +++ > langs/es/cgi-bin/es.pl | 3 +++ > langs/fr/cgi-bin/fr.pl | 3 +++ > langs/it/cgi-bin/it.pl | 3 +++ > langs/nl/cgi-bin/nl.pl | 3 +++ > langs/pl/cgi-bin/pl.pl | 3 +++ > langs/ru/cgi-bin/ru.pl | 3 +++ > langs/tr/cgi-bin/tr.pl | 3 +++ > 10 files changed, 30 insertions(+), 3 deletions(-) > > diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi > index 33f521e..59677a4 100644 > --- a/html/cgi-bin/pppsetup.cgi > +++ b/html/cgi-bin/pppsetup.cgi > @@ -793,15 +793,15 @@ print <<END > <td colspan='4' width='100%' > bgcolor='$color{'color20'}'><b>$Lang::tr{'pptp settings'}</b></td> > </tr> > <tr> > - <td width='25%'>Peer</td> > + <td width='25%'>$Lang::tr{'pptp peer'}:</td> > <td colspan='3'><input size=50 type='text' name='PPTP_PEER' > value='$pppsettings{'PPTP_PEER'}' /></td> > </tr> > <tr> > - <td width='25%'>My Netconfig</td> > + <td width='25%'>$Lang::tr{'pptp netconfig'}:</td> > <td colspan='3'><input size=50 type='text' name='PPTP_NICCFG' > value='$pppsettings{'PPTP_NICCFG'}' /></td> > </tr> > <tr> > - <td width='25%'>PPTP Route <img src='/blob.gif' alt='*' > /></td> > + <td width='25%'>$Lang::tr{'pptp route'}: <img > src='/blob.gif' alt='*' /></td> > <td colspan='3'><input size=50 type='text' name='PPTP_ROUTE' > value='$pppsettings{'PPTP_ROUTE'}' /></td> > </tr> > > diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl > index 8adefdf..65277a9 100644 > --- a/langs/de/cgi-bin/de.pl > +++ b/langs/de/cgi-bin/de.pl > @@ -1822,6 +1822,9 @@ > 'ppp setup' => 'PPP-Einstellungen', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Zusätzliche PPPoE-Einstellungen:', > +'pptp netconfig' => 'Eigene Netzkonfiguration', > +'pptp peer' => 'Gegenstelle', > +'pptp route' => 'PPTP Route', > 'pptp settings' => 'Zusätzliche PPTP-Einstellungen:', > 'pre-shared key is too short' => 'Pre-shared Schlüsel ist zu kurz', > 'prefered master' => 'Prefered Master', > diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl > index 43601c8..3e60b00 100644 > --- a/langs/en/cgi-bin/en.pl > +++ b/langs/en/cgi-bin/en.pl > @@ -1852,6 +1852,9 @@ > 'ppp setup' => 'PPP setup', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Additional PPPoE settings:', > +'pptp netconfig' => 'My Netconfig', > +'pptp peer' => 'Peer', > +'pptp route' => 'PPTP Route', > 'pptp settings' => 'Additional PPTP settings:', > 'pre-shared key is too short' => 'Pre-shared key is too short.', > 'prefered master' => 'Prefered Master', > diff --git a/langs/es/cgi-bin/es.pl b/langs/es/cgi-bin/es.pl > index 90f4237..1e315a6 100644 > --- a/langs/es/cgi-bin/es.pl > +++ b/langs/es/cgi-bin/es.pl > @@ -1417,6 +1417,9 @@ > 'ppp setup' => 'Configuración PPP', > 'pppoe' => 'PPPoe', > 'pppoe settings' => 'Configuraciones PPPoE adicionales', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Configuracion PPTP adicionales', > 'pre-shared key is too short' => 'La clave pre-compartida es demasiado > corta.', > 'prefered master' => 'Master preferido', > diff --git a/langs/fr/cgi-bin/fr.pl b/langs/fr/cgi-bin/fr.pl > index 40053a0..384cc05 100644 > --- a/langs/fr/cgi-bin/fr.pl > +++ b/langs/fr/cgi-bin/fr.pl > @@ -1423,6 +1423,9 @@ > 'ppp setup' => 'Installation PPP', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Paramètres supplémentaires PPPoE :', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Paramètres supplémentaires PPTP :', > 'pre-shared key is too short' => 'La clef partagée préliminaire est trop > courte.', > 'prefered master' => 'Maître préféré', > diff --git a/langs/it/cgi-bin/it.pl b/langs/it/cgi-bin/it.pl > index 4fde313..050bffd 100644 > --- a/langs/it/cgi-bin/it.pl > +++ b/langs/it/cgi-bin/it.pl > @@ -1808,6 +1808,9 @@ > 'ppp setup' => 'PPP setup', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Additional PPPoE settings:', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Additional PPTP settings:', > 'pre-shared key is too short' => 'Pre-shared key is too short.', > 'prefered master' => 'Prefered Master', > diff --git a/langs/nl/cgi-bin/nl.pl b/langs/nl/cgi-bin/nl.pl > index 7468eb9..46b07d4 100644 > --- a/langs/nl/cgi-bin/nl.pl > +++ b/langs/nl/cgi-bin/nl.pl > @@ -1760,6 +1760,9 @@ > 'ppp setup' => 'PPP setup', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Extra PPPoE instellingen:', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Extra PPTP instellingen:', > 'pre-shared key is too short' => 'Pre-shared sleutel is te kort.', > 'prefered master' => 'Voorkeur master', > diff --git a/langs/pl/cgi-bin/pl.pl b/langs/pl/cgi-bin/pl.pl > index 02fb531..894a562 100644 > --- a/langs/pl/cgi-bin/pl.pl > +++ b/langs/pl/cgi-bin/pl.pl > @@ -1429,6 +1429,9 @@ > 'ppp setup' => 'Konfiguracja PPP', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Dodatkowe ustawienia PPPoE:', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Dodatkowe ustawienia PPTP:', > 'pre-shared key is too short' => 'Klucz współdzielony jest za krótki.', > 'prefered master' => 'Preferowany Master', > diff --git a/langs/ru/cgi-bin/ru.pl b/langs/ru/cgi-bin/ru.pl > index a2a3693..6754b1d 100644 > --- a/langs/ru/cgi-bin/ru.pl > +++ b/langs/ru/cgi-bin/ru.pl > @@ -1424,6 +1424,9 @@ > 'ppp setup' => 'Настройки PPP', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Дополнительные настройки PPPoE:', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Дополнительные настройки PPTP:', > 'pre-shared key is too short' => 'Pre-shared key is too short.', > 'prefered master' => 'Prefered Master', > diff --git a/langs/tr/cgi-bin/tr.pl b/langs/tr/cgi-bin/tr.pl > index 89f753e..ced4fd8 100644 > --- a/langs/tr/cgi-bin/tr.pl > +++ b/langs/tr/cgi-bin/tr.pl > @@ -1829,6 +1829,9 @@ > 'ppp setup' => 'PPP kurulumu', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Ek PPPoE ayarları:', > +'pptp netconfig' => '', > +'pptp peer' => '', > +'pptp route' => '', > 'pptp settings' => 'Ek PPTP ayarları:', > 'pre-shared key is too short' => 'Ön paylaşımlı anahtar çok kısa.', > 'prefered master' => 'Tercih edilen yönetici', > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-01 21:57 ` Aw: " Bernhard Bitsch @ 2015-06-02 6:58 ` Larsen 2015-06-02 8:51 ` Aw: " Bernhard Bitsch 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-02 6:58 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 8034 bytes --] Hi Bernhard, so this means that "'pptp netconfig' => ''," should be missing completely instead of setting an empty string? Lars On Mon, 01 Jun 2015 23:57:08 +0200, Bernhard Bitsch <Bernhard.Bitsch(a)gmx.de> wrote: > Language files should contain translations only. > The process for building the language cache for the language <lang> > desired is > - read en.pl files ( the base definition ) > - read <lang>.pl files ( replacing english terms ) > --> all translated strings appear in <lang>, untranslated strings are in > english > --> to find untranslated strings, computed the complement of set of keys > in en.pl and set of keys in <lang>.pl > > Hope, I could clarify a bit. > > -Bernhard > >> Gesendet: Montag, 01. Juni 2015 um 22:59 Uhr >> Von: Larsen <larsen007(a)web.de> >> An: "development(a)lists.ipfire.org" <development(a)lists.ipfire.org> >> Betreff: [PATCH] Fix hardcoded strings in pppsetup.cgi >> >> Some strings for PPTP were hardcoded instead of using i18n features. >> >> Signed-off-by: Lars Schuhmacher <larsen007(a)web.de> >> --- >> html/cgi-bin/pppsetup.cgi | 6 +++--- >> langs/de/cgi-bin/de.pl | 3 +++ >> langs/en/cgi-bin/en.pl | 3 +++ >> langs/es/cgi-bin/es.pl | 3 +++ >> langs/fr/cgi-bin/fr.pl | 3 +++ >> langs/it/cgi-bin/it.pl | 3 +++ >> langs/nl/cgi-bin/nl.pl | 3 +++ >> langs/pl/cgi-bin/pl.pl | 3 +++ >> langs/ru/cgi-bin/ru.pl | 3 +++ >> langs/tr/cgi-bin/tr.pl | 3 +++ >> 10 files changed, 30 insertions(+), 3 deletions(-) >> >> diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi >> index 33f521e..59677a4 100644 >> --- a/html/cgi-bin/pppsetup.cgi >> +++ b/html/cgi-bin/pppsetup.cgi >> @@ -793,15 +793,15 @@ print <<END >> <td colspan='4' width='100%' >> bgcolor='$color{'color20'}'><b>$Lang::tr{'pptp settings'}</b></td> >> </tr> >> <tr> >> - <td width='25%'>Peer</td> >> + <td width='25%'>$Lang::tr{'pptp peer'}:</td> >> <td colspan='3'><input size=50 type='text' name='PPTP_PEER' >> value='$pppsettings{'PPTP_PEER'}' /></td> >> </tr> >> <tr> >> - <td width='25%'>My Netconfig</td> >> + <td width='25%'>$Lang::tr{'pptp netconfig'}:</td> >> <td colspan='3'><input size=50 type='text' name='PPTP_NICCFG' >> value='$pppsettings{'PPTP_NICCFG'}' /></td> >> </tr> >> <tr> >> - <td width='25%'>PPTP Route <img src='/blob.gif' alt='*' >> /></td> >> + <td width='25%'>$Lang::tr{'pptp route'}: <img >> src='/blob.gif' alt='*' /></td> >> <td colspan='3'><input size=50 type='text' name='PPTP_ROUTE' >> value='$pppsettings{'PPTP_ROUTE'}' /></td> >> </tr> >> >> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl >> index 8adefdf..65277a9 100644 >> --- a/langs/de/cgi-bin/de.pl >> +++ b/langs/de/cgi-bin/de.pl >> @@ -1822,6 +1822,9 @@ >> 'ppp setup' => 'PPP-Einstellungen', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Zusätzliche PPPoE-Einstellungen:', >> +'pptp netconfig' => 'Eigene Netzkonfiguration', >> +'pptp peer' => 'Gegenstelle', >> +'pptp route' => 'PPTP Route', >> 'pptp settings' => 'Zusätzliche PPTP-Einstellungen:', >> 'pre-shared key is too short' => 'Pre-shared Schlüsel ist zu kurz', >> 'prefered master' => 'Prefered Master', >> diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl >> index 43601c8..3e60b00 100644 >> --- a/langs/en/cgi-bin/en.pl >> +++ b/langs/en/cgi-bin/en.pl >> @@ -1852,6 +1852,9 @@ >> 'ppp setup' => 'PPP setup', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Additional PPPoE settings:', >> +'pptp netconfig' => 'My Netconfig', >> +'pptp peer' => 'Peer', >> +'pptp route' => 'PPTP Route', >> 'pptp settings' => 'Additional PPTP settings:', >> 'pre-shared key is too short' => 'Pre-shared key is too short.', >> 'prefered master' => 'Prefered Master', >> diff --git a/langs/es/cgi-bin/es.pl b/langs/es/cgi-bin/es.pl >> index 90f4237..1e315a6 100644 >> --- a/langs/es/cgi-bin/es.pl >> +++ b/langs/es/cgi-bin/es.pl >> @@ -1417,6 +1417,9 @@ >> 'ppp setup' => 'Configuración PPP', >> 'pppoe' => 'PPPoe', >> 'pppoe settings' => 'Configuraciones PPPoE adicionales', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Configuracion PPTP adicionales', >> 'pre-shared key is too short' => 'La clave pre-compartida es demasiado >> corta.', >> 'prefered master' => 'Master preferido', >> diff --git a/langs/fr/cgi-bin/fr.pl b/langs/fr/cgi-bin/fr.pl >> index 40053a0..384cc05 100644 >> --- a/langs/fr/cgi-bin/fr.pl >> +++ b/langs/fr/cgi-bin/fr.pl >> @@ -1423,6 +1423,9 @@ >> 'ppp setup' => 'Installation PPP', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Paramètres supplémentaires PPPoE :', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Paramètres supplémentaires PPTP :', >> 'pre-shared key is too short' => 'La clef partagée préliminaire est >> trop >> courte.', >> 'prefered master' => 'Maître préféré', >> diff --git a/langs/it/cgi-bin/it.pl b/langs/it/cgi-bin/it.pl >> index 4fde313..050bffd 100644 >> --- a/langs/it/cgi-bin/it.pl >> +++ b/langs/it/cgi-bin/it.pl >> @@ -1808,6 +1808,9 @@ >> 'ppp setup' => 'PPP setup', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Additional PPPoE settings:', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Additional PPTP settings:', >> 'pre-shared key is too short' => 'Pre-shared key is too short.', >> 'prefered master' => 'Prefered Master', >> diff --git a/langs/nl/cgi-bin/nl.pl b/langs/nl/cgi-bin/nl.pl >> index 7468eb9..46b07d4 100644 >> --- a/langs/nl/cgi-bin/nl.pl >> +++ b/langs/nl/cgi-bin/nl.pl >> @@ -1760,6 +1760,9 @@ >> 'ppp setup' => 'PPP setup', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Extra PPPoE instellingen:', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Extra PPTP instellingen:', >> 'pre-shared key is too short' => 'Pre-shared sleutel is te kort.', >> 'prefered master' => 'Voorkeur master', >> diff --git a/langs/pl/cgi-bin/pl.pl b/langs/pl/cgi-bin/pl.pl >> index 02fb531..894a562 100644 >> --- a/langs/pl/cgi-bin/pl.pl >> +++ b/langs/pl/cgi-bin/pl.pl >> @@ -1429,6 +1429,9 @@ >> 'ppp setup' => 'Konfiguracja PPP', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Dodatkowe ustawienia PPPoE:', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Dodatkowe ustawienia PPTP:', >> 'pre-shared key is too short' => 'Klucz współdzielony jest za >> krótki.', >> 'prefered master' => 'Preferowany Master', >> diff --git a/langs/ru/cgi-bin/ru.pl b/langs/ru/cgi-bin/ru.pl >> index a2a3693..6754b1d 100644 >> --- a/langs/ru/cgi-bin/ru.pl >> +++ b/langs/ru/cgi-bin/ru.pl >> @@ -1424,6 +1424,9 @@ >> 'ppp setup' => 'Настройки PPP', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Дополнительные настройки PPPoE:', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Дополнительные настройки PPTP:', >> 'pre-shared key is too short' => 'Pre-shared key is too short.', >> 'prefered master' => 'Prefered Master', >> diff --git a/langs/tr/cgi-bin/tr.pl b/langs/tr/cgi-bin/tr.pl >> index 89f753e..ced4fd8 100644 >> --- a/langs/tr/cgi-bin/tr.pl >> +++ b/langs/tr/cgi-bin/tr.pl >> @@ -1829,6 +1829,9 @@ >> 'ppp setup' => 'PPP kurulumu', >> 'pppoe' => 'PPPoE', >> 'pppoe settings' => 'Ek PPPoE ayarları:', >> +'pptp netconfig' => '', >> +'pptp peer' => '', >> +'pptp route' => '', >> 'pptp settings' => 'Ek PPTP ayarları:', >> 'pre-shared key is too short' => 'Ön paylaşımlı anahtar çok kısa.', >> 'prefered master' => 'Tercih edilen yönetici', ^ permalink raw reply [flat|nested] 13+ messages in thread
* Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 6:58 ` Larsen @ 2015-06-02 8:51 ` Bernhard Bitsch 2015-06-02 10:04 ` Larsen 0 siblings, 1 reply; 13+ messages in thread From: Bernhard Bitsch @ 2015-06-02 8:51 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1046 bytes --] > Gesendet: Dienstag, 02. Juni 2015 um 08:58 Uhr > Von: Larsen <larsen007(a)web.de> > An: "Bernhard Bitsch" <Bernhard.Bitsch(a)gmx.de> > Cc: "development(a)lists.ipfire.org" <development(a)lists.ipfire.org> > Betreff: Re: Aw: [PATCH] Fix hardcoded strings in pppsetup.cgi > > Hi Bernhard, > > so this means that "'pptp netconfig' => ''," should be missing completely > instead of setting an empty string? > yes. > > Lars > > > On Mon, 01 Jun 2015 23:57:08 +0200, Bernhard Bitsch > <Bernhard.Bitsch(a)gmx.de> wrote: > > > Language files should contain translations only. > > The process for building the language cache for the language <lang> > > desired is > > - read en.pl files ( the base definition ) > > - read <lang>.pl files ( replacing english terms ) > > --> all translated strings appear in <lang>, untranslated strings are in > > english > > --> to find untranslated strings, computed the complement of set of keys > > in en.pl and set of keys in <lang>.pl > > > > Hope, I could clarify a bit. > > > > -Bernhard > > ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 8:51 ` Aw: " Bernhard Bitsch @ 2015-06-02 10:04 ` Larsen 2015-06-02 19:49 ` Larsen 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-02 10:04 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 149 bytes --] >> so this means that "'pptp netconfig' => ''," should be missing >> completely >> instead of setting an empty string? >> > > yes. ok, will fix. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 10:04 ` Larsen @ 2015-06-02 19:49 ` Larsen 2015-06-02 20:01 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-02 19:49 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 2505 bytes --] Some strings for PPTP were hardcoded instead of using i18n features. Signed-off-by: Lars Schuhmacher <larsen007(a)web.de> --- html/cgi-bin/pppsetup.cgi | 6 +++--- langs/de/cgi-bin/de.pl | 3 +++ langs/en/cgi-bin/en.pl | 3 +++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi index 33f521e..59677a4 100644 --- a/html/cgi-bin/pppsetup.cgi +++ b/html/cgi-bin/pppsetup.cgi @@ -793,15 +793,15 @@ print <<END <td colspan='4' width='100%' bgcolor='$color{'color20'}'><b>$Lang::tr{'pptp settings'}</b></td> </tr> <tr> - <td width='25%'>Peer</td> + <td width='25%'>$Lang::tr{'pptp peer'}:</td> <td colspan='3'><input size=50 type='text' name='PPTP_PEER' value='$pppsettings{'PPTP_PEER'}' /></td> </tr> <tr> - <td width='25%'>My Netconfig</td> + <td width='25%'>$Lang::tr{'pptp netconfig'}:</td> <td colspan='3'><input size=50 type='text' name='PPTP_NICCFG' value='$pppsettings{'PPTP_NICCFG'}' /></td> </tr> <tr> - <td width='25%'>PPTP Route <img src='/blob.gif' alt='*' /></td> + <td width='25%'>$Lang::tr{'pptp route'}: <img src='/blob.gif' alt='*' /></td> <td colspan='3'><input size=50 type='text' name='PPTP_ROUTE' value='$pppsettings{'PPTP_ROUTE'}' /></td> </tr> diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl index 8adefdf..65277a9 100644 --- a/langs/de/cgi-bin/de.pl +++ b/langs/de/cgi-bin/de.pl @@ -1822,6 +1822,9 @@ 'ppp setup' => 'PPP-Einstellungen', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Zusätzliche PPPoE-Einstellungen:', +'pptp netconfig' => 'Eigene Netzkonfiguration', +'pptp peer' => 'Gegenstelle', +'pptp route' => 'PPTP Route', 'pptp settings' => 'Zusätzliche PPTP-Einstellungen:', 'pre-shared key is too short' => 'Pre-shared Schlüsel ist zu kurz', 'prefered master' => 'Prefered Master', diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl index 43601c8..3e60b00 100644 --- a/langs/en/cgi-bin/en.pl +++ b/langs/en/cgi-bin/en.pl @@ -1852,6 +1852,9 @@ 'ppp setup' => 'PPP setup', 'pppoe' => 'PPPoE', 'pppoe settings' => 'Additional PPPoE settings:', +'pptp netconfig' => 'My Netconfig', +'pptp peer' => 'Peer', +'pptp route' => 'PPTP Route', 'pptp settings' => 'Additional PPTP settings:', 'pre-shared key is too short' => 'Pre-shared key is too short.', 'prefered master' => 'Prefered Master', ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 19:49 ` Larsen @ 2015-06-02 20:01 ` Michael Tremer 2015-06-02 21:05 ` Larsen 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2015-06-02 20:01 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 3295 bytes --] Hi, this patch looks okay, but it won't apply. Git error: Applying: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi error: patch failed: html/cgi-bin/pppsetup.cgi:793 error: html/cgi-bin/pppsetup.cgi: patch does not apply error: patch failed: langs/de/cgi-bin/de.pl:1822 error: langs/de/cgi-bin/de.pl: patch does not apply error: patch failed: langs/en/cgi-bin/en.pl:1852 error: langs/en/cgi-bin/en.pl: patch does not apply Patch failed at 0001 Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi This is probably caused by copy-and-paste and replacing tabs by spaces or similar. -Michael On Tue, 2015-06-02 at 21:49 +0200, Larsen wrote: > Some strings for PPTP were hardcoded instead of using i18n features. > > Signed-off-by: Lars Schuhmacher <larsen007(a)web.de> > --- > html/cgi-bin/pppsetup.cgi | 6 +++--- > langs/de/cgi-bin/de.pl | 3 +++ > langs/en/cgi-bin/en.pl | 3 +++ > 3 files changed, 9 insertions(+), 3 deletions(-) > > diff --git a/html/cgi-bin/pppsetup.cgi b/html/cgi-bin/pppsetup.cgi > index 33f521e..59677a4 100644 > --- a/html/cgi-bin/pppsetup.cgi > +++ b/html/cgi-bin/pppsetup.cgi > @@ -793,15 +793,15 @@ print <<END > <td colspan='4' width='100%' bgcolor='$color{'color20'}'><b>$Lang::tr{'pptp settings'}</b></td> > </tr> > <tr> > - <td width='25%'>Peer</td> > + <td width='25%'>$Lang::tr{'pptp peer'}:</td> > <td colspan='3'><input size=50 type='text' name='PPTP_PEER' value='$pppsettings{'PPTP_PEER'}' /></td> > </tr> > <tr> > - <td width='25%'>My Netconfig</td> > + <td width='25%'>$Lang::tr{'pptp netconfig'}:</td> > <td colspan='3'><input size=50 type='text' name='PPTP_NICCFG' value='$pppsettings{'PPTP_NICCFG'}' /></td> > </tr> > <tr> > - <td width='25%'>PPTP Route <img src='/blob.gif' alt='*' /></td> > + <td width='25%'>$Lang::tr{'pptp route'}: <img src='/blob.gif' alt='*' /></td> > <td colspan='3'><input size=50 type='text' name='PPTP_ROUTE' value='$pppsettings{'PPTP_ROUTE'}' /></td> > </tr> > > diff --git a/langs/de/cgi-bin/de.pl b/langs/de/cgi-bin/de.pl > index 8adefdf..65277a9 100644 > --- a/langs/de/cgi-bin/de.pl > +++ b/langs/de/cgi-bin/de.pl > @@ -1822,6 +1822,9 @@ > 'ppp setup' => 'PPP-Einstellungen', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Zusätzliche PPPoE-Einstellungen:', > +'pptp netconfig' => 'Eigene Netzkonfiguration', > +'pptp peer' => 'Gegenstelle', > +'pptp route' => 'PPTP Route', > 'pptp settings' => 'Zusätzliche PPTP-Einstellungen:', > 'pre-shared key is too short' => 'Pre-shared Schlüsel ist zu kurz', > 'prefered master' => 'Prefered Master', > diff --git a/langs/en/cgi-bin/en.pl b/langs/en/cgi-bin/en.pl > index 43601c8..3e60b00 100644 > --- a/langs/en/cgi-bin/en.pl > +++ b/langs/en/cgi-bin/en.pl > @@ -1852,6 +1852,9 @@ > 'ppp setup' => 'PPP setup', > 'pppoe' => 'PPPoE', > 'pppoe settings' => 'Additional PPPoE settings:', > +'pptp netconfig' => 'My Netconfig', > +'pptp peer' => 'Peer', > +'pptp route' => 'PPTP Route', > 'pptp settings' => 'Additional PPTP settings:', > 'pre-shared key is too short' => 'Pre-shared key is too short.', > 'prefered master' => 'Prefered Master', [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 20:01 ` Michael Tremer @ 2015-06-02 21:05 ` Larsen 2015-06-02 21:07 ` Larsen 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-02 21:05 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 726 bytes --] On Tue, 02 Jun 2015 22:01:18 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote: > Hi, > > this patch looks okay, but it won't apply. Git error: > > Applying: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi > error: patch failed: html/cgi-bin/pppsetup.cgi:793 > error: html/cgi-bin/pppsetup.cgi: patch does not apply > error: patch failed: langs/de/cgi-bin/de.pl:1822 > error: langs/de/cgi-bin/de.pl: patch does not apply > error: patch failed: langs/en/cgi-bin/en.pl:1852 > error: langs/en/cgi-bin/en.pl: patch does not apply > Patch failed at 0001 Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi > > This is probably caused by copy-and-paste and replacing tabs by spaces > or similar. ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 21:05 ` Larsen @ 2015-06-02 21:07 ` Larsen 2015-06-04 16:23 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-02 21:07 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1223 bytes --] On Tue, 02 Jun 2015 23:05:10 +0200, Larsen <larsen007(a)web.de> wrote: > On Tue, 02 Jun 2015 22:01:18 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote: > >> Hi, >> >> this patch looks okay, but it won't apply. Git error: >> >> Applying: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi >> error: patch failed: html/cgi-bin/pppsetup.cgi:793 >> error: html/cgi-bin/pppsetup.cgi: patch does not apply >> error: patch failed: langs/de/cgi-bin/de.pl:1822 >> error: langs/de/cgi-bin/de.pl: patch does not apply >> error: patch failed: langs/en/cgi-bin/en.pl:1852 >> error: langs/en/cgi-bin/en.pl: patch does not apply >> Patch failed at 0001 Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi >> >> This is probably caused by copy-and-paste and replacing tabs by spaces >> or similar. > (now again without hitting Ctrl+Enter too early... damn) I saved the patch from your last reply and compared it to the original patch file that was created by TortoiseGit. There were no differences. I also patched pppsetup.cgi in my VM with Core 90 (didn´t try for the lang files) and this also went fine. There are no tabs in the patch. I don´t know what could be wrong with it... =( ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi 2015-06-02 21:07 ` Larsen @ 2015-06-04 16:23 ` Michael Tremer 2015-06-04 20:52 ` Problem with whitespace in patches Larsen 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2015-06-04 16:23 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1574 bytes --] On Tue, 2015-06-02 at 23:07 +0200, Larsen wrote: > On Tue, 02 Jun 2015 23:05:10 +0200, Larsen <larsen007(a)web.de> wrote: > > > On Tue, 02 Jun 2015 22:01:18 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote: > > > >> Hi, > >> > >> this patch looks okay, but it won't apply. Git error: > >> > >> Applying: Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi > >> error: patch failed: html/cgi-bin/pppsetup.cgi:793 > >> error: html/cgi-bin/pppsetup.cgi: patch does not apply > >> error: patch failed: langs/de/cgi-bin/de.pl:1822 > >> error: langs/de/cgi-bin/de.pl: patch does not apply > >> error: patch failed: langs/en/cgi-bin/en.pl:1852 > >> error: langs/en/cgi-bin/en.pl: patch does not apply > >> Patch failed at 0001 Aw: Re: [PATCH] Fix hardcoded strings in pppsetup.cgi > >> > >> This is probably caused by copy-and-paste and replacing tabs by spaces > >> or similar. > > > > (now again without hitting Ctrl+Enter too early... damn) > > I saved the patch from your last reply and compared it to the original patch file > that was created by TortoiseGit. There were no differences. > > I also patched pppsetup.cgi in my VM with Core 90 (didn´t try for the lang files) > and this also went fine. > > There are no tabs in the patch. > > I don´t know what could be wrong with it... =( I think I found it. I do not really know where this is coming from though. If I remove the first space from every line of the diff that does not start with a + or - character. Any idea how this comes? Also merged. -Michael [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Problem with whitespace in patches 2015-06-04 16:23 ` Michael Tremer @ 2015-06-04 20:52 ` Larsen 2015-06-05 13:25 ` Michael Tremer 0 siblings, 1 reply; 13+ messages in thread From: Larsen @ 2015-06-04 20:52 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 1830 bytes --] (I changed the subject as this has nothing to do with pppsetup.cgi) On Thu, 04 Jun 2015 18:23:07 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote: > If I remove the first space from every line of the diff that does not > start with a + or - character. Any idea how this comes? TL;DR: Opera 12.17 f*cks up the patch when sent as plain text. 1) I took the file that TortoiseGit saved, saved the text I sent to the list, the text I received from the list, and the file that Michael sent back. 2) Edited all of them to start with these lines: --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi 3) Converted the saved mails to UNIX format with LF instead of CRLF (Windows here) 4) Calculated md5sums: They were all the same except for the one sent to the list Examining this further, I noticed a bug in my mail program when it displays the mail in the "sent" folder: When there is more then one line beginning with a space char, the mailer will put a superfluous space character into the beginning of the last line. Strange as hell, but this only affects the display here. Then, I switched views to have the header displayed, too, and saved it as a file. Compared to the file created by TortoiseGit and now I can solve this riddle: There we have superfluous whitespace in front of every line without a + or - (as you noticed before). I now also compared the mail I received as it is shown in my mail program and the bug is present there, too. Display is ok (even without that one extra space char - that is why the md5sum was ok first), but not when I display it with headers (raw view so to say). Will send the next patches with Thunderbird and hope that it will be ok then. Wasted about an hour examining this - hope you guys at least had fun reading ;-) Lars ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with whitespace in patches 2015-06-04 20:52 ` Problem with whitespace in patches Larsen @ 2015-06-05 13:25 ` Michael Tremer 2015-06-05 13:29 ` Larsen 0 siblings, 1 reply; 13+ messages in thread From: Michael Tremer @ 2015-06-05 13:25 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 2201 bytes --] On Thu, 2015-06-04 at 22:52 +0200, Larsen wrote: > (I changed the subject as this has nothing to do with pppsetup.cgi) > > > On Thu, 04 Jun 2015 18:23:07 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote: > > > If I remove the first space from every line of the diff that does not > > start with a + or - character. Any idea how this comes? > > > TL;DR: Opera 12.17 f*cks up the patch when sent as plain text. > > > 1) I took the file that TortoiseGit saved, saved the text I sent to the list, the text > I received from the list, and the file that Michael sent back. > 2) Edited all of them to start with these lines: > --- a/html/cgi-bin/vpnmain.cgi > +++ b/html/cgi-bin/vpnmain.cgi > 3) Converted the saved mails to UNIX format with LF instead of CRLF (Windows here) This was one of my first guesses, but it turned out to be false very quickly. > 4) Calculated md5sums: They were all the same except for the one sent to the list > > Examining this further, I noticed a bug in my mail program when it displays the mail > in the "sent" folder: When there is more then one line beginning with a space char, > the mailer will put a superfluous space character into the beginning of the last line. > Strange as hell, but this only affects the display here. > > Then, I switched views to have the header displayed, too, and saved it as a file. > Compared to the file created by TortoiseGit and now I can solve this riddle: > There we have superfluous whitespace in front of every line without a + or - > (as you noticed before). I cannot really understand why this would make the email better readable or anything. > I now also compared the mail I received as it is shown in my mail program and the bug > is present there, too. Display is ok (even without that one extra space char - that is > why the md5sum was ok first), but not when I display it with headers (raw view so to > say). > > Will send the next patches with Thunderbird and hope that it will be ok then. > Wasted about an hour examining this - hope you guys at least had fun reading ;-) > Let us know about your experience with Thunderbird. -Michael > > Lars [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 819 bytes --] ^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: Problem with whitespace in patches 2015-06-05 13:25 ` Michael Tremer @ 2015-06-05 13:29 ` Larsen 0 siblings, 0 replies; 13+ messages in thread From: Larsen @ 2015-06-05 13:29 UTC (permalink / raw) To: development [-- Attachment #1: Type: text/plain, Size: 771 bytes --] On Fri, 05 Jun 2015 15:25:32 +0200, Michael Tremer <michael.tremer(a)ipfire.org> wrote: >> Then, I switched views to have the header displayed, too, and saved it >> as a file. >> Compared to the file created by TortoiseGit and now I can solve this >> riddle: >> There we have superfluous whitespace in front of every line without a + >> or - >> (as you noticed before). > > I cannot really understand why this would make the email better readable > or anything. I know, it´s absolutely stupid. The dev must have had a bad day or something... > Let us know about your experience with Thunderbird. http://patchwork.ipfire.org/patch/15/ was sent with TB. Ignoring the aforementioned points that patch is still missing, would it theoretically merge? Lars ^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2015-06-05 13:29 UTC | newest] Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <1433079323.3370.92.camel@ipfire.org> 2015-06-01 20:59 ` [PATCH] Fix hardcoded strings in pppsetup.cgi Larsen 2015-06-01 21:57 ` Aw: " Bernhard Bitsch 2015-06-02 6:58 ` Larsen 2015-06-02 8:51 ` Aw: " Bernhard Bitsch 2015-06-02 10:04 ` Larsen 2015-06-02 19:49 ` Larsen 2015-06-02 20:01 ` Michael Tremer 2015-06-02 21:05 ` Larsen 2015-06-02 21:07 ` Larsen 2015-06-04 16:23 ` Michael Tremer 2015-06-04 20:52 ` Problem with whitespace in patches Larsen 2015-06-05 13:25 ` Michael Tremer 2015-06-05 13:29 ` Larsen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox