<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>OXT blog &#187; xgettext</title>
	<atom:link href="http://blog.o-x-t.com/tag/xgettext/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.o-x-t.com</link>
	<description>"People say nothing is impossible, but I do nothing every day." - Whinnie The Pooh</description>
	<lastBuildDate>Wed, 25 Aug 2010 19:18:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Translating symfony validator yaml configs with xgettext</title>
		<link>http://blog.o-x-t.com/2008/03/09/translating-symfony-validator-yaml-configs-with-xgettext/</link>
		<comments>http://blog.o-x-t.com/2008/03/09/translating-symfony-validator-yaml-configs-with-xgettext/#comments</comments>
		<pubDate>Sun, 09 Mar 2008 18:47:53 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[symfony]]></category>
		<category><![CDATA[xgettext]]></category>
		<category><![CDATA[yaml]]></category>

		<guid isPermaLink="false">http://blog.o-x-t.com/2008/03/09/translating-symfony-validator-yaml-configs-with-xgettext/</guid>
		<description><![CDATA[Previously I wrote how to automate routine translation work with xgettext for symfony framework. Unfortunately xgettext cannot parse YAML configs. Obviously you&#8217;ll need to translate at least validator error messages. rgettext is not capable too. I found some solution but I didn&#8217;t like it. I wanted to use PoEdit tool to have possibility for automated [...]]]></description>
			<content:encoded><![CDATA[<p>Previously I wrote how to <a href="/2007/11/16/automating-script-frontend-translation/">automate routine translation work</a> with xgettext for symfony framework. Unfortunately xgettext cannot parse YAML configs. Obviously you&#8217;ll need to translate at least validator error messages. rgettext is not capable too.</p>
<p>I found some <a href="http://trac.symfony-project.com/wiki/HowToGenerateI18NFiles">solution</a> but I didn&#8217;t like it. I wanted to use PoEdit tool to have possibility for automated translation, syncing with sources and easy interface. So I wrote modified task which looks for all validation configs and creates fake php files with messages, which can be parsed by xgettext.</p>
<p>Usage is simple, just copy attached file to symfony/data/tasks in your PEAR directory and run <code>symfony i18n-fake-php app_name</code>. PHP files will be created in validate/ directories. After that you can use xgettext.</p>
<p><a href="http://blog.o-x-t.com/wp-content/uploads/2008/03/sfpakei18nvalidatorsphp.gz" title="sfpakei18nvalidatorsphp.gz">sfpakei18nvalidatorsphp.gz</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.o-x-t.com/2008/03/09/translating-symfony-validator-yaml-configs-with-xgettext/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
