새 주제 + 답변: 일회성 텍스트 구분

맞습니다. 새 주제와 답글 모두에서 동일한 번역 키 js.composer.reply_placeholder를 공유하고 있습니다.

제가 아는 한, 별도의 키를 요청한 사례는 아직 없습니다.

그럼에도 불구하고 현재는 사이트에서 직접 커스터마이징할 수 있습니다.

테마의 common > header 탭에 다음 내용을 추가하면 원하는 결과를 얻을 수 있을 것입니다.

<script type="text/discourse-plugin" version="0.8">
// options you can change
const placeHolderForReplies = "CHANGE_THIS_TEXT_BUT_KEEP_THE_QUOTES";

// no need to change anything below this line.
const discourseComputed = require("discourse-common/utils/decorators").default;

const currentLocale = I18n.currentLocale();
I18n.translations[currentLocale].js.composer.custom_reply_placeholder =
  placeHolderForReplies;

api.modifyClass("component:composer-editor", {
  @discourseComputed
  replyPlaceholder() {
    return this.topic ? "composer.custom_reply_placeholder" : this._super(...arguments);
  }
});
</script>

두 번째 줄에서 답글 플레이스홀더 텍스트를 변경할 수 있습니다. 답글인 경우 사이트에는 해당 텍스트가 표시되고… 그렇지 않은 경우 Discourse는 js.composer.reply_placeholder 번역 키에 설정한 기본값으로 되돌아갑니다.

4개의 좋아요