public
Description: Store translation strings in the database allowing you to update text without requiring a code deploy.
Clone URL: git://github.com/caring/gibberish_db.git
Search Repo:
A touch of logging when loading stuff.
dustin (author)
Thu Apr 24 13:04:40 -0700 2008
dustin (committer)
Thu Apr 24 13:06:34 -0700 2008
commit  4de276f7ccbb0dec3e7dc68d8da8b4da1e5318f1
tree    bd8096e99aa9014379a55b6269c512ead31e124f
parent  f29a9a3715153621c32c2cec6e560a4f19e07d14
...
46
47
48
 
49
50
51
...
46
47
48
49
50
51
52
0
@@ -46,6 +46,7 @@ module Gibberish
0
     def self.full_cached
0
       get_cache("everything") do
0
         returning({}) do |rv|
0
+ RAILS_DEFAULT_LOGGER.info "Loading translations."
0
           Translation.find(:all, :include => :language).group_by{|l| [l.language_id, l.key]}.each do |p|
0
             rv[p.first] = p.last.last
0
             rv[[p.first.first, p.first.last.to_sym]] = p.last.last

Comments

    No one has commented yet.