Skip to content

Commit

Permalink
VCST-2207: fix localization (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegoO authored Dec 30, 2024
1 parent 333f3d6 commit ebc7260
Show file tree
Hide file tree
Showing 15 changed files with 347 additions and 288 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Bewertungen und Rezensionen",
"blades": {
"review-list": {
"title": "Produktbewertungen",
Expand All @@ -8,6 +9,9 @@
"rating": "Bewertung",
"review": "Rezension",
"modifiedDate": "Zuletzt aktualisiert",
"createdDate": "Erstellungsdatum",
"createdBy": "Erstellt von",
"status": "Status",
"no-review": "Keine Bewertungen gefunden"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Rezension",
"labels": {
"title": "Titel",
"content": "Inhalt",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Rating and reviews",
"blades": {
"review-list": {
"title": "Product reviews",
Expand All @@ -8,6 +9,9 @@
"rating": "Rating",
"review": "Review",
"modifiedDate": "Last updated",
"createdDate": "Created Date",
"createdBy": "Created By",
"status": "Status",
"no-review": "No reviews found"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Review",
"labels": {
"title": "Title",
"content": "Content",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Calificación y reseñas",
"blades": {
"review-list": {
"title": "Reseñas de productos",
Expand All @@ -8,6 +9,9 @@
"rating": "Calificación",
"review": "Reseña",
"modifiedDate": "Última actualización",
"createdDate": "Fecha de creación",
"createdBy": "Creado por",
"status": "Estado",
"no-review": "No se encontraron reseñas"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Reseña",
"labels": {
"title": "Título",
"content": "Contenido",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Évaluation et avis",
"blades": {
"review-list": {
"title": "Avis sur le produit",
Expand All @@ -8,6 +9,9 @@
"rating": "Évaluation",
"review": "Avis",
"modifiedDate": "Dernière mise à jour",
"createdDate": "Date de création",
"createdBy": "Créé par",
"status": "Statut",
"no-review": "Aucun avis trouvé"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Avis",
"labels": {
"title": "Titre",
"content": "Contenu",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Valutazioni e recensioni",
"blades": {
"review-list": {
"title": "Recensioni del prodotto",
Expand All @@ -8,6 +9,9 @@
"rating": "Valutazione",
"review": "Recensione",
"modifiedDate": "Ultimo aggiornamento",
"createdDate": "Data di creazione",
"createdBy": "Creato da",
"status": "Stato",
"no-review": "Nessuna recensione trovata"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Recensione",
"labels": {
"title": "Titolo",
"content": "Contenuto",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "評価とレビュー",
"blades": {
"review-list": {
"title": "製品レビュー",
Expand All @@ -8,6 +9,9 @@
"rating": "評価",
"review": "レビュー",
"modifiedDate": "最終更新日",
"createdDate": "作成日",
"createdBy": "作成者",
"status": "ステータス",
"no-review": "レビューが見つかりません"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "レビュー",
"labels": {
"title": "タイトル",
"content": "内容",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Oceny i recenzje",
"blades": {
"review-list": {
"title": "Opinie o produkcie",
Expand All @@ -8,6 +9,9 @@
"rating": "Ocena",
"review": "Recenzja",
"modifiedDate": "Ostatnia aktualizacja",
"createdDate": "Data utworzenia",
"createdBy": "Utworzone przez",
"status": "Status",
"no-review": "Nie znaleziono recenzji"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Recenzja",
"labels": {
"title": "Tytuł",
"content": "Treść",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Avaliações e classificações",
"blades": {
"review-list": {
"title": "Avaliações de produtos",
Expand All @@ -8,6 +9,9 @@
"rating": "Classificação",
"review": "Avaliação",
"modifiedDate": "Última atualização",
"createdDate": "Data de criação",
"createdBy": "Criado por",
"status": "Status",
"no-review": "Nenhuma avaliação encontrada"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Avaliação",
"labels": {
"title": "Título",
"content": "Conteúdo",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "Рейтинг и отзывы",
"blades": {
"review-list": {
"title": "Отзывы о продукте",
Expand All @@ -8,6 +9,9 @@
"rating": "Рейтинг",
"review": "Отзыв",
"modifiedDate": "Последнее обновление",
"createdDate": "Дата создания",
"createdBy": "Создано",
"status": "Статус",
"no-review": "Отзывы не найдены"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "Отзыв",
"labels": {
"title": "Заголовок",
"content": "Содержание",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"customerReviews": {
"main-menu-title": "评分和评论",
"blades": {
"review-list": {
"title": "产品评论",
Expand All @@ -8,6 +9,9 @@
"rating": "评分",
"review": "评论",
"modifiedDate": "最后更新",
"createdDate": "创建日期",
"createdBy": "创建者",
"status": "状态",
"no-review": "未找到评论"
},
"placeholders": {
Expand All @@ -21,6 +25,7 @@
}
},
"review-detail": {
"title": "评论",
"labels": {
"title": "标题",
"content": "内容",
Expand Down Expand Up @@ -119,4 +124,4 @@
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ angular.module(moduleTemplateName, [])
var menuItemNewReviews = {
path: 'browse/customerReviewsNew',
icon: 'fa fa-comments',
title: 'Rating and Reviews',
title: 'customerReviews.main-menu-title',
priority: 100,
action: function () { $state.go('workspace.customerReviews') },
permission: 'customerReviews:read'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ angular.module('VirtoCommerce.CustomerReviews')
id: 'reviewDetails',
currentEntityId: data.id,
currentEntity: angular.copy(data),
title: 'Customer review',
title: 'customerReviews.blades.review-detail.title',
controller: 'VirtoCommerce.CustomerReviews.reviewDetailController',
template: 'Modules/$(VirtoCommerce.CustomerReviews)/Scripts/blades/review-detail.tpl.html'
};
bladeNavigationService.showBlade(newBlade, blade);
}

blade.headIcon = 'fa fa-comments';
blade.title = 'Rating and Reviews';
blade.title = 'customerReviews.main-menu-title';

blade.toolbarCommands = [
{
name: "platform.commands.refresh", icon: 'fa fa-refresh',
name: 'platform.commands.refresh',
icon: 'fa fa-refresh',
executeMethod: blade.refresh,
canExecuteMethod: function () {
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,11 @@
rowTemplate: 'list.row.html',
columnDefs: [
{ name: 'actions', displayName: '', enableColumnResizing: false, enableSorting: false, width: 30, cellTemplate: 'list-actions.cell.html', pinnedLeft:true },
{ name: 'title', displayName: 'Title' },
{ name: 'rating', displayName: 'Rating', cellTemplate: 'rating.cell.html' },
{ name: 'createdDate', displayName: 'Created Date', sort: { direction: uiGridConstants.DESC }},
{ name: 'entityName', displayName: 'Name' },
{ name: 'reviewStatus', displayName: 'Status' },
{ name: 'userName', displayName: 'Created By' }
{ name: 'title', displayName: 'customerReviews.blades.review-list.labels.title' },
{ name: 'rating', displayName: 'customerReviews.blades.review-list.labels.rating', cellTemplate: 'rating.cell.html' },
{ name: 'createdDate', displayName: 'customerReviews.blades.review-list.labels.createdDate', sort: { direction: uiGridConstants.DESC }},
{ name: 'reviewStatus', displayName: 'customerReviews.blades.review-list.labels.status' },
{ name: 'userName', displayName: 'customerReviews.blades.review-list.labels.createdBy' }
]})">
<div ui-grid="gridOptions" ui-grid-auto-resize ui-grid-save-state ui-grid-resize-columns ui-grid-move-columns ui-grid-pinning ui-grid-height></div>
<ul class="menu __context" role="menu" id="rev_menu">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ angular.module('VirtoCommerce.CustomerReviews')

var newBlade = {
id: 'sellerReviewsList',
title: 'Customer review',
title: 'customerReviews.blades.review-detail.title',
controller: 'VirtoCommerce.CustomerReviews.reviewsListController',
template: 'Modules/$(VirtoCommerce.CustomerReviews)/Scripts/blades/reviews-list.tpl.html',
filter: { entityIds: [productId], entityType: 'Product' }
Expand Down
Loading

0 comments on commit ebc7260

Please sign in to comment.