muck-comments 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. data/README.rdoc +8 -1
  2. data/VERSION +1 -1
  3. data/app/helpers/muck_comments_helper.rb +3 -2
  4. data/app/models/comment_mailer.rb +29 -0
  5. data/app/views/comment_mailer/new_comment.text.html.erb +6 -0
  6. data/app/views/comment_mailer/new_comment.text.plain.erb +7 -0
  7. data/app/views/comments/_form.html.erb +1 -1
  8. data/lib/active_record/acts/muck_comment.rb +7 -2
  9. data/locales/ar.yml +9 -7
  10. data/locales/bg.yml +7 -5
  11. data/locales/ca.yml +7 -5
  12. data/locales/cs.yml +8 -6
  13. data/locales/da.yml +6 -4
  14. data/locales/de.yml +8 -6
  15. data/locales/el.yml +10 -8
  16. data/locales/en.yml +2 -0
  17. data/locales/es.yml +8 -6
  18. data/locales/et.yml +5 -3
  19. data/locales/fa.yml +7 -5
  20. data/locales/fi.yml +8 -6
  21. data/locales/fr.yml +8 -6
  22. data/locales/gl.yml +6 -4
  23. data/locales/hi.yml +7 -5
  24. data/locales/hr.yml +7 -5
  25. data/locales/hu.yml +12 -10
  26. data/locales/id.yml +7 -5
  27. data/locales/it.yml +6 -4
  28. data/locales/iw.yml +10 -8
  29. data/locales/ja.yml +8 -6
  30. data/locales/ko.yml +12 -10
  31. data/locales/lt.yml +4 -2
  32. data/locales/lv.yml +8 -6
  33. data/locales/mt.yml +9 -7
  34. data/locales/nl.yml +9 -7
  35. data/locales/no.yml +5 -3
  36. data/locales/pl.yml +9 -7
  37. data/locales/pt-PT.yml +8 -6
  38. data/locales/ro.yml +9 -7
  39. data/locales/ru.yml +7 -5
  40. data/locales/sk.yml +9 -7
  41. data/locales/sl.yml +8 -6
  42. data/locales/sq.yml +9 -7
  43. data/locales/sr.yml +10 -8
  44. data/locales/sv.yml +9 -7
  45. data/locales/th.yml +8 -6
  46. data/locales/tl.yml +6 -4
  47. data/locales/tr.yml +8 -6
  48. data/locales/uk.yml +7 -5
  49. data/locales/vi.yml +12 -10
  50. data/locales/zh-CN.yml +6 -4
  51. data/locales/zh-TW.yml +6 -4
  52. data/locales/zh.yml +6 -4
  53. data/muck-comments.gemspec +9 -5
  54. data/test/rails_root/config/global_config.yml +3 -0
  55. data/test/rails_root/test/unit/comment_mailer_test.rb +26 -0
  56. metadata +11 -4
data/README.rdoc CHANGED
@@ -61,6 +61,13 @@ Then you will be able to do this to get a comment count:
61
61
 
62
62
  @blog.comment_count
63
63
 
64
+ === Configuration
65
+ Add the following to globalconfig.yml:
66
+ send_email_for_new_comments: true
67
+
68
+ This will send out an email to each user that has participated in a comment thread. The default email is basic and only includes the body
69
+ of the comment. Add new email views to provide a better email for you users. They can be found in app/views/comment_mailer/new_comment.text.html.erb
70
+ and app/views/comment_mailer/new_comment.text.plain.erb
64
71
 
65
72
  === Comment partial
66
73
  When calling create in the comments controller with :format => 'json' the resulting json will include an 'html' field that contains
@@ -76,4 +83,4 @@ For example, for an object 'activity' that acts_as_commentable create a partial
76
83
 
77
84
 
78
85
 
79
- Copyright (c) 2009 Justin Ball, released under the MIT license
86
+ Copyright (c) 2009 Tatemai, released under the MIT license
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -6,10 +6,11 @@ module MuckCommentsHelper
6
6
 
7
7
  # parent is the object to which the comments will be attached
8
8
  # comment is the optional parent comment for the new comment.
9
- def comment_form(parent, comment = nil, render_new = false)
9
+ def comment_form(parent, comment = nil, render_new = false, comment_button_class = 'comment-submit')
10
10
  render :partial => 'comments/form', :locals => {:parent => parent,
11
11
  :comment => comment,
12
- :render_new => render_new}
12
+ :render_new => render_new,
13
+ :comment_button_class => comment_button_class}
13
14
  end
14
15
 
15
16
  # make_muck_parent_params is defined in muck-engine and used by many of the engines.
@@ -0,0 +1,29 @@
1
+ class CommentMailer < ActionMailer::Base
2
+ unloadable
3
+ layout 'email_default'
4
+ default_url_options[:host] = GlobalConfig.application_url
5
+
6
+ def new_comment(comment)
7
+ if comment.user
8
+ display_name = comment.user.display_name
9
+ else
10
+ display_name = I18n.t('muck.comment.anonymous')
11
+ end
12
+ recipients emails_for_comment(comment)
13
+ from "#{GlobalConfig.from_email_name} <#{GlobalConfig.from_email}>"
14
+ sent_on Time.now
15
+ content_type "text/html" # There is a bug in Rails that prevents multipart emails from working inside an engine. See: https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2263-rails-232-breaks-implicit-multipart-actionmailer-tests#ticket-2263-22
16
+ subject I18n.t('muck.comments.new_comment_email_subject', :name => display_name, :application_name => GlobalConfig.application_name)
17
+ body :comment => comment, :display_name => display_name
18
+ end
19
+
20
+ protected
21
+ def emails_for_comment(comment)
22
+ emails = []
23
+ comment.root.self_and_descendants.each do |c|
24
+ emails << c.user.email unless emails.include?(c.user.email) if c.user
25
+ end
26
+ emails
27
+ end
28
+
29
+ end
@@ -0,0 +1,6 @@
1
+ <p><%= h(@display_name) %> commented:</p>
2
+
3
+ <p><%= h(@comment.body) %>.</p>
4
+
5
+ <p>Thanks, <br />
6
+ The <%= GlobalConfig.application_name %> Team</p>
@@ -0,0 +1,7 @@
1
+ <%= h(@display_name) %> commented:
2
+
3
+ <%= h(@comment.body) %>.
4
+
5
+ Thanks,
6
+
7
+ The <%= GlobalConfig.application_name %> Team
@@ -3,6 +3,6 @@
3
3
  <%= f.text_area :body, :class => 'min' %>
4
4
  <%= hidden_field_tag :parent_comment_id, comment.id unless comment.blank? -%>
5
5
  <%= hidden_field_tag :render_new, render_new -%>
6
- <%= f.submit t('muck.comments.add_comment_button'), :class => "button comment-submit", :id => "comment_submit_#{parent.dom_id}" %>
6
+ <%= f.submit t('muck.comments.add_comment_button'), :class => "button #{comment_button_class}", :id => "comment_submit_#{parent.dom_id}" %>
7
7
  <% end -%>
8
8
  </div>
@@ -12,7 +12,7 @@ module ActiveRecord
12
12
  acts_as_nested_set :scope => [:commentable_id, :commentable_type]
13
13
  validates_presence_of :body
14
14
  belongs_to :user
15
- belongs_to :commentable, :counter_cache => 'comment_count', :polymorphic => true
15
+ belongs_to :commentable, :counter_cache => 'comment_count', :polymorphic => true, :touch => true
16
16
 
17
17
  named_scope :by_newest, :order => "created_at DESC"
18
18
  named_scope :by_oldest, :order => "created_at ASC"
@@ -60,7 +60,12 @@ module ActiveRecord
60
60
 
61
61
  # All the methods available to a record that has had <tt>acts_as_muck_comment</tt> specified.
62
62
  module InstanceMethods
63
-
63
+
64
+ # Send an email to everyone in the thread
65
+ def after_create
66
+ CommentMailer.deliver_new_comment(self) if GlobalConfig.send_email_for_new_comments
67
+ end
68
+
64
69
  #helper method to check if a comment has children
65
70
  def has_children?
66
71
  self.children.size > 0
data/locales/ar.yml CHANGED
@@ -5,12 +5,14 @@ ar:
5
5
  comment: تعليقات
6
6
  comments:
7
7
  add_comment: التعليق
8
- add_comment_button: "أضف تعليق"
9
- cant_delete_comment: "ليس لديك إذن حذف هذا التعليق"
10
- comment_removed: "نجحت في إزالة التعليق."
11
- create_error: "لا يمكن تهيئة التعليق {{errors}}"
12
- create_success: "واضاف التعليق بنجاح"
13
- missing_comment_template_error: "لا يمكن العثور على جزء من اسمه {{partial}}. الرجاء إنشاء التعليق الجزئي وحاول مرة أخرى."
8
+ add_comment_button: التعليق
9
+ anonymous: المجهول
10
+ cant_delete_comment: "ليس لديك الإذن لحذف هذا التعليق"
11
+ comment_removed: "تعليق إزالتها بنجاح."
12
+ create_error: "لا يمكن إنشاء {{errors}}تعليق"
13
+ create_success: "وأضاف التعليق بنجاح"
14
+ missing_comment_template_error: "تعذر العثور على الجزئي المسمى {{partial}}. الرجاء إنشاء التعليق الجزئي وحاول مرة أخرى."
15
+ new_comment_email_subject: "التعليق الجديد من {{name}}على {{application_name}}"
14
16
  new_comment_no_title: "إضافة تعليق جديد"
15
17
  new_comment_with_title: "إضافة تعليق جديد ل{{title}}"
16
- problem_adding_comment: "هناك مشكلة واضاف تعليقك"
18
+ problem_adding_comment: "كانت هناك مشكلة مضيفا تعليقك"
data/locales/bg.yml CHANGED
@@ -6,11 +6,13 @@ bg:
6
6
  comments:
7
7
  add_comment: Коментар
8
8
  add_comment_button: "Добави коментар"
9
- cant_delete_comment: "Вие нямате разрешение да изтриете този коментар"
9
+ anonymous: Анонимен
10
+ cant_delete_comment: "Вие нямате право да изтриете този коментар"
10
11
  comment_removed: "Коментар успешно премахнат."
11
- create_error: "Не може да се създаде мнение {{errors}}"
12
+ create_error: "Не може да създаде {{errors}} коментар"
12
13
  create_success: "Успешно добави коментар"
13
- missing_comment_template_error: "Не може да се намери частично име {{partial}}. Моля, създайте мнение частична и опитайте отново."
14
+ missing_comment_template_error: "Не можах да намеря частично име {{partial}}. Моля, създайте коментар частично и опитайте отново."
15
+ new_comment_email_subject: "Нов коментар от {{name}} на {{application_name}}"
14
16
  new_comment_no_title: "Добавяне на нов коментар"
15
- new_comment_with_title: "Добавяне на нов коментар {{title}}"
16
- problem_adding_comment: "Имаше проблем при добавянето на коментар"
17
+ new_comment_with_title: "Добавяне на нов коментар към {{title}}"
18
+ problem_adding_comment: "Имаше проблем при добавяне на коментар"
data/locales/ca.yml CHANGED
@@ -6,11 +6,13 @@ ca:
6
6
  comments:
7
7
  add_comment: Comentari
8
8
  add_comment_button: "Afegir comentari"
9
+ anonymous: Anònim
9
10
  cant_delete_comment: "Vostè no té permís per eliminar aquest comentari"
10
11
  comment_removed: "Comentari eliminat amb èxit."
11
- create_error: "No es pot crear el comentari {{errors}}"
12
- create_success: "Agregat comentari"
13
- missing_comment_template_error: "No va poder trobar un nom parcial {{partial}}. Si us plau, creeu una observació parcial i torni a intentar."
12
+ create_error: "No s&#39;ha pogut crear l&#39;{{errors}} comentari"
13
+ create_success: "Ha afegit un comentari"
14
+ missing_comment_template_error: "No s&#39;ha pogut trobar un nom parcial {{partial}}. Si us plau, creeu un comentari parcial i torni a intentar-ho."
15
+ new_comment_email_subject: "Nou Comentari de {{name}} a {{application_name}}"
14
16
  new_comment_no_title: "Afegeix un comentari nou"
15
- new_comment_with_title: "Afegir un nou comentari a {{title}}"
16
- problem_adding_comment: "Hi ha hagut un problema en afegir el seu comentari"
17
+ new_comment_with_title: "Afegir un nou comentari a l&#39;{{title}}"
18
+ problem_adding_comment: "Hi va haver un problema en afegir el seu comentari"
data/locales/cs.yml CHANGED
@@ -2,15 +2,17 @@
2
2
  cs:
3
3
  muck:
4
4
  activity_templates:
5
- comment: Komentáře
5
+ comment: "Komentář:"
6
6
  comments:
7
7
  add_comment: Komentář
8
8
  add_comment_button: "Přidat komentář"
9
- cant_delete_comment: "Nemáte oprávnění ke smazání že komentář"
10
- comment_removed: "Komentář byl úspěšně odstraněn."
9
+ anonymous: anonymní
10
+ cant_delete_comment: "Nemáte dostatečná oprávnění k odstranění, že komentář"
11
+ comment_removed: "Komentář úspěšně odstraněn."
11
12
  create_error: "Nelze vytvořit komentář {{errors}}"
12
13
  create_success: "Úspěšně přidán komentář"
13
- missing_comment_template_error: "Nenašli jste částečné názvem {{partial}}. Vytvořte prosím komentář částečnou a zkuste to znovu."
14
+ missing_comment_template_error: "Nepodařilo se najít částečnou názvem {{partial}}. Prosím vytvořte komentář dílčí a zkuste to znovu."
15
+ new_comment_email_subject: "Nový komentář od {{name}} na {{application_name}}"
14
16
  new_comment_no_title: "Přidat nový komentář"
15
- new_comment_with_title: "Přidat nový komentář k {{title}}"
16
- problem_adding_comment: "Došlo k problému přidat svůj komentář"
17
+ new_comment_with_title: "Přidat nový komentář {{title}}"
18
+ problem_adding_comment: "Tam byl problém přidat svůj komentář"
data/locales/da.yml CHANGED
@@ -6,11 +6,13 @@ da:
6
6
  comments:
7
7
  add_comment: Kommentar
8
8
  add_comment_button: "Add Comment"
9
- cant_delete_comment: "Du behøver ikke have tilladelse til at slette denne kommentar"
9
+ anonymous: anonym
10
+ cant_delete_comment: "Du har ikke tilladelse til at slette den kommentar"
10
11
  comment_removed: "Kommentar held fjernet."
11
- create_error: "Kunne ikke oprette kommentaren {{errors}}"
12
- create_success: "Blev tilføjet kommentar"
13
- missing_comment_template_error: "Kunne ikke finde en delvis opkaldt {{partial}}. Opret venligst en kommentar delvis, og prøv igen."
12
+ create_error: "Kunne ikke oprette kommentar {{errors}}"
13
+ create_success: "Blevet tilføjet kommentar"
14
+ missing_comment_template_error: "Kunne ikke finde en delvis opkaldt {{partial}}. Opret venligst en kommentar delvis og prøv igen."
15
+ new_comment_email_subject: "Ny kommentar fra {{name}} på {{application_name}}"
14
16
  new_comment_no_title: "Tilføj en ny kommentar"
15
17
  new_comment_with_title: "Tilføj en ny kommentar til {{title}}"
16
18
  problem_adding_comment: "Der var et problem at tilføje din kommentar"
data/locales/de.yml CHANGED
@@ -6,11 +6,13 @@ de:
6
6
  comments:
7
7
  add_comment: Kommentar
8
8
  add_comment_button: "Kommentar hinzufügen"
9
- cant_delete_comment: "Sie haben keine Berechtigung zu löschen, dass Kommentar"
9
+ anonymous: anonymous
10
+ cant_delete_comment: "Sie haben keine Berechtigung, auf den Kommentar löschen"
10
11
  comment_removed: "Kommentar erfolgreich entfernt."
11
- create_error: "Könnte nicht der Kommentar {{errors}}"
12
- create_success: "Erfolgreich hinzugefügt Kommentar"
13
- missing_comment_template_error: "Konnte nicht gefunden werden teilweise Namen {{partial}}. Bitte erstellen Sie einen Kommentar teilweise und versuchen Sie es erneut."
14
- new_comment_no_title: "Fügen Sie einen neuen Kommentar"
12
+ create_error: "Konnte nicht erstellt werden den Kommentar {{errors}}"
13
+ create_success: "Kommentar hinzugefügt"
14
+ missing_comment_template_error: "Konnte nicht gefunden werden teilweise benannt {{partial}}. Bitte erstellen Sie einen Kommentar partielle und versuchen es erneut."
15
+ new_comment_email_subject: "Neuer Kommentar von {{name}} auf {{application_name}}"
16
+ new_comment_no_title: "Fügen Sie einen neuen Beitrag"
15
17
  new_comment_with_title: "Fügen Sie einen neuen Kommentar zu {{title}}"
16
- problem_adding_comment: "Es gab ein Problem geben Sie Ihre Kommentar"
18
+ problem_adding_comment: "Es gab ein Problem du deine Kommentar"
data/locales/el.yml CHANGED
@@ -5,12 +5,14 @@ el:
5
5
  comment: Σχόλια
6
6
  comments:
7
7
  add_comment: Σχόλιο
8
- add_comment_button: "Προσθήκη Σχολίου"
9
- cant_delete_comment: "Δεν έχετε δικαίωμα να διαγράψετε αυτό το σχόλιο"
10
- comment_removed: "Σχόλιο με επιτυχία."
11
- create_error: "Δεν θα μπορούσε να δημιουργήσει το σχόλιο {{errors}}"
12
- create_success: "Επιτυχής προστεθεί σχόλιο"
13
- missing_comment_template_error: "Δεν βρήκατε μια μερική ονομάζεται {{partial}}. Παρακαλώ δημιουργήστε ένα σχόλιο μερική και προσπαθήστε ξανά."
14
- new_comment_no_title: "Προσθήκη νέου σχολίου"
8
+ add_comment_button: "Προσθήκη σχολίου"
9
+ anonymous: ανώνυμος
10
+ cant_delete_comment: "Δεν έχετε την άδεια να διαγράψετε αυτό το σχόλιο"
11
+ comment_removed: "Σχόλιο επιτυχώς αφαιρεθεί."
12
+ create_error: "Δεν ήταν δυνατή η δημιουργία του {{errors}} σχόλιο"
13
+ create_success: "Επιτυχώς προστεθεί σχόλιο"
14
+ missing_comment_template_error: "Δεν βρήκατε μερική όνομα {{partial}}. Παρακαλώ δημιουργήστε ένα σχόλιο μερική και προσπαθήστε ξανά."
15
+ new_comment_email_subject: "Νέο σχόλιο από {{name}} για {{application_name}}"
16
+ new_comment_no_title: "Προσθέστε ένα νέο σχόλιο"
15
17
  new_comment_with_title: "Προσθέστε ένα νέο σχόλιο για την {{title}}"
16
- problem_adding_comment: "Υπήρξε πρόβλημα στην προσθήκη σας σχόλιο"
18
+ problem_adding_comment: "Υπήρξε ένα πρόβλημα προσθέτοντας το σχόλιό σας"
data/locales/en.yml CHANGED
@@ -11,5 +11,7 @@ en:
11
11
  new_comment_no_title: "Add a new comment"
12
12
  new_comment_with_title: "Add a new comment to {{title}}"
13
13
  problem_adding_comment: "There was a problem adding your comment"
14
+ new_comment_email_subject: "New comment from {{name}} on {{application_name}}"
15
+ anonymous: anonymous
14
16
  activity_templates:
15
17
  comment: Comments
data/locales/es.yml CHANGED
@@ -6,11 +6,13 @@ es:
6
6
  comments:
7
7
  add_comment: Comentario
8
8
  add_comment_button: "Añadir comentario"
9
- cant_delete_comment: "Usted no tiene permiso para eliminar ese comentario"
9
+ anonymous: Anónimo
10
+ cant_delete_comment: "Usted no tiene permiso para eliminar a ese comentario"
10
11
  comment_removed: "Comentario eliminado con éxito."
11
- create_error: "No es posible crear el comentario {{errors}}"
12
- create_success: "Agregado comentario"
13
- missing_comment_template_error: "No pudo encontrar un nombre parcial {{partial}}. Por favor, cree una observación parcial y vuelva a intentarlo."
12
+ create_error: "No se pudo crear el {{errors}} comentario"
13
+ create_success: "Ha agregado un comentario"
14
+ missing_comment_template_error: "No se pudo encontrar un nombre parcial {{partial}}. Por favor, cree un comentario parcial y vuelva a intentarlo."
15
+ new_comment_email_subject: "Nuevo Comentario de {{name}} en {{application_name}}"
14
16
  new_comment_no_title: "Añade un comentario nuevo"
15
- new_comment_with_title: "Añadir un nuevo comentario a {{title}}"
16
- problem_adding_comment: "Ha habido un problema al añadir su comentario"
17
+ new_comment_with_title: "Añadir un nuevo comentario al {{title}}"
18
+ problem_adding_comment: "Hubo un problema al añadir su comentario"
data/locales/et.yml CHANGED
@@ -5,12 +5,14 @@ et:
5
5
  comment: Kommentaarid
6
6
  comments:
7
7
  add_comment: Kommentaar
8
- add_comment_button: "Add Comment"
9
- cant_delete_comment: "Sul ei ole luba kustutada kommentaari"
8
+ add_comment_button: "Lisa Kommentaar"
9
+ anonymous: anonüümne
10
+ cant_delete_comment: "Sul ei ole õigusi kustutada kommentaari"
10
11
  comment_removed: "Kommentaar edukalt eemaldatud."
11
12
  create_error: "Kas ei tekita kommentaar {{errors}}"
12
- create_success: "Edukalt lisatakse kommentaar"
13
+ create_success: "Edukalt lisatud kommentaari"
13
14
  missing_comment_template_error: "Ei suutnud leida osalise nimega {{partial}}. Loo kommentaar osaline ja proovige uuesti."
15
+ new_comment_email_subject: "Uus kommentaar {{name}} kohta {{application_name}}"
14
16
  new_comment_no_title: "Lisa uus kommentaar"
15
17
  new_comment_with_title: "Lisa uus kommentaar {{title}}"
16
18
  problem_adding_comment: "Probleem, lisades oma kommentaar"
data/locales/fa.yml CHANGED
@@ -6,11 +6,13 @@ fa:
6
6
  comments:
7
7
  add_comment: نظر
8
8
  add_comment_button: "اضافه کردن نظر"
9
- cant_delete_comment: "شما مجاز به حذف که در نظر ندارد"
9
+ anonymous: ناشناس
10
+ cant_delete_comment: "شما اجازه انجام این کار را حذف کنید که نظر ندارند"
10
11
  comment_removed: "نظر با موفقیت حذف شد."
11
- create_error: "می تواند از نظر ایجاد {{errors}}نیست"
12
+ create_error: "امکان نظر {{errors}}ایجاد کنید"
12
13
  create_success: "با موفقیت ارسال نظر"
13
- missing_comment_template_error: "امکان دارد یک بخشی به نام {{partial}}.را پیدا کنم لطفا یک نظر جزئی و دوباره سعی کنید ایجاد کنید."
14
+ missing_comment_template_error: "امکان دارد یک بخشی به نام {{partial}}.پیدا نشد لطفا نظر جزئی و دوباره سعی کنید ایجاد کنید."
15
+ new_comment_email_subject: "نظر جدید از {{name}}در {{application_name}}"
14
16
  new_comment_no_title: "اضافه کردن نظر جدید"
15
- new_comment_with_title: "اضافه کردن یک نظر جدید را به {{title}}"
16
- problem_adding_comment: "یک مشکل در اضافه کردن نظر شما وجود دارد."
17
+ new_comment_with_title: "اضافه کردن نظر جدید به {{title}}"
18
+ problem_adding_comment: "بود مشکل اضافه کردن نظر شما وجود دارد."
data/locales/fi.yml CHANGED
@@ -4,13 +4,15 @@ fi:
4
4
  activity_templates:
5
5
  comment: Kommentit
6
6
  comments:
7
- add_comment: Kommentti
7
+ add_comment: Kommentin
8
8
  add_comment_button: "Lisää kommentti"
9
- cant_delete_comment: "Sinulla ei ole lupaa poistaa tämä kommentti"
10
- comment_removed: "Kommentti onnistuneesti poistettu."
11
- create_error: "Ei voitu luoda kommentin {{errors}}"
9
+ anonymous: nimettömiksi
10
+ cant_delete_comment: "Sinulla ei ole lupaa poistaa tuon kommentin"
11
+ comment_removed: "Kommentti poistettiin onnistuneesti."
12
+ create_error: "Ei voitu luoda kommentti {{errors}}"
12
13
  create_success: "Lisätty kommentti"
13
- missing_comment_template_error: "Ei löytynyt osittainen nimeltä {{partial}}. Luo kommentti osittainen ja yritä uudelleen."
14
+ missing_comment_template_error: "Ei löytänyt osittain nimeltä {{partial}}. Luo kommentti osittain ja yritä uudelleen."
15
+ new_comment_email_subject: "Uusi kommentteja {{name}} on {{application_name}}"
14
16
  new_comment_no_title: "Lisää uusi kommentti"
15
17
  new_comment_with_title: "Lisää uusi kommentti {{title}}"
16
- problem_adding_comment: "Ongelma lisäämällä kommenttisi"
18
+ problem_adding_comment: "Oli ongelma lisäämällä kommenttisi"
data/locales/fr.yml CHANGED
@@ -6,11 +6,13 @@ fr:
6
6
  comments:
7
7
  add_comment: Commentaire
8
8
  add_comment_button: "Ajouter un commentaire"
9
- cant_delete_comment: "Vous n&#39;êtes pas autorisé à supprimer ce commentaire"
10
- comment_removed: "Commentaire supprimé."
11
- create_error: "Impossible de créer le commentaire {{errors}}"
12
- create_success: "Venez d&#39;ajouter un commentaire"
13
- missing_comment_template_error: "Impossible de trouver une partie nommée {{partial}}. S&#39;il vous plaît de créer une observation partielle et essayez à nouveau."
9
+ anonymous: Anonyme
10
+ cant_delete_comment: "Vous n&#39;avez pas la permission de supprimer ce commentaire"
11
+ comment_removed: "Commentaire supprimé avec succès."
12
+ create_error: "Impossible de créer le {{errors}} commentaire"
13
+ create_success: "D&#39;ajouter un commentaire"
14
+ missing_comment_template_error: "Impossible de trouver un {{partial}}. partielle nommé S&#39;il vous plaît créer un commentaire partielle et essayez à nouveau."
15
+ new_comment_email_subject: "Nouveau commentaire de {{name}} sur {{application_name}}"
14
16
  new_comment_no_title: "Ajouter un commentaire"
15
17
  new_comment_with_title: "Ajouter un nouveau commentaire à {{title}}"
16
- problem_adding_comment: "Il y avait un problème d&#39;ajouter votre commentaire"
18
+ problem_adding_comment: "Il y avait un problème en ajoutant vos commentaires"
data/locales/gl.yml CHANGED
@@ -5,12 +5,14 @@ gl:
5
5
  comment: Comentarios
6
6
  comments:
7
7
  add_comment: Comentario
8
- add_comment_button: "Add comment"
8
+ add_comment_button: Comentar
9
+ anonymous: anónimo
9
10
  cant_delete_comment: "Non ten permiso para borrar este comentario"
10
11
  comment_removed: "Comentario eliminado correctamente."
11
- create_error: "Non se puido crear o comentario {{errors}}"
12
- create_success: "Engadido con éxito comentario"
13
- missing_comment_template_error: "Non se puido atopar un parcial chamado {{partial}}. Crear un comentario parcial e ténteo de novo."
12
+ create_error: "Non se puido crear o {{errors}} comentario"
13
+ create_success: "Engadir comentario"
14
+ missing_comment_template_error: "Non se puido atopar un {{partial}}. parcial nomeado Por favor, cree un comentario parcial e ténteo de novo."
15
+ new_comment_email_subject: "Novo comentario de {{name}} en {{application_name}}"
14
16
  new_comment_no_title: "Engadir un novo comentario"
15
17
  new_comment_with_title: "Engadir un novo comentario para {{title}}"
16
18
  problem_adding_comment: "Houbo un problema ao engadir o teu comentario"
data/locales/hi.yml CHANGED
@@ -6,11 +6,13 @@ hi:
6
6
  comments:
7
7
  add_comment: टिप्पणी
8
8
  add_comment_button: "टिप्पणी जोड़ें"
9
- cant_delete_comment: "आप अनुमति उस टिप्पणी को नष्ट करने की जरूरत नहीं है"
9
+ anonymous: गुमनाम
10
+ cant_delete_comment: "तुम उस टिप्पणी हटाने की अनुमति नहीं है"
10
11
  comment_removed: "टिप्पणी सफलतापूर्वक हटा दिया."
11
- create_error: "टिप्पणी {{errors}} नहीं बना सकते हैं"
12
+ create_error: "बनाने के {{errors}} टिप्पणी नहीं कर सका"
12
13
  create_success: "सफलतापूर्वक टिप्पणी जोड़ा"
13
- missing_comment_template_error: "एक आंशिक नाम {{partial}}. नहीं मिला कृपया एक टिप्पणी आंशिक और फिर कोशिश करें बनाएँ."
14
+ missing_comment_template_error: "खोजें एक आंशिक नाम {{partial}}. नहीं कर सका कृपया एक आंशिक और फिर कोशिश करें टिप्पणी बनाएँ."
15
+ new_comment_email_subject: "नई {{name}} पर {{application_name}} से टिप्पणी"
14
16
  new_comment_no_title: "एक नई टिप्पणी जोड़ें"
15
- new_comment_with_title: "{{title}} करने के लिए एक नई टिप्पणी जोड़ें"
16
- problem_adding_comment: "एक समस्या आपकी टिप्पणी जोड़ने था"
17
+ new_comment_with_title: "{{title}} के लिए एक नई टिप्पणी जोड़ें"
18
+ problem_adding_comment: "वहाँ एक अपनी टिप्पणी जोड़ने समस्या थी"
data/locales/hr.yml CHANGED
@@ -6,11 +6,13 @@ hr:
6
6
  comments:
7
7
  add_comment: Komentar
8
8
  add_comment_button: "Add Comment"
9
- cant_delete_comment: "Nemate dopuštenje za brisanje da komentar"
10
- comment_removed: "Komentar je uspješno uklonjena."
11
- create_error: "Nije se mogla napraviti komentar {{errors}}"
9
+ anonymous: anonymous
10
+ cant_delete_comment: "Nemate dopuštenje za brisanje koja komentar"
11
+ comment_removed: "Komentar je uspješno uklonjen."
12
+ create_error: "Ne mogu stvoriti {{errors}} komentar"
12
13
  create_success: "Uspješno dodan komentar"
13
- missing_comment_template_error: "Nije mogao naći zove parcijalna {{partial}}. Napravite komentar djelomične i pokušajte ponovno."
14
+ missing_comment_template_error: "Ne mogu pronaći djelomični pod nazivom {{partial}}. Molimo Vas izraditi parcijalne komentar i pokušajte ponovno."
15
+ new_comment_email_subject: "Novi komentar od {{name}} na {{application_name}}"
14
16
  new_comment_no_title: "Dodaj novi komentar"
15
17
  new_comment_with_title: "Dodaj novi komentar {{title}}"
16
- problem_adding_comment: "Došlo je do problema u dodavanju Vaš komentar"
18
+ problem_adding_comment: "Došlo je do problema dodajući Vaš komentar"