Fix i18n key typo

This commit is contained in:
wvengen 2016-03-07 21:06:49 +01:00
parent 179f442a87
commit 5d9e1845b7
7 changed files with 10 additions and 10 deletions

View File

@ -70,7 +70,7 @@ de:
group_id: Gruppe group_id: Gruppe
private: Privat private: Privat
recipient_tokens: Empfänger_innen recipient_tokens: Empfänger_innen
sent_to_all: An alle Mitglieder schicken send_to_all: An alle Mitglieder schicken
subject: Betreff subject: Betreff
order: order:
closed_by: Abgerechnet von closed_by: Abgerechnet von

View File

@ -70,7 +70,7 @@ en:
group_id: Group group_id: Group
private: Private private: Private
recipient_tokens: Recipients recipient_tokens: Recipients
sent_to_all: Send to all members send_to_all: Send to all members
subject: Subject subject: Subject
order: order:
boxfill: Fill boxes after boxfill: Fill boxes after

View File

@ -70,7 +70,7 @@ fr:
group_id: Cellule ou équipe group_id: Cellule ou équipe
private: Privé private: Privé
recipient_tokens: Destinataires recipient_tokens: Destinataires
sent_to_all: Envoyer à tous les membres send_to_all: Envoyer à tous les membres
subject: Sujet subject: Sujet
order: order:
closed_by: Décompté par closed_by: Décompté par

View File

@ -70,7 +70,7 @@ nl:
group_id: Groep group_id: Groep
private: Privé private: Privé
recipient_tokens: Geadresseerden recipient_tokens: Geadresseerden
sent_to_all: Aan alle leden sturen send_to_all: Aan alle leden sturen
subject: Onderwerp subject: Onderwerp
order: order:
closed_by: Afgerekend door closed_by: Afgerekend door

View File

@ -6,7 +6,7 @@ class Message < ActiveRecord::Base
belongs_to :reply_to_message, :class_name => "Message", :foreign_key => "reply_to" belongs_to :reply_to_message, :class_name => "Message", :foreign_key => "reply_to"
serialize :recipients_ids, Array serialize :recipients_ids, Array
attr_accessor :sent_to_all, :recipient_tokens attr_accessor :send_to_all, :recipient_tokens
scope :pending, -> { where(:email_state => 0) } scope :pending, -> { where(:email_state => 0) }
scope :sent, -> { where(:email_state => 1) } scope :sent, -> { where(:email_state => 1) }
@ -35,7 +35,7 @@ class Message < ActiveRecord::Base
def clean_up_recipient_ids def clean_up_recipient_ids
add_recipients Group.find(group_id).users unless group_id.blank? add_recipients Group.find(group_id).users unless group_id.blank?
self.recipients_ids = recipients_ids.uniq.reject { |id| id.blank? } unless recipients_ids.nil? self.recipients_ids = recipients_ids.uniq.reject { |id| id.blank? } unless recipients_ids.nil?
self.recipients_ids = User.all.collect(&:id) if sent_to_all == "1" self.recipients_ids = User.all.collect(&:id) if send_to_all == "1"
end end
def add_recipients(users) def add_recipients(users)

View File

@ -10,7 +10,7 @@
theme: 'facebook' theme: 'facebook'
}); });
$('#message_sent_to_all').on('change', function() { $('#message_send_to_all').on('change', function() {
if ($(this).is(':checked')) { if ($(this).is(':checked')) {
$('#recipients').slideUp(); $('#recipients').slideUp();
} else { } else {
@ -18,7 +18,7 @@
} }
}); });
// make sure state is correct when loading // make sure state is correct when loading
$('#recipients').toggle(!$('#message_sent_to_all').is(':checked')); $('#recipients').toggle(!$('#message_send_to_all').is(':checked'));
}); });
- title t('.title') - title t('.title')
@ -30,7 +30,7 @@
%p= t('.reply_to', link: link_to(t('.message'), message_path(@message.reply_to))).html_safe %p= t('.reply_to', link: link_to(t('.message'), message_path(@message.reply_to))).html_safe
- if FoodsoftConfig[:mailing_list].blank? - if FoodsoftConfig[:mailing_list].blank?
= f.input :sent_to_all, :as => :boolean = f.input :send_to_all, :as => :boolean
- else - else
%b= t('.list.desc', list: mail_to(FoodsoftConfig[:mailing_list])).html_safe %b= t('.list.desc', list: mail_to(FoodsoftConfig[:mailing_list])).html_safe
%br/ %br/

View File

@ -6,7 +6,7 @@ en:
group_id: Group group_id: Group
private: Private private: Private
recipient_tokens: Recipients recipient_tokens: Recipients
sent_to_all: Send to all members send_to_all: Send to all members
subject: Subject subject: Subject
messagegroup: messagegroup:
description: Description description: Description