@@ -808,12 +808,12 bg: | |||||
808 | text_wiki_page_destroy_children: Изтриване на страниците деца и всички техни descendants |
|
808 | text_wiki_page_destroy_children: Изтриване на страниците деца и всички техни descendants | |
809 | setting_password_min_length: Минимална дължина на парола |
|
809 | setting_password_min_length: Минимална дължина на парола | |
810 | field_group_by: Групиране на резултатите по |
|
810 | field_group_by: Групиране на резултатите по | |
811 |
mail_subject_wiki_content_updated: "Wiki страницата '{{ |
|
811 | mail_subject_wiki_content_updated: "Wiki страницата '{{page}}' не беше обновена" | |
812 | label_wiki_content_added: Wiki страница беше добавена |
|
812 | label_wiki_content_added: Wiki страница беше добавена | |
813 |
mail_subject_wiki_content_added: "Wiki страницата '{{ |
|
813 | mail_subject_wiki_content_added: "Wiki страницата '{{page}}' беше добавена" | |
814 |
mail_body_wiki_content_added: Wiki страницата '{{ |
|
814 | mail_body_wiki_content_added: Wiki страницата '{{page}}' беше добавена от {{author}}. | |
815 | label_wiki_content_updated: Wiki страница беше обновена |
|
815 | label_wiki_content_updated: Wiki страница беше обновена | |
816 |
mail_body_wiki_content_updated: Wiki страницата '{{ |
|
816 | mail_body_wiki_content_updated: Wiki страницата '{{page}}' беше обновена от {{author}}. | |
817 | permission_add_project: Създаване на проект |
|
817 | permission_add_project: Създаване на проект | |
818 | setting_new_project_user_role_id: Роля, давана на потребител, създаващ проекти, който не е администратор |
|
818 | setting_new_project_user_role_id: Роля, давана на потребител, създаващ проекти, който не е администратор | |
819 | label_view_all_revisions: Разглеждане на всички ревизии |
|
819 | label_view_all_revisions: Разглеждане на всички ревизии |
@@ -853,12 +853,12 es: | |||||
853 | text_wiki_page_destroy_children: Eliminar páginas hijas y todos sus descendientes |
|
853 | text_wiki_page_destroy_children: Eliminar páginas hijas y todos sus descendientes | |
854 | setting_password_min_length: Longitud mínima de la contraseña |
|
854 | setting_password_min_length: Longitud mínima de la contraseña | |
855 | field_group_by: Agrupar resultados por |
|
855 | field_group_by: Agrupar resultados por | |
856 |
mail_subject_wiki_content_updated: "La página wiki '{{ |
|
856 | mail_subject_wiki_content_updated: "La página wiki '{{page}}' ha sido actualizada" | |
857 | label_wiki_content_added: Página wiki añadida |
|
857 | label_wiki_content_added: Página wiki añadida | |
858 |
mail_subject_wiki_content_added: "Se ha añadido la página wiki '{{ |
|
858 | mail_subject_wiki_content_added: "Se ha añadido la página wiki '{{page}}'." | |
859 |
mail_body_wiki_content_added: "{{author}} ha añadido la página wiki '{{ |
|
859 | mail_body_wiki_content_added: "{{author}} ha añadido la página wiki '{{page}}'." | |
860 | label_wiki_content_updated: Página wiki actualizada |
|
860 | label_wiki_content_updated: Página wiki actualizada | |
861 |
mail_body_wiki_content_updated: La página wiki '{{ |
|
861 | mail_body_wiki_content_updated: La página wiki '{{page}}' ha sido actualizada por {{author}}. | |
862 | permission_add_project: Crear proyecto |
|
862 | permission_add_project: Crear proyecto | |
863 | setting_new_project_user_role_id: Permiso asignado a un usuario no-administrador para crear proyectos |
|
863 | setting_new_project_user_role_id: Permiso asignado a un usuario no-administrador para crear proyectos | |
864 | label_view_all_revisions: Ver todas las revisiones |
|
864 | label_view_all_revisions: Ver todas las revisiones |
@@ -278,10 +278,10 | |||||
278 | mail_body_account_activation_request: "有位新用戶 ({{value}}) 已經完成註冊,正等候您的審核:" |
|
278 | mail_body_account_activation_request: "有位新用戶 ({{value}}) 已經完成註冊,正等候您的審核:" | |
279 | mail_subject_reminder: "您有 {{count}} 個項目即將到期 ({{days}})" |
|
279 | mail_subject_reminder: "您有 {{count}} 個項目即將到期 ({{days}})" | |
280 | mail_body_reminder: "{{count}} 個指派給您的項目,將於 {{days}} 天之內到期:" |
|
280 | mail_body_reminder: "{{count}} 個指派給您的項目,將於 {{days}} 天之內到期:" | |
281 |
mail_subject_wiki_content_added: "'{{ |
|
281 | mail_subject_wiki_content_added: "'{{page}}' wiki 頁面已被新增" | |
282 |
mail_body_wiki_content_added: "The '{{ |
|
282 | mail_body_wiki_content_added: "The '{{page}}' wiki 頁面已被 {{author}} 新增。" | |
283 |
mail_subject_wiki_content_updated: "'{{ |
|
283 | mail_subject_wiki_content_updated: "'{{page}}' wiki 頁面已被更新" | |
284 |
mail_body_wiki_content_updated: "The '{{ |
|
284 | mail_body_wiki_content_updated: "The '{{page}}' wiki 頁面已被 {{author}} 更新。" | |
285 |
|
285 | |||
286 | gui_validation_error: 1 個錯誤 |
|
286 | gui_validation_error: 1 個錯誤 | |
287 | gui_validation_error_plural: "{{count}} 個錯誤" |
|
287 | gui_validation_error_plural: "{{count}} 個錯誤" |
@@ -305,6 +305,26 class MailerTest < ActiveSupport::TestCase | |||||
305 | end |
|
305 | end | |
306 | end |
|
306 | end | |
307 |
|
307 | |||
|
308 | def test_wiki_content_added | |||
|
309 | content = WikiContent.find(:first) | |||
|
310 | valid_languages.each do |lang| | |||
|
311 | Setting.default_language = lang.to_s | |||
|
312 | assert_difference 'ActionMailer::Base.deliveries.size' do | |||
|
313 | assert Mailer.deliver_wiki_content_added(content) | |||
|
314 | end | |||
|
315 | end | |||
|
316 | end | |||
|
317 | ||||
|
318 | def test_wiki_content_updated | |||
|
319 | content = WikiContent.find(:first) | |||
|
320 | valid_languages.each do |lang| | |||
|
321 | Setting.default_language = lang.to_s | |||
|
322 | assert_difference 'ActionMailer::Base.deliveries.size' do | |||
|
323 | assert Mailer.deliver_wiki_content_updated(content) | |||
|
324 | end | |||
|
325 | end | |||
|
326 | end | |||
|
327 | ||||
308 | def test_account_information |
|
328 | def test_account_information | |
309 | user = User.find(2) |
|
329 | user = User.find(2) | |
310 | valid_languages.each do |lang| |
|
330 | valid_languages.each do |lang| |
General Comments 0
You need to be logged in to leave comments.
Login now