noosfero | 2 new commits pushed to repository

Bráulio Bhavamitra braulio at eita.org.br
Fri Jan 30 12:09:53 BRST 2015


On Fri, Jan 30, 2015 at 10:24 AM, Antonio Terceiro <terceiro at colivre.coop.br
> wrote:

> On Fri, Jan 30, 2015 at 12:33:11PM +0000, Bráulio Bhavamitra wrote:
> > =====================================
> > app/views/layouts/application-ng.html.erb
> > =====================================
> > --- a/app/views/layouts/application-ng.html.erb
> > +++ b/app/views/layouts/application-ng.html.erb
> > @@ -12,24 +12,9 @@
> >      <meta name="twitter:title" content="<%= h page_title %>">
> >      <meta name="twitter:description" content="<%=
> meta_description_tag(@page) %>">
> >
> > -    <!-- Open Graph -->
> > -    <meta property="og:type" content="<%= @page ? 'article' : 'website'
> %>">
> > -    <meta property="og:url" content="<%= @page ? url_for(@page.url) :
> top_url %>">
> > -    <meta property="og:title" content="<%= h page_title %>">
> > -    <meta property="og:site_name" content="<%= profile ? profile.name
> : @environment.name %>">
> > -    <meta property="og:description" content="<%=
> meta_description_tag(@page) %>">
> > -
> >      <!-- site root -->
> >      <meta property="noosfero:root" content="<%= Noosfero.root %>"/>
> >
> > -    <% if @page %>
> > -      <meta property="article:published_time" content="<%=
> show_date(@page.published_at) %>">
> > -      <% @page.body_images_paths.each do |img| %>
> > -        <meta name="twitter:image" content="<%= img.to_s %>">
> > -        <meta property="og:image" content="<%= img.to_s %>">
> > -      <% end %>
> > -    <% end %>
> > -
> >      <link rel="shortcut icon" href="<%= image_path(theme_favicon) %>"
> type="image/x-icon" />
> >      <%= noosfero_javascript %>
> >      <%= noosfero_stylesheets %>
>
> So you are moving a feature from the core to a plugin and enhancing it
> several times, which is good, thanks for that.
>
> However:
>
> - when people upgrade they will instantly lose this metadata unless they
>   activate the plugin; I wonder how they will even realize that this is
>   needed.
>
Yeah, can't really know how to migrate existings sites. This makes me think
about:
- An official page to let people know about the breaking changes in Noosfero
- If metadata plugin should be an base plugin. That would solve this issue,
but I'm not sure this is an good option.


>
> - the plugin has 0 tests, and will run code on 100% of the requests if
>   enabled
>
Yeah, It needs tests and I'll do them ASAP.
However, I've implemented several mechanisms to ensure the metadata plugin
won't crash the application if some data could not be assembled.

>
> > =====================================
> > plugins/metadata/lib/metadata_plugin.rb
> > =====================================
> > --- /dev/null
> > +++ b/plugins/metadata/lib/metadata_plugin.rb
> > @@ -0,0 +1,59 @@
> > +
> > +class MetadataPlugin < Noosfero::Plugin
> > +
> > +  def self.plugin_name
> > +    I18n.t 'metadata_plugin.lib.plugin.name'
> > +  end
> > +
> > +  def self.plugin_description
> > +    I18n.t 'metadata_plugin.lib.plugin.description'
> > +  end
>
> You do realize that by not using .po files you will lose the ability of
> having translations contributed through the nice weblate interface,
> right?
>
No, just realized that now looking on the internet:
https://docs.weblate.org/en/latest/formats.html

I've reported an issue asking for them about theirs plans to support this
format: https://github.com/nijel/weblate/issues/645


>
> --
> Antonio Terceiro <terceiro at colivre.coop.br>
> Colivre - Cooperativa de Tecnologias Livres
> http://www.colivre.coop.br/
>
>
>
> _______________________________________________
> Noosfero-dev mailing list
> Noosfero-dev at listas.softwarelivre.org
> http://listas.softwarelivre.org/cgi-bin/mailman/listinfo/noosfero-dev
>
>


-- 
"Lute pela sua ideologia. Seja um com sua ideologia. Viva pela sua
ideologia. Morra por sua ideologia" P.R. Sarkar

EITA - Educação, Informação e Tecnologias para Autogestão
http://cirandas.net/brauliobo
http://eita.org.br

"Paramapurusha é meu pai e Parama Prakriti é minha mãe. O universo é meu
lar e todos nós somos cidadãos deste cosmo. Este universo é a imaginação da
Mente Macrocósmica, e todas as entidades estão sendo criadas, preservadas e
destruídas nas fases de extroversão e introversão do fluxo imaginativo
cósmico. No âmbito pessoal, quando uma pessoa imagina algo em sua mente,
naquele momento, essa pessoa é a única proprietária daquilo que ela
imagina, e ninguém mais. Quando um ser humano criado mentalmente caminha
por um milharal também imaginado, a pessoa imaginada não é a propriedade
desse milharal, pois ele pertence ao indivíduo que o está imaginando. Este
universo foi criado na imaginação de Brahma, a Entidade Suprema, por isso
a propriedade deste universo é de Brahma, e não dos microcosmos que também
foram criados pela imaginação de Brahma. Nenhuma propriedade deste mundo,
mutável ou imutável, pertence a um indivíduo em particular; tudo é o
patrimônio comum de todos."
Restante do texto em
http://cirandas.net/brauliobo/blog/a-problematica-de-hoje-em-dia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150130/46cff4af/attachment.html>


More information about the Noosfero-dev mailing list