some reformatting/refactor of en.yml. This might break some translations but I think I've catched the most ones, at least the most important ones

This commit is contained in:
MrZYX 2011-03-12 02:01:31 +01:00
parent e52d14f1e9
commit ed8d4db3a8
8 changed files with 558 additions and 544 deletions

View file

@ -53,14 +53,4 @@ module AspectsHelper
remove_from_aspect_button(aspect.id, person.id)
end
end
def publisher_description(aspect_count)
str = "#{t('.share_with')} #{aspect_count} "
if aspect_count == 1
str += t('_aspect').downcase
else
str += t('_aspects').downcase
end
("<span>#{str}</span>").html_safe
end
end

View file

@ -1,9 +1,5 @@
module ConversationsHelper
def new_message_text(count)
if count > 0
t('new_messages', :count => count)
else
t('no_new_messages')
end
t('conversations.helper.new_messages', :count => count)
end
end

View file

@ -34,11 +34,7 @@ module NotificationsHelper
end
def new_notification_text(count)
if count > 0
t('new_notifications', :count => count)
else
t('no_new_notifications')
end
t('notifications.helper.new_notifications', :count => count)
end
def new_notification_link(count)

View file

@ -10,7 +10,7 @@ module RequestsHelper
def new_request_link(request_count)
if request_count > 0
link_to t('new_requests', :count => @request_count), aspects_manage_path
link_to t('requests.helper.new_requests', :count => @request_count), aspects_manage_path
end
end
end

View file

@ -8,11 +8,7 @@
.right
= link_to t('contacts', :count => @contact_count), aspects_manage_path, :title => t('aspects.manage.manage_aspects')
= aspects.count
- if aspects.count == 1
= t('_aspect')
- else
= t('_aspects')
= t('aspects', :count => aspects.count)
%ul
- for aspect in aspects

View file

@ -13,10 +13,7 @@
= image_tag 'icons/doc_edit.png'
%span= t('.whats_on_your_mind')
- if @aspect_ids.length == 1
= "(#{@aspect_ids.length} #{t('_aspect').downcase})"
- else
= "(#{@aspect_ids.length} #{t('_aspects').downcase})"
= t('aspects', :count => @aspect_ids.length)
.content_creation
= form_for(StatusMessage.new, :remote => true, :html => {"data-type" => "json"}) do |status|

View file

@ -2,5 +2,5 @@
# licensed under the Affero General Public License version 3 or later. See
# the COPYRIGHT file.
WillPaginate::ViewHelpers.pagination_options[:previous_label] = "&laquo; #{I18n.t('pagination.previous')}"
WillPaginate::ViewHelpers.pagination_options[:next_label] = "#{I18n.t('pagination.next')} &raquo;"
WillPaginate::ViewHelpers.pagination_options[:previous_label] = "&laquo; #{I18n.t('previous')}"
WillPaginate::ViewHelpers.pagination_options[:next_label] = "#{I18n.t('next')} &raquo;"

File diff suppressed because it is too large Load diff