Don
11. Februar 2023 um 08:51
1
Hallo,
Ich habe bis jetzt nicht bemerkt, dass der Text reverted to version bei den Bearbeitungshinweisen nicht übersetzbar ist. Interessanterweise erinnere ich mich, dass dies übersetzbar war, aber jetzt habe ich mir den Dateiverlauf noch einmal angesehen und es scheint, dass es nie übersetzbar war? Oder habe ich etwas übersehen…
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)
Danke
4 „Gefällt mir“
gerhard
(Gerhard Schlager)
11. Februar 2023 um 13:38
3
Danke für die Meldung dieses Problems. Hier ist eine Lösung:
main ← i18n/add-missing-string
opened 01:38PM - 11 Feb 23 UTC
3 „Gefällt mir“