i18n for colum/row adding/removing/

pull/6834/head
Jens Ulferts 6 years ago
parent b147966968
commit 1f843ecf17
No known key found for this signature in database
GPG Key ID: 3CAA4B1182CF5308
  1. 6
      config/locales/js-en.yml
  2. 7
      frontend/src/app/modules/grids/context_menus/column.directive.ts
  3. 8
      frontend/src/app/modules/grids/context_menus/row.directive.ts

@ -174,9 +174,13 @@ en:
label_activate: "Activate"
label_activity_no: "Activity entry number %{activityNo}"
label_activity_with_comment_no: "Activity entry number %{activityNo}. Has a user comment."
label_add_column_after: "Add column after"
label_add_column_before: "Add column before"
label_add_columns: "Add columns"
label_add_comment: "Add comment"
label_add_comment_title: "Comment and type @ to notify other people"
label_add_row_after: "Add row after"
label_add_row_before: "Add row before"
label_add_selected_columns: "Add selected columns"
label_added_by: "added by"
label_added_time_by: "Added by %{author} %{age}"
@ -251,7 +255,9 @@ en:
label_visibility_settings: "Visibility settings"
label_quote_comment: "Quote this comment"
label_reset: "Reset"
label_remove_column: "Remove column"
label_remove_columns: "Remove selected columns"
label_remove_row: "Remove row"
label_save_as: "Save as"
label_select_watcher: "Select a watcher..."
label_selected_filter_list: "Selected filters"

@ -76,21 +76,22 @@ export class GridColumnContextMenu extends OpContextMenuTrigger {
// TODO: I18n
this.items = [
{
linkText: "Add column before",
linkText: I18n.t('js.label_add_column_before'),
onClick: () => {
grid.addColumn(columnNumber - 1);
return true;
}
},
{
linkText: "Add column after",
linkText: I18n.t('js.label_add_column_after'),
onClick: () => {
grid.addColumn(columnNumber);
return true;
}
},
// TODO: do not show if only one column is left
{
linkText: "Remove column",
linkText: I18n.t('js.label_remove_column'),
onClick: () => {
grid.removeColumn(columnNumber);
return true;

@ -73,24 +73,24 @@ export class GridRowContextMenu extends OpContextMenuTrigger {
let grid = this.grid;
let rowNumber = this.rowNumber;
// TODO: I18n
this.items = [
{
linkText: "Add row before",
linkText: I18n.t('js.label_add_row_before'),
onClick: () => {
grid.addRow(rowNumber - 1);
return true;
}
},
{
linkText: "Add row after",
linkText: I18n.t('js.label_add_row_after'),
onClick: () => {
grid.addRow(rowNumber);
return true;
}
},
// TODO: do not show if only one row left
{
linkText: "Remove row",
linkText: I18n.t('js.label_remove_row'),
onClick: () => {
grid.removeRow(rowNumber);
return true;

Loading…
Cancel
Save