Don
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)
11 فبراير 2023، 1:38م
3
شكرا للإبلاغ عن هذه المشكلة. إليك الحل:
main ← i18n/add-missing-string
opened 01:38PM - 11 Feb 23 UTC
3 إعجابات