Email types not translated

I have noticed that email types in Administration -> E-Mails are not translated:

This one is a bit trickier, but here’s what I found out.

  1. The displayed email type comes from this line in the template (for the Sent page):
  2. The list shows EmailLog records, which have an email_type field defined here:
  3. EmailLog records are created in the jobs NotifyMailingListSubscribers and UserEmail.
  4. UserEmail jobs (and CriticalUserEmail jobs, which are a subtype) are queued at different locations with mostly hardcoded email types (found via grep -R "user_email" .):

(This should be it.)

In general, it would be a good idea to collect the complete list of valid email types (not to be confused with the email template types) at a central place and make these translatable (even though plugins may send emails as well, I suppose, therefore we probably cannot reject email keys that are not in this list, which would assert that this list is to be kept complete).

3 إعجابات

أنا أيضًا فضولي بشأن جميع قيم email_type الممكنة، لأنني أبحث في تعطيل أنواع معينة من رسائل البريد الإلكتروني.

حتى الآن، رأيت:

signup
forgot_password
mailing_list
test_message

لكن الكود يُظهر أيضًا أنواعًا غير مألوفة مثل blah.

قائمة الأنواع:

  • email_reject_reply_user_not_matching: رفض الرد عبر البريد الإلكتروني لعدم تطابق المستخدم
  • email_reject_old_destination: رفض البريد الإلكتروني بسبب عنوان الوجهة القديم
  • email_reject_inactive_user: رفض البريد الإلكتروني بسبب عدم نشاط المستخدم
  • email_login: تسجيل الدخول عبر البريد الإلكتروني
  • user_quoted: اقتباس المستخدم
  • user_mentioned: ذكر المستخدم
  • email_reject_screened_email: رفض البريد الإلكتروني المدقق مسبقًا
  • user_invited_to_private_message: دعوة المستخدم إلى رسالة خاصة
  • confirm_old_email: تأكيد البريد الإلكتروني القديم
  • email_reject_invalid_post_specified: رفض البريد الإلكتروني بسبب منشور غير صالح محدد
  • mailing_list: القائمة البريدية
  • admin_confirmation_message: رسالة تأكيد من المسؤول
  • download_backup_message: رسالة تنزيل النسخة الاحتياطية
  • user_private_message: رسالة خاصة من المستخدم
  • forgot_password: نسيت كلمة المرور
  • admin_login: تسجيل دخول المسؤول
  • email_reject_topic_not_found: رفض البريد الإلكتروني بسبب عدم العثور على الموضوع
  • notify_old_email: إشعار البريد الإلكتروني القديم
  • invite: دعوة
  • user_replied: رد المستخدم
  • suspicious_login: تسجيل دخول مشبوه
  • email_reject_empty: رفض البريد الإلكتروني بسبب الفراغ
  • confirm_new_email: تأكيد البريد الإلكتروني الجديد
  • user_invited_to_topic: دعوة المستخدم إلى موضوع
  • activation_reminder: تذكير التفعيل
  • account_suspended: تعليق الحساب
  • email_reject_post_too_short: رفض البريد الإلكتروني بسبب قصر المنشور
  • group_mentioned: ذكر المجموعة
  • account_second_factor_disabled: تعطيل العامل الثاني للحساب
  • test_message: رسالة اختبار
  • signup: التسجيل
  • user_watching_first_post: مستخدم يشاهد أول منشور
  • email_reject_topic_closed: رفض البريد الإلكتروني بسبب إغلاق الموضوع
  • email_reject_bad_destination_address: رفض البريد الإلكتروني بسبب عنوان وجهة غير صالح
  • user_posted: نشر المستخدم
  • digest: الملخص
  • user_linked: ربط المستخدم
3 إعجابات