FIX: Polish translation

If you've made a patch to quick fix a bug or to add a new feature not yet in the main tree then post it here so others can try it out.
Post Reply
User avatar
grimble
Posts: 3
Joined: Tue May 12, 2009 2:47 pm
Location: Wroclaw, Poland

FIX: Polish translation

Post by grimble »

Hi,

There were two blank lines after ?> that caused errors. Patch below.

Code: Select all

Index: web/lang/pl_pl.php
===================================================================
--- web/lang/pl_pl.php  (revision 2869)
+++ web/lang/pl_pl.php  (working copy)
@@ -795,5 +795,3 @@
 );

 ?>
-
-
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for that. I don't know why blank lines should cause errors but I have fixed in the trunk anyway.
Phil
User avatar
grimble
Posts: 3
Joined: Tue May 12, 2009 2:47 pm
Location: Wroclaw, Poland

Post by grimble »

Hi,

Http response has strict order: first headers, then page itself. Blank lines from such file are treated as part of page, so if included (sent) before sending headers, forbid sending them at all, because it would be against http protocol.
User avatar
grimble
Posts: 3
Joined: Tue May 12, 2009 2:47 pm
Location: Wroclaw, Poland

Post by grimble »

I removed blank lines from rest of lang files. It looks like they were added by script. updateLangs.php?

Code: Select all

Index: es_ar.php
===================================================================
--- es_ar.php   (revision 2873)
+++ es_ar.php   (working copy)
@@ -669,5 +669,3 @@
 );

 ?>
-
-
Index: ru_ru.php
===================================================================
--- ru_ru.php   (revision 2873)
+++ ru_ru.php   (working copy)
@@ -815,5 +815,3 @@
 );

 ?>
-
-
Index: se_se.php
===================================================================
--- se_se.php   (revision 2873)
+++ se_se.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
Index: fr_fr.php
===================================================================
--- fr_fr.php   (revision 2873)
+++ fr_fr.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
Index: de_de.php
===================================================================
--- de_de.php   (revision 2873)
+++ de_de.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
Index: cn_zh.php
===================================================================
--- cn_zh.php   (revision 2873)
+++ cn_zh.php   (working copy)
@@ -815,4 +815,3 @@
 );

 ?>
-
Index: cs_cz.php
===================================================================
--- cs_cz.php   (revision 2873)
+++ cs_cz.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
Index: nl_nl.php
===================================================================
--- nl_nl.php   (revision 2873)
+++ nl_nl.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
Index: pt_br.php
===================================================================
--- pt_br.php   (revision 2873)
+++ pt_br.php   (working copy)
@@ -756,5 +756,3 @@
 );

 ?>
-
-
Index: hu_hu.php
===================================================================
--- hu_hu.php   (revision 2873)
+++ hu_hu.php   (working copy)
@@ -824,6 +824,3 @@
 );

 ?>
-
-
-
Index: it_it.php
===================================================================
--- it_it.php   (revision 2873)
+++ it_it.php   (working copy)
@@ -821,5 +821,3 @@
 );

 ?>
-
-
Index: dk_dk.php
===================================================================
--- dk_dk.php   (revision 2873)
+++ dk_dk.php   (working copy)
@@ -817,5 +817,3 @@
 );

 ?>
-
-
Index: he_il.php
===================================================================
--- he_il.php   (revision 2873)
+++ he_il.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
Index: ro_ro.php
===================================================================
--- ro_ro.php   (revision 2873)
+++ ro_ro.php   (working copy)
@@ -1250,5 +1250,3 @@
 //
 );
 ?>
-
-
Index: ja_jp.php
===================================================================
--- ja_jp.php   (revision 2873)
+++ ja_jp.php   (working copy)
@@ -816,5 +816,3 @@
 );

 ?>
-
-
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks, I will check why they are being added and remove them.
Phil
Post Reply