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


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 gabriel, rothenstein 5, 24214 neudorf-bornstein
fon: +49 (1520) 1976 148

GnuPG Key ID 0xB588399B

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.
Author: Mike Gabriel <>
--- 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