noosfero | translation: properly escape double quotes (!1026)

Leandro Nunes gitlab at mg.gitlab.com
Thu Feb 23 18:54:21 BRT 2017


New comment for Merge Request !1026 on app/views/categories/_category.html.erb:

https://gitlab.com/noosfero/noosfero/merge_requests/1026#note_24059153

>    <div>
>      <%= link_to _('Add subcategory'), :action => 'new', :parent_id => category %>
>      <%= link_to _('Edit'), :action => 'edit', :id => category %>
> -    <%= link_to _('Remove'), { action: 'remove', id: category, }, method: 'post', data: {confirm: if category.children.empty? then _('Are you sure you want to remove "%s"?') % category.name else _('Are you sure you want to remove "%s" and all its subcategories?') % category.name end} %>

This code is not working.
The string displayed to user has the character "\"


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170223/1b908504/attachment.html>


More information about the Noosfero-dev mailing list