Fix i18n key typo
This commit is contained in:
parent
179f442a87
commit
5d9e1845b7
7 changed files with 10 additions and 10 deletions
|
@ -70,7 +70,7 @@ de:
|
|||
group_id: Gruppe
|
||||
private: Privat
|
||||
recipient_tokens: Empfänger_innen
|
||||
sent_to_all: An alle Mitglieder schicken
|
||||
send_to_all: An alle Mitglieder schicken
|
||||
subject: Betreff
|
||||
order:
|
||||
closed_by: Abgerechnet von
|
||||
|
|
|
@ -70,7 +70,7 @@ en:
|
|||
group_id: Group
|
||||
private: Private
|
||||
recipient_tokens: Recipients
|
||||
sent_to_all: Send to all members
|
||||
send_to_all: Send to all members
|
||||
subject: Subject
|
||||
order:
|
||||
boxfill: Fill boxes after
|
||||
|
|
|
@ -70,7 +70,7 @@ fr:
|
|||
group_id: Cellule ou équipe
|
||||
private: Privé
|
||||
recipient_tokens: Destinataires
|
||||
sent_to_all: Envoyer à tous les membres
|
||||
send_to_all: Envoyer à tous les membres
|
||||
subject: Sujet
|
||||
order:
|
||||
closed_by: Décompté par
|
||||
|
|
|
@ -70,7 +70,7 @@ nl:
|
|||
group_id: Groep
|
||||
private: Privé
|
||||
recipient_tokens: Geadresseerden
|
||||
sent_to_all: Aan alle leden sturen
|
||||
send_to_all: Aan alle leden sturen
|
||||
subject: Onderwerp
|
||||
order:
|
||||
closed_by: Afgerekend door
|
||||
|
|
|
@ -6,7 +6,7 @@ class Message < ActiveRecord::Base
|
|||
belongs_to :reply_to_message, :class_name => "Message", :foreign_key => "reply_to"
|
||||
|
||||
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 :sent, -> { where(:email_state => 1) }
|
||||
|
@ -35,7 +35,7 @@ class Message < ActiveRecord::Base
|
|||
def clean_up_recipient_ids
|
||||
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 = User.all.collect(&:id) if sent_to_all == "1"
|
||||
self.recipients_ids = User.all.collect(&:id) if send_to_all == "1"
|
||||
end
|
||||
|
||||
def add_recipients(users)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
theme: 'facebook'
|
||||
});
|
||||
|
||||
$('#message_sent_to_all').on('change', function() {
|
||||
$('#message_send_to_all').on('change', function() {
|
||||
if ($(this).is(':checked')) {
|
||||
$('#recipients').slideUp();
|
||||
} else {
|
||||
|
@ -18,7 +18,7 @@
|
|||
}
|
||||
});
|
||||
// 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')
|
||||
|
@ -30,7 +30,7 @@
|
|||
%p= t('.reply_to', link: link_to(t('.message'), message_path(@message.reply_to))).html_safe
|
||||
|
||||
- if FoodsoftConfig[:mailing_list].blank?
|
||||
= f.input :sent_to_all, :as => :boolean
|
||||
= f.input :send_to_all, :as => :boolean
|
||||
- else
|
||||
%b= t('.list.desc', list: mail_to(FoodsoftConfig[:mailing_list])).html_safe
|
||||
%br/
|
||||
|
|
|
@ -6,7 +6,7 @@ en:
|
|||
group_id: Group
|
||||
private: Private
|
||||
recipient_tokens: Recipients
|
||||
sent_to_all: Send to all members
|
||||
send_to_all: Send to all members
|
||||
subject: Subject
|
||||
messagegroup:
|
||||
description: Description
|
||||
|
|
Loading…
Reference in a new issue