[wp-hackers] Automatic textdomain append for plugins
viper at viper007bond.com
Mon Mar 10 23:51:27 GMT 2008
Ah sweet, thanks!
On Mon, Mar 10, 2008 at 8:46 AM, Nikolay Bachiyski <nbachiyski at developer.bg>
> Although I am a strong i18n advocate, plugin internationalization
> has always driven me back, because I had to add textdomain to every
> gettext call.
> Developers, they say, are lazy, so I thought of a way not to do this
> any more. The result was the add-textdomain.php script:
> php add-textdomain.php shareadraft.php shareadraft
> This call adds 'shareadraft' as a last argument to all gettext calls
> in shareadraft.php and prints the modified php file on standard
> output. It makes sure it doesn't add the argument twice, so it is good
> for incremental usage.
> The script is available in the wordpress0i18n repo:
> Happy hacking,
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
More information about the wp-hackers