Commit fe317a30d9f77307630ac18dfad6a202e79aafd8

Authored by Victor Costa
2 parents b76c20a5 baa2faf8

Merge branch 'master' into staging

app/helpers/application_helper.rb
@@ -1244,7 +1244,7 @@ module ApplicationHelper @@ -1244,7 +1244,7 @@ module ApplicationHelper
1244 end 1244 end
1245 1245
1246 def cache_timeout(key, timeout, &block) 1246 def cache_timeout(key, timeout, &block)
1247 - cache(key, { :expires_in => timeout }, &block) 1247 + cache(key, { :expires_in => timeout, :skip_digest => true }, &block)
1248 end 1248 end
1249 1249
1250 def is_cache_expired?(key) 1250 def is_cache_expired?(key)
app/models/block.rb
@@ -235,7 +235,7 @@ class Block < ActiveRecord::Base @@ -235,7 +235,7 @@ class Block < ActiveRecord::Base
235 235
236 alias :active_record_cache_key :cache_key 236 alias :active_record_cache_key :cache_key
237 def cache_key(language='en', user=nil) 237 def cache_key(language='en', user=nil)
238 - active_record_cache_key+'-'+language 238 + active_record_cache_key + '-' + language
239 end 239 end
240 240
241 def timeout 241 def timeout
plugins/event/lib/event_plugin/event_block.rb
@@ -81,4 +81,8 @@ class EventPlugin::EventBlock < Block @@ -81,4 +81,8 @@ class EventPlugin::EventBlock < Block
81 content_tag(:span, date.year.to_s, :class => 'year') 81 content_tag(:span, date.year.to_s, :class => 'year')
82 end 82 end
83 83
  84 + def self.expire_on
  85 + { :profile => [:article], :environment => [:article] }
  86 + end
  87 +
84 end 88 end
plugins/organization_ratings/po/pt/organization_ratings.po
@@ -7,8 +7,8 @@ msgid "" @@ -7,8 +7,8 @@ msgid ""
7 msgstr "" 7 msgstr ""
8 "Project-Id-Version: 1.3~rc2-1-ga15645d\n" 8 "Project-Id-Version: 1.3~rc2-1-ga15645d\n"
9 "POT-Creation-Date: 2015-10-30 16:35-0300\n" 9 "POT-Creation-Date: 2015-10-30 16:35-0300\n"
10 -"PO-Revision-Date: 2016-01-21 15:50+0000\n"  
11 -"Last-Translator: Dylan Guedes <djmgguedes@gmail.com>\n" 10 +"PO-Revision-Date: 2016-02-18 14:44+0000\n"
  11 +"Last-Translator: Eduardo Vital <vitaldu@gmail.com>\n"
12 "Language-Team: Portuguese <https://hosted.weblate.org/projects/noosfero" 12 "Language-Team: Portuguese <https://hosted.weblate.org/projects/noosfero"
13 "/plugin-organization-ratings/pt/>\n" 13 "/plugin-organization-ratings/pt/>\n"
14 "Language: pt\n" 14 "Language: pt\n"
@@ -261,7 +261,7 @@ msgstr &quot;para esta %s.&quot; @@ -261,7 +261,7 @@ msgstr &quot;para esta %s.&quot;
261 261
262 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:70 262 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:70
263 msgid "Hi, %s! The administrators set the minimum time of" 263 msgid "Hi, %s! The administrators set the minimum time of"
264 -msgstr "Olá, %s! Os administradores configuraram o tempo mínimo de " 264 +msgstr "Olá, %s! Os administradores configuraram o tempo mínimo de"
265 265
266 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:71 266 #: plugins/organization_ratings/views/organization_ratings_plugin_profile/_new_rating_fields.html.erb:71
267 msgid "%d hour(s)" 267 msgid "%d hour(s)"
plugins/site_tour/po/pt/site_tour.po
@@ -2,14 +2,16 @@ msgid &quot;&quot; @@ -2,14 +2,16 @@ msgid &quot;&quot;
2 msgstr "" 2 msgstr ""
3 "Project-Id-Version: 1.3~rc2-1-ga15645d\n" 3 "Project-Id-Version: 1.3~rc2-1-ga15645d\n"
4 "POT-Creation-Date: 2015-10-30 16:35-0300\n" 4 "POT-Creation-Date: 2015-10-30 16:35-0300\n"
5 -"PO-Revision-Date: 2015-02-03 17:27-0300\n"  
6 -"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"  
7 -"Language-Team: LANGUAGE <LL@li.org>\n"  
8 -"Language: \n" 5 +"PO-Revision-Date: 2016-02-18 14:44+0000\n"
  6 +"Last-Translator: Eduardo Vital <vitaldu@gmail.com>\n"
  7 +"Language-Team: Portuguese <https://hosted.weblate.org/projects/noosfero"
  8 +"/plugin-site-tour/pt/>\n"
  9 +"Language: pt\n"
9 "MIME-Version: 1.0\n" 10 "MIME-Version: 1.0\n"
10 "Content-Type: text/plain; charset=UTF-8\n" 11 "Content-Type: text/plain; charset=UTF-8\n"
11 "Content-Transfer-Encoding: 8bit\n" 12 "Content-Transfer-Encoding: 8bit\n"
12 -"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n" 13 +"Plural-Forms: nplurals=2; plural=n != 1;\n"
  14 +"X-Generator: Weblate 2.5-dev\n"
13 15
14 #: plugins/site_tour/lib/site_tour_plugin/tour_block.rb:3 16 #: plugins/site_tour/lib/site_tour_plugin/tour_block.rb:3
15 msgid "Click to start tour!" 17 msgid "Click to start tour!"
@@ -88,7 +90,7 @@ msgstr &quot;Próximo&quot; @@ -88,7 +90,7 @@ msgstr &quot;Próximo&quot;
88 90
89 #: plugins/site_tour/views/tour_actions.html.erb:17 91 #: plugins/site_tour/views/tour_actions.html.erb:17
90 msgid "Back" 92 msgid "Back"
91 -msgstr "Anterior" 93 +msgstr "Voltar"
92 94
93 #: plugins/site_tour/views/tour_actions.html.erb:18 95 #: plugins/site_tour/views/tour_actions.html.erb:18
94 msgid "Skip" 96 msgid "Skip"
po/pt/noosfero.po
@@ -13,8 +13,8 @@ msgid &quot;&quot; @@ -13,8 +13,8 @@ msgid &quot;&quot;
13 msgstr "" 13 msgstr ""
14 "Project-Id-Version: 1.3~rc2-8-g01ea9f7\n" 14 "Project-Id-Version: 1.3~rc2-8-g01ea9f7\n"
15 "POT-Creation-Date: 2015-11-04 12:36-0300\n" 15 "POT-Creation-Date: 2015-11-04 12:36-0300\n"
16 -"PO-Revision-Date: 2016-01-21 16:56+0000\n"  
17 -"Last-Translator: Dylan Guedes <djmgguedes@gmail.com>\n" 16 +"PO-Revision-Date: 2016-02-18 14:44+0000\n"
  17 +"Last-Translator: Eduardo Vital <vitaldu@gmail.com>\n"
18 "Language-Team: Portuguese " 18 "Language-Team: Portuguese "
19 "<https://hosted.weblate.org/projects/noosfero/noosfero/pt/>\n" 19 "<https://hosted.weblate.org/projects/noosfero/noosfero/pt/>\n"
20 "Language: pt\n" 20 "Language: pt\n"
@@ -9262,7 +9262,7 @@ msgstr &quot;Fãs de %s&quot; @@ -9262,7 +9262,7 @@ msgstr &quot;Fãs de %s&quot;
9262 9262
9263 #: app/views/profile/_create_article.html.erb:12 9263 #: app/views/profile/_create_article.html.erb:12
9264 msgid "See more" 9264 msgid "See more"
9265 -msgstr "Ver mais" 9265 +msgstr "Veja mais"
9266 9266
9267 #: app/views/profile/index.html.erb:32 9267 #: app/views/profile/index.html.erb:32
9268 msgid "Network" 9268 msgid "Network"