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"
왜 갑자기 이런 제한이 생겼으며, 이를 우회하는 방법은 무엇인가요?