OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Translate WikiPage text attribute
Alexander5321e7b2f8d1
diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 6afc1a5f172..9a7baf77d1a 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -1131,6 +1131,7 @@ en:wiki_page:parent_title: "Parent page"redirect_existing_links: "Redirect existing links"+ text: "Page content"work_package:begin_insertion: "Begin of the insertion"begin_deletion: "Begin of the deletion"diff --git a/spec/features/activities/wiki_activity_spec.rb b/spec/features/activities/wiki_activity_spec.rbindex 42106890b3c..041e9ba89c0 100644--- a/spec/features/activities/wiki_activity_spec.rb+++ b/spec/features/activities/wiki_activity_spec.rb@@ -82,7 +82,7 @@ RSpec.describe "Wiki Activity", :js dowithin("li.op-activity-list--item", match: :first) doexpect(page)- .to have_css("li", text: "Text changed (Details)")+ .to have_css("li", text: "Page content changed (Details)")expect(page).to have_link("Details")enddiff --git a/spec/lib/journal_formatter/wiki_diff_spec.rb b/spec/lib/journal_formatter/wiki_diff_spec.rbindex 08ae7ca1ece..3cad120eb3f 100644--- a/spec/lib/journal_formatter/wiki_diff_spec.rb+++ b/spec/lib/journal_formatter/wiki_diff_spec.rb@@ -53,6 +53,7 @@ RSpec.describe OpenProject::JournalFormatter::WikiDiff doendlet(:wiki_instance) { klass.new(wiki_journal) }let(:wiki_key) { "text" }+ let(:wiki_attribute_name) { WikiPage.human_attribute_name(wiki_key) }let(:path) do # pathurl_helper.wiki_diff_compare_project_wiki_path(id: wiki_page.slug,project_id: project.identifier,@@ -74,7 +75,7 @@ RSpec.describe OpenProject::JournalFormatter::WikiDiff dodescribe "a wiki diff for a wiki journal correctly" dolet(:expected) doI18n.t(:text_journal_changed_with_diff,- label: "<strong>#{wiki_key.camelize}</strong>",+ label: "<strong>#{wiki_attribute_name}</strong>",link:)end