diff --git a/CSETWebNg/src/app/app.module.ts b/CSETWebNg/src/app/app.module.ts index bdac813f70..3fcc545e3c 100644 --- a/CSETWebNg/src/app/app.module.ts +++ b/CSETWebNg/src/app/app.module.ts @@ -1178,13 +1178,10 @@ import { UserLanguageComponent } from './dialogs/user-language/user-language.com useFactory: (configSvc: ConfigService, authSvc: AuthenticationService, tSvc: TranslocoService) => { return () => { return configSvc.loadConfig().then(() => { + // Load and set the language based on config return tSvc.load(configSvc.config.defaultLang).toPromise().then(() => { - - // Set the default language based on config tSvc.setActiveLang(configSvc.config.defaultLang); - return tSvc.load(configSvc.config.defaultLang).toPromise().then(() => { - return authSvc.checkLocal(); - }); + return authSvc.checkLocal(); }); }); }; diff --git a/CSETWebNg/src/app/assessment/navigation/nav-back-next/nav-back-next.component.html b/CSETWebNg/src/app/assessment/navigation/nav-back-next/nav-back-next.component.html index 083409c19f..0d16cfb63e 100644 --- a/CSETWebNg/src/app/assessment/navigation/nav-back-next/nav-back-next.component.html +++ b/CSETWebNg/src/app/assessment/navigation/nav-back-next/nav-back-next.component.html @@ -22,7 +22,7 @@ -------------------------->
- - + +
\ No newline at end of file diff --git a/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions-acet.component.html b/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions-acet.component.html index 64b9c155d1..fcd3d0007f 100644 --- a/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions-acet.component.html +++ b/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions-acet.component.html @@ -26,13 +26,13 @@
- +
diff --git a/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.html b/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.html index e40939437c..684bf65bc0 100644 --- a/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.html +++ b/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.html @@ -20,24 +20,24 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------> -
+
+ matTooltip="{{t('tooltip.answered count')}}"> {{ completionSvc.answeredCount }}/{{ completionSvc.totalCount }}
- +
diff --git a/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.ts b/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.ts index fb7e33455d..0884d1de02 100644 --- a/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.ts +++ b/CSETWebNg/src/app/assessment/questions/maturity-questions/maturity-questions.component.ts @@ -165,7 +165,7 @@ export class MaturityQuestionsComponent implements OnInit { this.filterSvc.maturityModelId = response.modelId; this.filterSvc.maturityModelName = response.modelName; - this.pageTitle = this.questionsAlias + ' - ' + this.modelName; + this.pageTitle = this.tSvc.translate('titles.' + this.questionsAlias.toLowerCase().trim()) + ' - ' + this.modelName; this.glossarySvc.glossaryEntries = response.glossary; this.loaded = true; diff --git a/CSETWebNg/src/app/assessment/questions/question-extras/question-extras.component.html b/CSETWebNg/src/app/assessment/questions/question-extras/question-extras.component.html index aa5287e41a..f15e2f1b1e 100644 --- a/CSETWebNg/src/app/assessment/questions/question-extras/question-extras.component.html +++ b/CSETWebNg/src/app/assessment/questions/question-extras/question-extras.component.html @@ -142,7 +142,7 @@ diff --git a/CSETWebNg/src/app/assessment/questions/questions.component.html b/CSETWebNg/src/app/assessment/questions/questions.component.html index 1aff44b232..b5d1f315cc 100644 --- a/CSETWebNg/src/app/assessment/questions/questions.component.html +++ b/CSETWebNg/src/app/assessment/questions/questions.component.html @@ -20,7 +20,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------> -
+
@@ -42,32 +42,32 @@
-
+
{{ completionSvc.answeredCount }}/{{ completionSvc.totalCount }}
- +
- +
-

Standard Questions

+

{{t('titles.standard questions')}}

Showing Only Filtered Questions
diff --git a/CSETWebNg/src/app/dialogs/question-filters/question-filters.component.html b/CSETWebNg/src/app/dialogs/question-filters/question-filters.component.html index 7aa8db62df..ffd8bd1ac0 100644 --- a/CSETWebNg/src/app/dialogs/question-filters/question-filters.component.html +++ b/CSETWebNg/src/app/dialogs/question-filters/question-filters.component.html @@ -22,7 +22,7 @@ -------------------------->
- + {{ t(question + ' filters') }}
diff --git a/CSETWebNg/src/app/dialogs/user-language/user-language.component.ts b/CSETWebNg/src/app/dialogs/user-language/user-language.component.ts index a1a91f221c..a7d262fd61 100644 --- a/CSETWebNg/src/app/dialogs/user-language/user-language.component.ts +++ b/CSETWebNg/src/app/dialogs/user-language/user-language.component.ts @@ -38,8 +38,10 @@ export class UserLanguageComponent implements OnInit { * */ save() { - this.tSvc.setActiveLang(this.langSelection); - this.authSvc.setUserLang(this.langSelection).subscribe(() => { + this.tSvc.load(this.langSelection).toPromise().then(() => { + this.tSvc.setActiveLang(this.langSelection); + this.authSvc.setUserLang(this.langSelection).subscribe(() => { + }); // }, error => console.error('Error updating user langugage: ' + error.message)); diff --git a/CSETWebNg/src/app/initial/landing-page-tabs/landing-page-tabs.component.html b/CSETWebNg/src/app/initial/landing-page-tabs/landing-page-tabs.component.html index abddf956e0..05d5defd04 100644 --- a/CSETWebNg/src/app/initial/landing-page-tabs/landing-page-tabs.component.html +++ b/CSETWebNg/src/app/initial/landing-page-tabs/landing-page-tabs.component.html @@ -57,7 +57,7 @@
- +
diff --git a/CSETWebNg/src/app/initial/search-page/search-page.component.html b/CSETWebNg/src/app/initial/search-page/search-page.component.html index fd4c7755d1..ac80e4f2e1 100644 --- a/CSETWebNg/src/app/initial/search-page/search-page.component.html +++ b/CSETWebNg/src/app/initial/search-page/search-page.component.html @@ -20,10 +20,10 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. --------------------------> -
-

Search Results

+
+

{{t('titles.search results')}}

- No items were found matching the search request. + {{t('no search results')}}
diff --git a/CSETWebNg/src/assets/i18n/en.json b/CSETWebNg/src/assets/i18n/en.json index cddf3b97e8..9872a9b707 100644 --- a/CSETWebNg/src/assets/i18n/en.json +++ b/CSETWebNg/src/assets/i18n/en.json @@ -27,14 +27,11 @@ "critical service description": "Critical Service Description", "practices": "Practices", "requires review": "Requires Review", - "next": "Next", - "back": "Back", - "expand all": "Expand All", - "collapse all": "Collapse All", - "filter": "Filter", - "reviewed": "Reviewed", "domain": "Domain", "maturity level": "Maturity Level", + "no search results": "No items were found matching the search request.", + "auto load guidance": "Auto-load Guidance", + "buttons": { "ok": "OK", "save": "Save", @@ -51,12 +48,17 @@ "export": "Export", "import": "Import", "export all": "Export All", - "export all to excel": "Export All to Excel" + "export all to excel": "Export All to Excel", + "expand all": "Expand All", + "collapse all": "Collapse All", + "filter": "Filter", + "reviewed": "Reviewed" }, "titles": { "prepare": "Prepare", "assessment": "Assessment", "results": "Results", + "search results": "Search Results", "assessment configuration": "Assessment Configuration", "assessment information": "Assessment Information", "service demographics": "Service Demographics", @@ -175,7 +177,8 @@ "observations": "Observations", "observations with content": "Observations with content", "issues": "Issues", - "issues with content": "Issues with content" + "issues with content": "Issues with content", + "answered count": "Indicates the number of answered questions out of the total for this page" }, "level": { "low": "Low", diff --git a/CSETWebNg/src/assets/i18n/es.json b/CSETWebNg/src/assets/i18n/es.json index 2be5e6cec7..4b2e94141b 100644 --- a/CSETWebNg/src/assets/i18n/es.json +++ b/CSETWebNg/src/assets/i18n/es.json @@ -23,14 +23,10 @@ "demographics": "Demografía", "critical service name": "Nombre del servicio critíco", "critical service description": "Descripción del servicio critíco", - "next": "Siguiente", - "back": "Previo", - "expand all": "Expandir todo", - "collapse all": "Desplegar todo", - "filter": "Filtrar", - "reviewed": "Revisado", "domain": "Dominio", "maturity level": "Nivel de madurez", + "no search results": "No se encontraron artículos que coincidan con la solicitud de búsqueda.", + "auto load guidance": "Carga automática de guía", "contact": { "contacts": "Contactos", @@ -76,6 +72,7 @@ "prepare": "Preparar", "assessment": "Evaluación", "results": "Resultados", + "search results": "Resultados de la búsqueda", "assessment configuration": "Configuración de evaluación", "assessment information": "Información de evaluación", "service demographics": "Demografía del servicio", @@ -115,7 +112,11 @@ "export": "Exportar", "import": "Importar", "export all": "Exportar todo", - "export all to excel": "Exportar todo a Excel" + "export all to excel": "Exportar todo a Excel", + "expand all": "Expandir todo", + "collapse all": "Desplegar todo", + "filter": "Filtrar", + "reviewed": "Revisado" }, "button-label": { "Y": "Sí", @@ -168,7 +169,8 @@ "observations": "[ES] Observations", "observations with content": "[ES] Observations with content", "issues": "[ES] Issues", - "issues with content": "[ES] Issues with content" + "issues with content": "[ES] Issues with content", + "answered count": "Indica el número de preguntas respondidas del total de esta página" }, "level": { "low": "Pequeño", diff --git a/CSETWebNg/src/assets/i18n/uk.json b/CSETWebNg/src/assets/i18n/uk.json index 8342485544..d0a3836881 100644 --- a/CSETWebNg/src/assets/i18n/uk.json +++ b/CSETWebNg/src/assets/i18n/uk.json @@ -1,7 +1,6 @@ { "my assessments": "Мої оцінки", - "import": "Імпорт", - "export all": "Експортувати все", + "tools": "Інструменти", "resource library": "Бібліотека ресурсів", "help": "Довідка", @@ -25,11 +24,14 @@ "assessment type": "Тип оцінки", "demographics": "Демографія", "requires review": "Потребує перегляду", + "no search results": "Не знайдено елементів, що відповідають пошуковому запиту.", + "auto load guidance": "Автоматичне завантаження вказівок", "titles": { "prepare": "Приготуйте", "assessment": "Оцінка", "results": "Результати", + "search results": "Результати пошуку", "assessment configuration": "Конфігурація оцінювання", "assessment information": "Інформація про оцінку", "service demographics": "Service Demographics", @@ -56,8 +58,21 @@ "cancel": "Скасувати", "change": "Змінити", "remove": "Видалити", + "email": "Email", "next": "Далі", - "back": "Назад" + "close": "Close", + "back": "Назад", + "login": "Логін", + "logout": "Вийти", + "analytics": "Аналітика", + "import": "Імпорт", + "export": "Експорт", + "export all": "Експортувати все", + "export all to excel": "???", + "expand all": "Розгорнути все", + "collapse all": "Закрити все", + "filter": "фільтр", + "reviewed": "Переглянуто" }, @@ -108,7 +123,8 @@ "NI-C2M2": "[UK] Not Implemented - Absent; the practice is not performed by the organization", "mfr-flag": "Цей контроль потребує додаткового перегляду", - "requires-review": "Один або кілька елементів керування в цій категорії потребують додаткової перевірки." + "requires-review": "Один або кілька елементів керування в цій категорії потребують додаткової перевірки.", + "answered count": "Вказує кількість запитань із відповідями на цій сторінці" }, "answer-label": { "FI-C2M2": "[UK] Fully Implemented (FI)", diff --git a/CSETWebNg/src/assets/navigation/workflow-omni.xml b/CSETWebNg/src/assets/navigation/workflow-omni.xml index f5cd13679f..fab50ce67e 100644 --- a/CSETWebNg/src/assets/navigation/workflow-omni.xml +++ b/CSETWebNg/src/assets/navigation/workflow-omni.xml @@ -301,7 +301,7 @@ - +