<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Xucros &#187; I18n</title>
	<atom:link href="http://xucros.com/tag/i18n/feed/" rel="self" type="application/rss+xml" />
	<link>http://xucros.com</link>
	<description></description>
	<lastBuildDate>Sat, 31 Dec 2011 19:37:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xucros.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Xucros &#187; I18n</title>
		<link>http://xucros.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xucros.com/osd.xml" title="Xucros" />
	<atom:link rel='hub' href='http://xucros.com/?pushpress=hub'/>
		<item>
		<title>&#8220;t&#8221; method in models and controllers</title>
		<link>http://xucros.com/2008/12/01/t-method-in-models-and-controllers/</link>
		<comments>http://xucros.com/2008/12/01/t-method-in-models-and-controllers/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:44:51 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[en-US]]></category>
		<category><![CDATA[I18n]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[railscasts]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://xucros.wordpress.com/?p=10</guid>
		<description><![CDATA[I&#8217;m using the i18n api in my pet project and ran into a little problem: I need to use the &#8220;t&#8221; method in models and controllers, but I couldn&#8217;t since &#8220;t&#8221; is for views. I thought about including the views &#8230; <a href="http://xucros.com/2008/12/01/t-method-in-models-and-controllers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=10&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m using the i18n api in my pet project and ran into a little problem: I need to use the &#8220;t&#8221; method in models and controllers, but I couldn&#8217;t since &#8220;t&#8221; is for views.</p>
<p>I thought about including the views modules where needed, which is very ugly. But, <a href="http://railscasts.com">Ryan Bates</a> showed me the solution: If you&#8217;re outside the view, call &#8220;I18n.translate&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=10&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2008/12/01/t-method-in-models-and-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
		<item>
		<title>Método &#8220;t&#8221; nos models e controllers</title>
		<link>http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/</link>
		<comments>http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/#comments</comments>
		<pubDate>Mon, 01 Dec 2008 11:38:34 +0000</pubDate>
		<dc:creator>lucasuyezu</dc:creator>
				<category><![CDATA[pt-BR]]></category>
		<category><![CDATA[I18n]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[railscasts]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://xucros.wordpress.com/?p=7</guid>
		<description><![CDATA[Eu estou usando a api de I18n no meu pet project e me deparei com um problema: eu precisava usar o método &#8220;t&#8221; nos models e controllers, mas não conseguia, já que &#8220;t&#8221; é um método para views. Cheguei a &#8230; <a href="http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=7&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Eu estou usando a api de I18n no meu pet project e me deparei com um problema: eu precisava usar o método &#8220;t&#8221; nos models e controllers, mas não conseguia, já que &#8220;t&#8221; é um método para views.</p>
<p>Cheguei a pensar em dar include dos módulos da view onde precisasse, o que é muito porco. Porém, contudo, entretanto, todavia, <a href="http://railscasts.com" target="_blank">Ryan Bates</a> mostrou a solução para o meu problema: Se você estiver fora da view e precisar traduzir algo, use &#8220;I18n.translate&#8221;.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xucros.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xucros.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xucros.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xucros.com&amp;blog=5655861&amp;post=7&amp;subd=xucros&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xucros.com/2008/12/01/metodo-t-nos-models-e-controllers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/864ae2178a21699972a64f5262b62b00?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">lucasuyezu</media:title>
		</media:content>
	</item>
	</channel>
</rss>
