Don
2월 11, 2023, 8:51오전
1
안녕하세요,
지금까지 편집 사유에서 reverted to version 텍스트가 번역될 수 없다는 사실을 인지하지 못했습니다. 흥미롭게도, 이 텍스트가 번역될 수 있다고 기억하는데, 파일 히스토리를 다시 확인해 보니 항상 번역이 불가능했던 것 같습니다? 아니면 제가 무언가를 놓친 건가요…
if post.is_first_post?
changes[:title] = post_revision.modifications["title"][0] if post_revision.modifications[
"title"
].present? && post_revision.modifications["title"][0] != topic.title
changes[:category_id] = post_revision.modifications["category_id"][
0
] if post_revision.modifications["category_id"].present? &&
post_revision.modifications["category_id"][0] != topic.category.id
end
return render_json_error(I18n.t("revert_version_same")) unless changes.length > 0
changes[:edit_reason] = "reverted to version ##{post_revision.number.to_i - 1}"
revisor = PostRevisor.new(post, topic)
revisor.revise!(current_user, changes)
return render_json_error(post) if post.errors.present?
return render_json_error(topic) if topic.errors.present?
post_serializer = PostSerializer.new(post, scope: guardian, root: false)
post_serializer.draft_sequence = DraftSequence.current(current_user, topic.draft_key)
감사합니다
4개의 좋아요
gerhard
(Gerhard Schlager)
2월 11, 2023, 1:38오후
3
해당 문제를 보고해 주셔서 감사합니다. 수정 방법은 다음과 같습니다:
main ← i18n/add-missing-string
merged 01:50PM - 11 Feb 23 UTC
3개의 좋아요