<?xml version="1.0" encoding="utf-8"?>
		<feed xmlns="http://www.w3.org/2005/Atom">
		  <title type="text">Clocking IT Forums - Date::MONTHNAMES - can&amp;#039;t modify frozen array</title>
		  <updated>2010-09-09T07:00:20+02:00</updated>
		  <id>http://forum.clockingit.com/</id>
		  <link rel="alternate" type="text/html" hreflang="en" href="http://forum.clockingit.com/discussion/?DiscussionID=53"/>
		  <link rel="self" type="application/atom+xml" href="http://forum.clockingit.com/discussion/?DiscussionID=53&amp;Feed=Atom"/>
		  <generator uri="http://getvanilla.com/" version="1.1.2">
			 Lussumo Vanilla
		  </generator>
		  <entry>
		<title>Date::MONTHNAMES - can&#039;t modify frozen array</title>
		<link rel="alternate" href="http://forum.clockingit.com/discussion/53/?Focus=156#Comment_156" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.clockingit.com/discussion/53/?Focus=156#Comment_156</id>
		<published>2007-04-24T11:08:43+02:00</published>
		<updated>2010-09-09T07:00:20+02:00</updated>
		<author>
			<name>slifox</name>
			<uri>http://forum.clockingit.com/account/40/</uri>
		</author>
		<summary type="text" xml:lang="en">
			While trying to use clockingit from source, I ran into this error:

can't modify frozen array
#{RAILS_ROOT}/lib/localization.rb:38:in `replace'
#{RAILS_ROOT}/lib/localization.rb:38:in ...
		</summary>
		<content type="html">
			<![CDATA[While trying to use clockingit from source, I ran into this error:<br />&lt;code&gt;<br />can't modify frozen array<br />#{RAILS_ROOT}/lib/localization.rb:38:in `replace'<br />#{RAILS_ROOT}/lib/localization.rb:38:in `translate_strings'<br />#{RAILS_ROOT}/lib/localization.rb:31:in `lang'<br />#{RAILS_ROOT}/app/controllers/application.rb:59:in `authorize'<br />&lt;/code&gt;<br /><br />I'm not familiar at all with ruby, so this was a pain to figure out. However, I believe the problem is in the system's date.rb (/usr/lib/ruby/1.8/date.rb for me), line 252:<br /><br />&lt;code&gt;<br />  [MONTHNAMES, DAYNAMES, ABBR_MONTHNAMES, ABBR_DAYNAMES].each do |xs|<br />    xs.each{|x| x.freeze}.freeze<br />  end<br />&lt;/code&gt;<br /><br />For now, I've commented this out in my system's date.rb. However, there should be a solution that can be implemented in clockingit's source.<br /><br />Any ideas how?<br /><br />Alex]]>
		</content>
	</entry>
	<entry>
		<title>Date::MONTHNAMES - can&#039;t modify frozen array</title>
		<link rel="alternate" href="http://forum.clockingit.com/discussion/53/?Focus=158#Comment_158" type="application/xhtml+xml" hreflang="en"/>
		<id>http://forum.clockingit.com/discussion/53/?Focus=158#Comment_158</id>
		<published>2007-04-24T11:18:52+02:00</published>
		<updated>2010-09-09T07:00:20+02:00</updated>
		<author>
			<name>admin</name>
			<uri>http://forum.clockingit.com/account/1/</uri>
		</author>
		<summary type="text" xml:lang="en">
			Ho hum... That's a bugger... 

I guess it should be possible to override the strftime function of Date, like I do with Time, and use local arrays instead of replacing the ones in the Date class. ...
		</summary>
		<content type="html">
			<![CDATA[Ho hum... That's a bugger... <br /><br />I guess it should be possible to override the strftime function of Date, like I do with Time, and use local arrays instead of replacing the ones in the Date class. I'll see if I get the time to have a go at it tonight.]]>
		</content>
	</entry>
	
		</feed>