noosfero | move plugins translations to the plugins themselves (#407)
Antonio Terceiro
gitlab at gitlab.com
Mon Feb 9 11:59:23 BRST 2015
New comment for Merge Request 407
https://gitlab.com/noosfero/noosfero/merge_requests/407#note_844080
Antonio Terceiro
this is not a new problem, and before this MR it was already possible that two plugins, or any other two different places in the code, define the same message and require different translations.
you want `_('context|My message')`; there are a lot of example of this in the codebase already. e.g. look for `"View all"` in `app/models/enterprises_block.rb` and `app/models/tags_block.rb` and `plugins/people_block/views/blocks/friends.html.erb`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150209/feccfe75/attachment.html>
More information about the Noosfero-dev
mailing list