Skip to content

Commit

Permalink
[#48274] Text changes for Work packages export modal with settings & …
Browse files Browse the repository at this point in the history
  • Loading branch information
as-op committed Aug 27, 2024
1 parent 089158d commit 96b5eb8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
selected: selected_columns,
protected: protected_options,
inputCaption: caption,
inputLabel: I18n.t(:"queries.configure_view.columns.input_label"),
inputLabel: label,
inputPlaceholder: I18n.t(:"queries.configure_view.columns.input_placeholder"),
dragAreaLabel: I18n.t(:"queries.configure_view.columns.drag_area_label"),
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ module Exports
class ColumnSelectionComponent < ApplicationComponent
include WorkPackagesHelper

attr_reader :query, :id, :caption
attr_reader :query, :id, :caption, :label

def initialize(query, id, caption)
def initialize(query, id, caption,
label = I18n.t(:"queries.configure_view.columns.input_label"))
super()

@query = query
@id = id
@caption = caption
@label = label
end

def available_columns
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<%= render WorkPackages::Exports::ColumnSelectionComponent.new(
query,
"columns-select-export-pdf-report",
I18n.t("export.dialog.columns.input_caption_report")
I18n.t("export.dialog.columns.input_caption_report"),
I18n.t("export.dialog.columns.input_label_report")
) %>
<% end %>
<% container.with_row do |_columns| %>
Expand Down
3 changes: 2 additions & 1 deletion config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,8 @@ en:
xls:
label: "XLS"
columns:
input_caption_report: "By default all attributes added as columns in the work package list are selected."
input_label_report: "Add columns to attribute table"
input_caption_report: "By default all attributes added as columns in the work package list are selected. Long text fields are not available in the attribute table, but can be displayed below it."
input_caption_table: "By default all attributes added as columns in the work package list are selected. Long text fields are not available in table based exports."
pdf:
export_type:
Expand Down

0 comments on commit 96b5eb8

Please sign in to comment.