[activescaffoldlocalize commit] r84 - trunk/lib

0 views
Skip to first unread message

codesite...@google.com

unread,
Dec 14, 2007, 5:49:17 PM12/14/07
to activescaffold...@googlegroups.com
Author: edwin.moss
Date: Fri Dec 14 14:48:41 2007
New Revision: 84

Modified:
trunk/lib/localization.rb

Log:
Return .dup from _() in the event they want to manipulate it. comment

Modified: trunk/lib/localization.rb
==============================================================================
--- trunk/lib/localization.rb (original)
+++ trunk/lib/localization.rb Fri Dec 14 14:48:41 2007
@@ -30,6 +30,7 @@
if @@l10s[self.lang].nil? or @@l10s[self.lang][string_to_localize].nil?
string_to_localize
else
+ # send back a .dup, so the @temp = _() followed by @temp
<< "fff" does not change the hash
format = @@l10s[self.lang][string_to_localize].dup
if format.is_a?(String) # pluralization not required; args
ignored here
format

codesite...@google.com

unread,
Dec 14, 2007, 5:49:17 PM12/14/07
to activescaffold...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages