From 7a55e0b0b6c18cb386149cec1e854384609e2860 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Mon, 28 Oct 2024 14:56:22 +0100 Subject: [PATCH] Remove unscoped "Comment" i18n key [WIP] --- config/locales/ca.yml | 3 --- config/locales/de.yml | 3 --- config/locales/en.yml | 3 --- config/locales/es.yml | 3 --- config/locales/fr.yml | 3 --- config/locales/it.yml | 3 --- config/locales/mk.yml | 3 --- config/locales/pl.yml | 5 ----- config/locales/sk.yml | 5 ----- config/locales/sv-SE.yml | 3 --- config/locales/vi.yml | 3 --- config/locales/zh-CN.yml | 3 --- config/locales/zh-TW.yml | 3 --- lib/active_admin/orm/active_record/comments.rb | 1 - 14 files changed, 44 deletions(-) diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 7e4343e7ed7..b8be4798c7b 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -1,9 +1,6 @@ ca: activerecord: models: - comment: - one: "Comentari" - other: "Comentaris" active_admin/comment: one: "Comentari" other: "Comentaris" diff --git a/config/locales/de.yml b/config/locales/de.yml index 7fb8df26e06..057b912e7ea 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1,9 +1,6 @@ de: activerecord: models: - comment: - one: "Kommentar" - other: "Kommentare" active_admin/comment: one: "Kommentar" other: "Kommentare" diff --git a/config/locales/en.yml b/config/locales/en.yml index 47862d465e5..a7779d0cfe9 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,9 +1,6 @@ en: activerecord: models: - comment: - one: "Comment" - other: "Comments" active_admin/comment: one: "Comment" other: "Comments" diff --git a/config/locales/es.yml b/config/locales/es.yml index c39ddb4c544..83d81f21d89 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -1,9 +1,6 @@ es: activerecord: models: - comment: - one: "Comentario" - other: "Comentarios" active_admin/comment: one: "Comentario" other: "Comentarios" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 351a05d34fb..fee0aace5d9 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1,9 +1,6 @@ fr: activerecord: models: - comment: - one: "Commentaire" - other: "Commentaires" active_admin/comment: one: "Commentaire" other: "Commentaires" diff --git a/config/locales/it.yml b/config/locales/it.yml index 07ac2b92a6e..6a7d24feccf 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -1,9 +1,6 @@ it: activerecord: models: - comment: - one: "Commento" - other: "Commenti" active_admin/comment: one: "Commento" other: "Commenti" diff --git a/config/locales/mk.yml b/config/locales/mk.yml index a250d1abcd2..21229ac4a92 100644 --- a/config/locales/mk.yml +++ b/config/locales/mk.yml @@ -1,9 +1,6 @@ mk: activerecord: models: - comment: - one: "Коментар" - other: "Коментари" active_admin/comment: one: "Коментар" other: "Коментари" diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 9f6b31bdeb7..f35a84bf141 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -1,11 +1,6 @@ pl: activerecord: models: - comment: - one: "Komentarz" - few: "Komentarze" - many: "Komentarzy" - other: "Komentarze" active_admin/comment: one: "Komentarz" few: "Komentarze" diff --git a/config/locales/sk.yml b/config/locales/sk.yml index 8fe1e440d9e..6806b6f66ff 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -1,11 +1,6 @@ sk: activerecord: models: - comment: - one: "Komentár" - few: "Komentáre" - many: "Komentárov" - other: "Komentáre" active_admin/comment: one: "Komentár" few: "Komentáre" diff --git a/config/locales/sv-SE.yml b/config/locales/sv-SE.yml index 52f44176c15..c618a5acd34 100644 --- a/config/locales/sv-SE.yml +++ b/config/locales/sv-SE.yml @@ -1,9 +1,6 @@ "sv-SE": activerecord: models: - comment: - one: "Kommentar" - other: "Kommentarer" active_admin/comment: one: "Kommentar" other: "Kommentarer" diff --git a/config/locales/vi.yml b/config/locales/vi.yml index ad2c7b06057..49eb6991ea1 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -1,9 +1,6 @@ vi: activerecord: models: - comment: - one: "Bình luận" - other: "Các bình luận" active_admin/comment: one: "Bình luận" other: "Các bình luận" diff --git a/config/locales/zh-CN.yml b/config/locales/zh-CN.yml index 35ed684a47e..d7f6851fa69 100644 --- a/config/locales/zh-CN.yml +++ b/config/locales/zh-CN.yml @@ -1,9 +1,6 @@ "zh-CN": activerecord: models: - comment: - one: "评论" - other: "评论" active_admin/comment: one: "评论" other: "评论" diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml index 4c67ebff876..f86764edc27 100644 --- a/config/locales/zh-TW.yml +++ b/config/locales/zh-TW.yml @@ -1,9 +1,6 @@ "zh-TW": activerecord: models: - comment: - one: "評論" - other: "評論" active_admin/comment: one: "評論" other: "評論" diff --git a/lib/active_admin/orm/active_record/comments.rb b/lib/active_admin/orm/active_record/comments.rb index 5f0cc82e1df..e33c31d45b2 100644 --- a/lib/active_admin/orm/active_record/comments.rb +++ b/lib/active_admin/orm/active_record/comments.rb @@ -17,7 +17,6 @@ ActiveAdmin.autoload :Comment, "active_admin/orm/active_record/comments/comment" # Hint i18n-tasks about model and attribute translations used by default install -# i18n-tasks-use t('activerecord.models.comment') # i18n-tasks-use t('activerecord.models.active_admin/comment') # i18n-tasks-use t('activerecord.attributes.active_admin/comment.author_type') # i18n-tasks-use t('activerecord.attributes.active_admin/comment.body')