Package: smarty-gettext
Severity: important
Version: 1.0b1-6

Hi,

when smarty-gettext is used with smarty 3.1, the rendered page will contain several repetitions of the .po file header of the language that is used for translation.

The issue gets fixed by not translating empty strings.

Mike

--

DAS-NETZWERKTEAM
mike gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0xB588399B
mail: mike.gabr...@das-netzwerkteam.de, http://das-netzwerkteam.de

freeBusy:
https://mail.das-netzwerkteam.de/freebusy/m.gabriel%40das-netzwerkteam.de.xfb
Description: Do not show .po file header for empty translation strings (when used with smarty 3.1)
 When used with smarty 3.1 empty translation strings will end up with showing
 the header stanza of the .po file that gets selected for translating the
 original messages.
 .
 The fix is to ignore empty translation strings.
Forwarded: https://sourceforge.net/tracker/?func=detail&aid=3541356&group_id=107853&atid=648884
Author: Mike Gabriel <mike.gabr...@das-netzwerkteam.de>
--- a/block.t.php
+++ b/block.t.php
@@ -72,6 +72,10 @@
  */
 function smarty_block_t($params, $text, &$smarty)
 {
+	if ( ! isset($text) ) {
+		return $text;
+	}
+	
 	$text = stripslashes($text);
 	
 	// set escape mode

Attachment: pgpirYT1TTFzE.pgp
Description: Digitale PGP-Unterschrift

Reply via email to