debian/0000755000000000000000000000000011776303766007206 5ustar debian/manpages0000644000000000000000000000002211776303044010703 0ustar debian/tsmarty2c.1debian/tsmarty2c.10000644000000000000000000000231111776303044011202 0ustar '\" -*- coding: utf-8 -*- .if \n(.g .ds T< \\FC .if \n(.g .ds T> \\F[\n[.fam]] .de URL \\$2 \(la\\$1\(ra\\$3 .. .if \n(.g .mso www.tmac .TH tsmarty2c 1 "July 2012" "Version 1.0" "Smarty Gettext Translation String Ripper" .SH NAME tsmarty2c \- Rip translation strings from smarty template files and convert them to gettext calls in C. .SH SYNOPSIS 'nh .fi .ad l \fBtsmarty2c\fR \\ [] \\ [... ] .SH DESCRIPTION .PP \fBtsmarty2c\fR rips the translation strings from smarty template files, and converts them to gettext calls in C. .PP The C output may later be used with the standard gettext tools (see xgettext). .PP If one of the parameters is a directory, the template files within will be parsed, recursively. .PP The output also contains comments that point to the location of the file that the string has been ripped from. .PP You can use the '--add-comments' parameter of xgettext to make it include these comments inside the PO file (suggested by Mike van Lammeren). .SH SEE ALSO xgettext(1) .SH AUTHOR This manual has been written for the Debian project (and may be used by others) by Mike Gabriel . debian/docs0000644000000000000000000000000711752567723010055 0ustar README debian/source/0000755000000000000000000000000011752567723010505 5ustar debian/source/format0000644000000000000000000000001411752567723011713 0ustar 3.0 (quilt) debian/changelog0000644000000000000000000000517611776303766011071 0ustar smarty-gettext (1.0b1-7) unstable; urgency=low * debian/patches/001_no-translation-of-empty-strings.patch (new): + Do not show .po file headers on translated pages. (Closes: #680754) * debian/install, debian/links: + Install as /usr/bin/tsmarty2c (without extension) and drop the symlink of the same name that used to refer to /usr/bin/tsmarty2c.php. * debian/tsmarty2c.1 (new, man page): + Silence W: smarty-gettext: binary-without-manpage usr/bin/tsmarty2c -- Mike Gabriel Sun, 08 Jul 2012 15:15:29 +0200 smarty-gettext (1.0b1-6) unstable; urgency=low * New maintainer. -- Mike Gabriel Thu, 10 May 2012 20:49:21 +0200 smarty-gettext (1.0b1-5) unstable; urgency=low * Move files to the new location used by smarty 3. * Ajust depends to ensure we have smarty using the new location too. * Update Standards-Version to 3.9.3 (no change needed). * Increase debhelper compat level to 9. * Depend on "smarty3" instead of "smarty" since no proper transition has been done with the latter being removed and the former one being orphaned. :-( Closes: #665033, #665040, #672103 -- Raphaël Hertzog Tue, 08 May 2012 20:41:04 +0200 smarty-gettext (1.0b1-4) unstable; urgency=low * Add accent on my name in debian/control. * Switch to source format "3.0 (quilt)". * Update Standards-Version to 3.8.3. * Increase debhelper build-depends to first version providing overrides. -- Raphaël Hertzog Wed, 27 Jan 2010 18:41:48 +0100 smarty-gettext (1.0b1-3) unstable; urgency=low * Update debian/control - change maintainer. Closes: #500356 - build-depend on debhelper 7 - add Vcs-Git, Vcs-Browser, Homepage fields - move php5-cli and gettext to Recommends. Closes: #407131 - update standards-version to 3.8.2 * Update copyright to mention LGPL and to use machine-parsable format * Switch to debhelper 7 tiny rules file * Remove useless debian/dirs * Add debian/watch file * Rename /usr/bin/tsmarty2c.php in /usr/bin/tsmarty2c. Keep compatibily symlink for now. -- Raphael Hertzog Tue, 23 Jun 2009 15:43:10 +0200 smarty-gettext (1.0b1-2) unstable; urgency=low * Depends on php4-cli or php5-cli (closes: #372265). * debian/control: updated Standards-Version from 3.6.1 to 3.7.2. * debian/copyright: updated FSF address -- Cyril Bouthors Sun, 20 Aug 2006 22:42:09 +0300 smarty-gettext (1.0b1-1) unstable; urgency=low * Initial release Closes: #323629. -- Cyril Bouthors Wed, 17 Aug 2005 19:50:43 +0300 debian/compat0000644000000000000000000000000211752567723010403 0ustar 9 debian/control0000644000000000000000000000162011753006607010575 0ustar Source: smarty-gettext Section: web Priority: optional Maintainer: Mike Gabriel Build-Depends: debhelper (>= 9) Standards-Version: 3.9.3 Homepage: http://sourceforge.net/projects/smarty-gettext/ Vcs-Git: git://git.debian.org/git/collab-maint/smarty-gettext.git Vcs-Browser: http://git.debian.org/?p=collab-maint/smarty-gettext.git Package: smarty-gettext Architecture: all Depends: ${misc:Depends}, smarty3 Recommends: php5-cli, gettext Description: Gettext plugin enabling internationalization in Smarty Smarty Gettext is a Smarty plugin providing internationalization support based on the standard gettext mechanism. Smarty is a popular PHP templating engine. . You need the PHP command line interpreter if you wish to use the tsmarty2c program: it lets you extract localizable strings from a Smarty template so that you can use the normal gettext tools afterwards. debian/watch0000644000000000000000000000010111752567723010226 0ustar version=2 http://sf.net/smarty-gettext/smarty-gettext-(.+)\.tgz debian/patches/0000755000000000000000000000000011776267566010644 5ustar debian/patches/series0000644000000000000000000000005211776263460012043 0ustar 001_no-translation-of-empty-strings.patch debian/patches/001_no-translation-of-empty-strings.patch0000644000000000000000000000126611776267566020447 0ustar 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 --- 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 debian/rules0000755000000000000000000000023111752567723010261 0ustar #!/usr/bin/make -f %: dh $@ override_dh_install: dh_install mv debian/smarty-gettext/usr/bin/tsmarty2c.php debian/smarty-gettext/usr/bin/tsmarty2c debian/install0000644000000000000000000000010111776303044010554 0ustar block.t.php usr/share/php/smarty3/plugins/ tsmarty2c.php usr/bin/debian/copyright0000644000000000000000000000120711752567723011140 0ustar Name: Smarty Gettext Maintainer: Sagi Bashari Source: http://sourceforge.net/projects/smarty-gettext/ Files: * Copyright: 2004-2005, Sagi Bashari License: LGPL-2.1+ On Debian systems the full text of the GNU Lesser General Public License can be found in the `/usr/share/common-licenses/LGPL-2.1' file. Files: debian/* Copyright: 2009, Raphael Hertzog 2005-2006, Cyril Bouthors License: Copying and distribution of this package, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved.