<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: getting a list of all i18n properties used in a Grails application</title>
	<atom:link href="http://blog.armbruster-it.de/2010/07/getting-a-list-of-all-i18n-properties-used-in-a-grails-application/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.armbruster-it.de/2010/07/getting-a-list-of-all-i18n-properties-used-in-a-grails-application/</link>
	<description>Real world fun with Java, Grails, Groovy, Zope, Plone, Linux and much others.</description>
	<lastBuildDate>Sat, 07 Jan 2012 17:55:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Sebastian Kurt</title>
		<link>http://blog.armbruster-it.de/2010/07/getting-a-list-of-all-i18n-properties-used-in-a-grails-application/comment-page-1/#comment-760</link>
		<dc:creator>Sebastian Kurt</dc:creator>
		<pubDate>Wed, 20 Apr 2011 09:34:35 +0000</pubDate>
		<guid isPermaLink="false">http://blog.armbruster-it.de/?p=152#comment-760</guid>
		<description>&lt;a href=&quot;#comment-759&quot; rel=&quot;nofollow&quot;&gt;@Stefan Armbruster &lt;/a&gt; 
Solution found, as our app uses snippets like ${message(code: foo.create&#039;, default: &#039;Create New&#039;)} in GSP-Files we have to add the matcher for this to GSP case.

switch (it) {
	case ~/.*\.groovy/:
		def matcher = it.text =~ /code:\s*[&quot;&#039;](.*?)[&quot;&#039;].*default:\s*[&quot;&#039;](.*?)[&quot;&#039;]/
		matcher.each { properties &lt;&lt; it[1]+&quot;=&quot;+it[2] }
		break
	case ~/.*\.gsp/:
		def matcher = it.text =~ /code=[&quot;&#039;](.*?)[&quot;&#039;].*default=\s*[&quot;&#039;](.*?)[&quot;&#039;]/
		matcher.each { properties &lt;&lt; it[1]+&quot;=&quot;+it[2] }
		def matcher2 = it.text =~ /code:\s*[&quot;&#039;](.*?)[&quot;&#039;].*default:\s*[&quot;&#039;](.*?)[&quot;&#039;]/
		matcher2.each { properties &lt;&lt; it[1]+&quot;=&quot;+it[2] }
		break
}</description>
		<content:encoded><![CDATA[<p><a href="#comment-759" rel="nofollow">@Stefan Armbruster </a><br />
Solution found, as our app uses snippets like ${message(code: foo.create&#8217;, default: &#8216;Create New&#8217;)} in GSP-Files we have to add the matcher for this to GSP case.</p>
<p>switch (it) {<br />
	case ~/.*\.groovy/:<br />
		def matcher = it.text =~ /code:\s*["'](.*?)["'].*default:\s*["'](.*?)["']/<br />
		matcher.each { properties &lt;&lt; it[1]+&quot;=&quot;+it[2] }<br />
		break<br />
	case ~/.*\.gsp/:<br />
		def matcher = it.text =~ /code=[&quot;&#039;](.*?)[&quot;&#039;].*default=\s*[&quot;&#039;](.*?)[&quot;&#039;]/<br />
		matcher.each { properties &lt;&lt; it[1]+&quot;=&quot;+it[2] }<br />
		def matcher2 = it.text =~ /code:\s*[&quot;&#039;](.*?)[&quot;&#039;].*default:\s*[&quot;&#039;](.*?)[&quot;&#039;]/<br />
		matcher2.each { properties &lt;&lt; it[1]+&quot;=&quot;+it[2] }<br />
		break<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan Armbruster</title>
		<link>http://blog.armbruster-it.de/2010/07/getting-a-list-of-all-i18n-properties-used-in-a-grails-application/comment-page-1/#comment-759</link>
		<dc:creator>Stefan Armbruster</dc:creator>
		<pubDate>Tue, 19 Apr 2011 20:36:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.armbruster-it.de/?p=152#comment-759</guid>
		<description>Hi Sebastian, I&#039;ll take a look at it and will reply on stackoverflow.</description>
		<content:encoded><![CDATA[<p>Hi Sebastian, I&#8217;ll take a look at it and will reply on stackoverflow.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian Kurt</title>
		<link>http://blog.armbruster-it.de/2010/07/getting-a-list-of-all-i18n-properties-used-in-a-grails-application/comment-page-1/#comment-758</link>
		<dc:creator>Sebastian Kurt</dc:creator>
		<pubDate>Tue, 19 Apr 2011 17:54:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.armbruster-it.de/?p=152#comment-758</guid>
		<description>Thanks for the useful script! I tried to use and improve it, but was not completly successful: http://stackoverflow.com/questions/5716900/regex-to-find-pairs-of-strings

any tip appreciated!</description>
		<content:encoded><![CDATA[<p>Thanks for the useful script! I tried to use and improve it, but was not completly successful: <a href="http://stackoverflow.com/questions/5716900/regex-to-find-pairs-of-strings" rel="nofollow">http://stackoverflow.com/questions/5716900/regex-to-find-pairs-of-strings</a></p>
<p>any tip appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

