From 82b63a7109668988ef75a179f72df055173cda4d Mon Sep 17 00:00:00 2001 From: Nicolas Vazquez Date: Wed, 15 Jul 2020 06:27:17 -0300 Subject: [PATCH] locales: Add missing internationlization to search and pagination (#531) Missing internationalization on the search bar and pagination "Showing X results" and pagination dropdown on various views. Signed-off-by: Rohit Yadav --- ui/src/components/view/InfoCard.vue | 2 +- ui/src/components/view/ListResourceTable.vue | 8 +++++-- ui/src/components/view/SearchView.vue | 2 +- ui/src/locales/en.json | 5 ++++ ui/src/locales/es.json | 5 ++++ ui/src/views/AutogenView.vue | 8 +++++-- ui/src/views/compute/MigrateWizard.vue | 8 +++++-- .../compute/wizard/AffinityGroupSelection.vue | 8 +++++-- .../wizard/ComputeOfferingSelection.vue | 8 +++++-- .../compute/wizard/DiskOfferingSelection.vue | 8 +++++-- .../views/compute/wizard/NetworkSelection.vue | 8 +++++-- .../compute/wizard/SshKeyPairSelection.vue | 8 +++++-- .../compute/wizard/TemplateIsoRadioGroup.vue | 8 +++++-- ui/src/views/image/IsoZones.vue | 8 +++++-- ui/src/views/image/TemplateZones.vue | 8 +++++-- .../views/infra/network/DedicatedVLANTab.vue | 8 +++++-- .../infra/network/IpRangesTabManagement.vue | 8 +++++-- .../views/infra/network/IpRangesTabPublic.vue | 8 +++++-- .../infra/network/IpRangesTabStorage.vue | 8 +++++-- .../network/providers/ProviderListView.vue | 8 +++++-- ui/src/views/network/EgressRulesTab.vue | 8 +++++-- ui/src/views/network/EnableStaticNat.vue | 8 +++++-- ui/src/views/network/FirewallRules.vue | 8 +++++-- .../views/network/InternalLBAssignVmForm.vue | 8 +++++-- .../views/network/InternalLBAssignedVmTab.vue | 9 ++++--- ui/src/views/network/IpAddressesTab.vue | 8 +++++-- ui/src/views/network/LoadBalancing.vue | 16 +++++++++---- ui/src/views/network/PortForwarding.vue | 16 +++++++++---- ui/src/views/network/VpcTab.vue | 24 ++++++++++++++----- ui/src/views/network/VpcTiersTab.vue | 16 +++++++++---- ui/src/views/project/AccountsTab.vue | 8 +++++-- ui/src/views/project/InvitationsTemplate.vue | 8 +++++-- 32 files changed, 210 insertions(+), 69 deletions(-) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 9be6ac8868b..4cad5c813f4 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -617,7 +617,7 @@ rows="4" @change="handleNoteChange" :value="annotation" - placeholder="Add Note" /> + :placeholder="$t('label.add.note')" /> + showSizeChanger> + + diff --git a/ui/src/components/view/SearchView.vue b/ui/src/components/view/SearchView.vue index 5d162f531e9..7319a8c9b65 100644 --- a/ui/src/components/view/SearchView.vue +++ b/ui/src/components/view/SearchView.vue @@ -32,7 +32,7 @@ + showQuickJumper> + + diff --git a/ui/src/views/compute/MigrateWizard.vue b/ui/src/views/compute/MigrateWizard.vue index 74d7e656dfd..c0997d3a7d3 100644 --- a/ui/src/views/compute/MigrateWizard.vue +++ b/ui/src/views/compute/MigrateWizard.vue @@ -61,11 +61,15 @@ :current="page" :pageSize="pageSize" :total="totalCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100']" @change="handleChangePage" @showSizeChange="handleChangePageSize" - showSizeChanger/> + showSizeChanger> + +
diff --git a/ui/src/views/compute/wizard/AffinityGroupSelection.vue b/ui/src/views/compute/wizard/AffinityGroupSelection.vue index 8c6d5e9f480..2f7aed7d6bb 100644 --- a/ui/src/views/compute/wizard/AffinityGroupSelection.vue +++ b/ui/src/views/compute/wizard/AffinityGroupSelection.vue @@ -41,11 +41,15 @@ :current="options.page" :pageSize="options.pageSize" :total="rowCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100', '500']" @change="onChangePage" @showSizeChange="onChangePageSize" - showSizeChanger /> + showSizeChanger> + +
diff --git a/ui/src/views/compute/wizard/ComputeOfferingSelection.vue b/ui/src/views/compute/wizard/ComputeOfferingSelection.vue index 432fdb1aa7a..90b45b55fcd 100644 --- a/ui/src/views/compute/wizard/ComputeOfferingSelection.vue +++ b/ui/src/views/compute/wizard/ComputeOfferingSelection.vue @@ -41,11 +41,15 @@ :current="options.page" :pageSize="options.pageSize" :total="rowCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100', '500']" @change="onChangePage" @showSizeChange="onChangePageSize" - showSizeChanger /> + showSizeChanger> + + diff --git a/ui/src/views/compute/wizard/DiskOfferingSelection.vue b/ui/src/views/compute/wizard/DiskOfferingSelection.vue index 90356e0dcc6..4d5b627c611 100644 --- a/ui/src/views/compute/wizard/DiskOfferingSelection.vue +++ b/ui/src/views/compute/wizard/DiskOfferingSelection.vue @@ -52,11 +52,15 @@ :current="options.page" :pageSize="options.pageSize" :total="rowCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100', '500']" @change="onChangePage" @showSizeChange="onChangePageSize" - showSizeChanger /> + showSizeChanger> + + diff --git a/ui/src/views/compute/wizard/NetworkSelection.vue b/ui/src/views/compute/wizard/NetworkSelection.vue index 2baf4c3db98..e0f2531a4b3 100644 --- a/ui/src/views/compute/wizard/NetworkSelection.vue +++ b/ui/src/views/compute/wizard/NetworkSelection.vue @@ -57,11 +57,15 @@ :current="options.page" :pageSize="options.pageSize" :total="rowCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100', '500']" @change="onChangePage" @showSizeChange="onChangePageSize" - showSizeChanger /> + showSizeChanger> + + + showSizeChanger> + + diff --git a/ui/src/views/compute/wizard/TemplateIsoRadioGroup.vue b/ui/src/views/compute/wizard/TemplateIsoRadioGroup.vue index 5213d2e6a0c..1002e466684 100644 --- a/ui/src/views/compute/wizard/TemplateIsoRadioGroup.vue +++ b/ui/src/views/compute/wizard/TemplateIsoRadioGroup.vue @@ -48,11 +48,15 @@ :current="page" :pageSize="pageSize" :total="itemCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100', '500']" @change="onChangePage" @showSizeChange="onChangePageSize" - showSizeChanger /> + showSizeChanger> + + diff --git a/ui/src/views/image/IsoZones.vue b/ui/src/views/image/IsoZones.vue index 3dcd960dc67..3c0ade9e74a 100644 --- a/ui/src/views/image/IsoZones.vue +++ b/ui/src/views/image/IsoZones.vue @@ -62,11 +62,15 @@ :current="page" :pageSize="pageSize" :total="itemCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100']" @change="handleChangePage" @showSizeChange="handleChangePageSize" - showSizeChanger/> + showSizeChanger> + + + showSizeChanger> + + + showSizeChanger> + + diff --git a/ui/src/views/infra/network/IpRangesTabManagement.vue b/ui/src/views/infra/network/IpRangesTabManagement.vue index fedff881e77..fa0fe366ff4 100644 --- a/ui/src/views/infra/network/IpRangesTabManagement.vue +++ b/ui/src/views/infra/network/IpRangesTabManagement.vue @@ -58,11 +58,15 @@ :current="page" :pageSize="pageSize" :total="items.length" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100']" @change="changePage" @showSizeChange="changePageSize" - showSizeChanger/> + showSizeChanger> + + + showSizeChanger> + +
diff --git a/ui/src/views/infra/network/IpRangesTabStorage.vue b/ui/src/views/infra/network/IpRangesTabStorage.vue index 9495649d419..742221676c8 100644 --- a/ui/src/views/infra/network/IpRangesTabStorage.vue +++ b/ui/src/views/infra/network/IpRangesTabStorage.vue @@ -56,11 +56,15 @@ :current="page" :pageSize="pageSize" :total="items.length" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100']" @change="changePage" @showSizeChange="changePageSize" - showSizeChanger/> + showSizeChanger> + + + showQuickJumper> + +
diff --git a/ui/src/views/network/EgressRulesTab.vue b/ui/src/views/network/EgressRulesTab.vue index 1175bc7f238..cfa23133f1f 100644 --- a/ui/src/views/network/EgressRulesTab.vue +++ b/ui/src/views/network/EgressRulesTab.vue @@ -87,11 +87,15 @@ :current="page" :pageSize="pageSize" :total="totalCount" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100']" @change="handleChangePage" @showSizeChange="handleChangePageSize" - showSizeChanger/> + showSizeChanger> + + diff --git a/ui/src/views/network/EnableStaticNat.vue b/ui/src/views/network/EnableStaticNat.vue index ebfc8e34e78..df1f7d300e4 100644 --- a/ui/src/views/network/EnableStaticNat.vue +++ b/ui/src/views/network/EnableStaticNat.vue @@ -74,11 +74,15 @@ :current="page" :pageSize="pageSize" :total="vmsList.length" - :showTotal="total => `Total ${total} items`" + :showTotal="total => `Total ${total} ${$t('label.items')}`" :pageSizeOptions="['10', '20', '40', '80', '100']" @change="changePage" @showSizeChange="changePageSize" - showSizeChanger/> + showSizeChanger> + +