discourse_narrative_bot.new_user_narrative.hello.message
doesn’t accept
%{new_user_tips}
is there a reason for it?
discourse_narrative_bot.new_user_narrative.hello.message
doesn’t accept
%{new_user_tips}
is there a reason for it?
Why should it? You can’t use arbitrary interpolation keys within translations. Only the ones used in the English text and this particular text doesn’t use any interpolation.
not sure what you mean by “arbitrary”.
%{new_user_tips} links to system_messages.usage_tips.text_body_template and can be used in:
system_messages.welcome_user.text_body_template
system_messages.welcome_invite.text_body_template
أنا أيضًا مشوش بشأن هذا الموضوع المتعلق بمفاتيح التداخل الصالحة في القوالب. كنا نخصص قوالب مثل user_notifications.reply_by_email، على سبيل المثال، لنقول…
العنصر الثاني يحتوي على الرابط:
%{base_url}/new-message?username=%{username}&title=Your%20post%20%{topic_title_url_encoded}&body=Regarding%20your%20post%20in%20%{base_url}%{url}
كان هذا قيد الاستخدام لفترة من الوقت ويعمل بشكل مثالي. اليوم نحتاج إلى تغيير النص في user_notifications.reply_by_email، ولكن عند الحفظ نحصل على الخطأ:
مفاتيح التداخل التالية غير صالحة: "username, topic_title_url_encoded"
لماذا هذا القيد الآن، وكيف يمكننا تجاوزه؟