Change the n items to n resource name in record lists
This commit is contained in:
@@ -30,6 +30,9 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.route.single'),
|
||||
resourcePlural: $t('general:label.route.plural')
|
||||
|
||||
}"
|
||||
class="h-100"
|
||||
@search="filterList"
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.connection.single'),
|
||||
resourcePlural: $t('general:label.connection.plural')
|
||||
}"
|
||||
hide-search
|
||||
class="h-100"
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.session.single'),
|
||||
resourcePlural: $t('general:label.session.plural')
|
||||
}"
|
||||
sticky-header
|
||||
hide-search
|
||||
|
||||
@@ -57,6 +57,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.workflow.single'),
|
||||
resourcePlural: $t('general:label.workflow.plural')
|
||||
}"
|
||||
sticky-header
|
||||
class="custom-resource-list-height"
|
||||
|
||||
@@ -58,6 +58,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.application.single'),
|
||||
resourcePlural: $t('general:label.application.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
class="custom-resource-list-height"
|
||||
|
||||
@@ -46,6 +46,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.auth_client.single'),
|
||||
resourcePlural: $t('general:label.auth_client.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
hide-search
|
||||
|
||||
@@ -49,6 +49,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.queue.single'),
|
||||
resourcePlural: $t('general:label.queue.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
class="custom-resource-list-height"
|
||||
|
||||
@@ -67,6 +67,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.role.single'),
|
||||
resourcePlural: $t('general:label.role.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
class="custom-resource-list-height"
|
||||
|
||||
@@ -35,6 +35,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.sensitivity_level.single'),
|
||||
resourcePlural: $t('general:label.sensitivity_level.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
hide-search
|
||||
|
||||
@@ -67,6 +67,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.template.single'),
|
||||
resourcePlural: $t('general:label.template.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
class="custom-resource-list-height"
|
||||
|
||||
@@ -75,6 +75,8 @@
|
||||
singlePluralPagination: 'admin:general.pagination.single',
|
||||
prevPagination: $t('admin:general.pagination.prev'),
|
||||
nextPagination: $t('admin:general.pagination.next'),
|
||||
resourceSingle: $t('general:label.user.single'),
|
||||
resourcePlural: $t('general:label.user.plural'),
|
||||
}"
|
||||
sticky-header
|
||||
class="custom-resource-list-height"
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:label.chart.single'),
|
||||
resourcePlural: $t('general:label.chart.plural'),
|
||||
}"
|
||||
clickable
|
||||
sticky-header
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
:title="module.name || module.handle || module.moduleID"
|
||||
:target="module.name || module.handle || module.moduleID"
|
||||
:resource="`corteza::compose:module/${namespace.namespaceID}/${module.moduleID}`"
|
||||
:button-label="$t('general:label.module')"
|
||||
:button-label="$t('general:label.module.single')"
|
||||
:show-button-icon="false"
|
||||
button-variant="white text-left w-100"
|
||||
/>
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:label.module.single'),
|
||||
resourcePlural: $t('general:label.module.plural'),
|
||||
}"
|
||||
clickable
|
||||
sticky-header
|
||||
@@ -77,7 +79,7 @@
|
||||
<b-dropdown-item>
|
||||
<c-permissions-button
|
||||
:resource="`corteza::compose:module/${namespace.namespaceID}/*`"
|
||||
:button-label="$t('general:label.module')"
|
||||
:button-label="$t('general:label.module.single')"
|
||||
:show-button-icon="false"
|
||||
button-variant="white text-left w-100"
|
||||
/>
|
||||
|
||||
@@ -40,6 +40,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:label.namespace.single'),
|
||||
resourcePlural: $t('general:label.namespace.plural'),
|
||||
}"
|
||||
clickable
|
||||
sticky-header
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:label.privacy_request.single'),
|
||||
resourcePlural: $t('general:label.privacy_request.plural'),
|
||||
}"
|
||||
:is-item-selectable="isItemSelectable"
|
||||
selectable
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:label.sensitive_module.single'),
|
||||
resourcePlural: $t('general:label.sensitive_module.plural'),
|
||||
}"
|
||||
clickable
|
||||
hide-total
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:label.report.single'),
|
||||
resourcePlural: $t('general:label.report.plural')
|
||||
}"
|
||||
sticky-header
|
||||
clickable
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
singlePluralPagination: 'general:resourceList.pagination.single',
|
||||
prevPagination: $t('general:resourceList.pagination.prev'),
|
||||
nextPagination: $t('general:resourceList.pagination.next'),
|
||||
resourceSingle: $t('general:workflow.single'),
|
||||
resourcePlural: $t('general:workflow.plural')
|
||||
}"
|
||||
clickable
|
||||
sticky-header
|
||||
|
||||
@@ -318,6 +318,7 @@ export default {
|
||||
from: ((page - 1) * limit) + 1,
|
||||
to: limit > 0 ? Math.min((page * limit), total) : total,
|
||||
count: total,
|
||||
data: total == 1 ? this.translations.resourceSingle : this.translations.resourcePlural
|
||||
}
|
||||
|
||||
return this.$t(this.translations[total > limit ? 'showingPagination' : 'singlePluralPagination'], pagination)
|
||||
|
||||
@@ -84,10 +84,10 @@ general:
|
||||
noAccess: You do not have permissions to access Admin panel
|
||||
pagination:
|
||||
next: Next
|
||||
prev: Prev
|
||||
showing: '{{from}} - {{to}} of {{count}} items'
|
||||
single: One item
|
||||
single_plural: '{{count}} items'
|
||||
prev: Previous
|
||||
showing: '{{from}} - {{to}} of {{count}} {{data}}'
|
||||
single: 'One {{data}}'
|
||||
single_plural: '{{count}} {{data}}'
|
||||
navigation:
|
||||
adminPanel: Admin panel
|
||||
automation: Automation
|
||||
|
||||
@@ -1,4 +1,37 @@
|
||||
label:
|
||||
template:
|
||||
single: Template
|
||||
plural: Templates
|
||||
user:
|
||||
single: User
|
||||
plural: Users
|
||||
role:
|
||||
single: Role
|
||||
plural: Roles
|
||||
application:
|
||||
single: Application
|
||||
plural: Applications
|
||||
auth_client:
|
||||
single: Auth Client
|
||||
plural: Auth Clients
|
||||
queue:
|
||||
single: Messaging Queue
|
||||
plural: Messaging Queues
|
||||
route:
|
||||
single: Route
|
||||
plural: Routes
|
||||
connection:
|
||||
single: Database Connection
|
||||
plural: Database Connections
|
||||
sensitivity_level:
|
||||
single: Sensitivity Level
|
||||
plural: Sensitivity Levels
|
||||
session:
|
||||
single: Session
|
||||
plural: Sessions
|
||||
workflow:
|
||||
single: Workflow
|
||||
plural: Workflows
|
||||
plus-add: + Add
|
||||
clear: Clear
|
||||
none: None
|
||||
|
||||
@@ -39,7 +39,6 @@ label:
|
||||
importPlaceholder: Upload files to import
|
||||
loading: Loading
|
||||
makeDefault: Make default
|
||||
module: Module
|
||||
moduleName: Module name
|
||||
multi: Multi
|
||||
name: Name
|
||||
@@ -80,6 +79,15 @@ label:
|
||||
validation: Validation
|
||||
view: View
|
||||
yes: Yes
|
||||
chart:
|
||||
single: Chart
|
||||
plural: Charts
|
||||
namespace:
|
||||
single: Namespace
|
||||
plural: Namespaces
|
||||
module:
|
||||
single: Module
|
||||
plural: Modules
|
||||
navigation:
|
||||
chart: Charts
|
||||
namespace: Namespaces
|
||||
@@ -148,9 +156,9 @@ resourceList:
|
||||
pagination:
|
||||
next: Next
|
||||
prev: Previous
|
||||
showing: '{{from}} - {{to}} of {{count}} items'
|
||||
single: One item
|
||||
single_plural: '{{count}} items'
|
||||
showing: '{{from}} - {{to}} of {{count}} {{data}}'
|
||||
single: 'One {{data}}'
|
||||
single_plural: '{{count}} {{data}}'
|
||||
recordNavigation:
|
||||
next: Next record
|
||||
prev: Previous record
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
label:
|
||||
back: Back
|
||||
privacy_request:
|
||||
single: Privacy Request
|
||||
plural: Privacy Requests
|
||||
sensitive_module:
|
||||
single: Sensitive Module
|
||||
plural: Sensitive Modules
|
||||
|
||||
resourceList:
|
||||
loading: Loading
|
||||
@@ -10,6 +16,6 @@ resourceList:
|
||||
pagination:
|
||||
next: Next
|
||||
prev: Previous
|
||||
showing: '{{from}} - {{to}} of {{count}} items'
|
||||
single: One item
|
||||
single_plural: '{{count}} items'
|
||||
showing: '{{from}} - {{to}} of {{count}} {{data}}'
|
||||
single: 'One {{data}}'
|
||||
single_plural: '{{count}} {{data}}'
|
||||
|
||||
@@ -18,12 +18,16 @@ label:
|
||||
today: Today
|
||||
urlPlaceholder: https://example.tld
|
||||
default: Default
|
||||
report:
|
||||
single: Report
|
||||
plural: Reports
|
||||
|
||||
resourceList:
|
||||
notFound: Not found
|
||||
noItems: No items to show
|
||||
pagination:
|
||||
next: Next
|
||||
prev: Previous
|
||||
showing: '{{from}} - {{to}} of {{count}} items'
|
||||
single: One item
|
||||
single_plural: '{{count}} items'
|
||||
showing: '{{from}} - {{to}} of {{count}} {{data}}'
|
||||
single: 'One {{data}}'
|
||||
single_plural: '{{count}} {{data}}'
|
||||
|
||||
@@ -31,6 +31,9 @@ only: Only
|
||||
including: Including
|
||||
unnamed-workflow: Unnamed Workflow
|
||||
workflow-list: List of Workflows
|
||||
workflow:
|
||||
single: Workflow
|
||||
plural: Workflows
|
||||
save: Save
|
||||
today: Today
|
||||
cancel: Cancel
|
||||
@@ -40,9 +43,9 @@ resourceList:
|
||||
pagination:
|
||||
next: Next
|
||||
prev: Previous
|
||||
showing: '{{from}} - {{to}} of {{count}} items'
|
||||
single: One item
|
||||
single_plural: '{{count}} items'
|
||||
showing: '{{from}} - {{to}} of {{count}} {{data}}'
|
||||
single: 'One {{data}}'
|
||||
single_plural: '{{count}} {{data}}'
|
||||
|
||||
tooltip:
|
||||
permissions: Workflow permissions
|
||||
|
||||
Reference in New Issue
Block a user