From 51a1868d08f930c700dad54237d3b60e3cd19e3a Mon Sep 17 00:00:00 2001 From: Georgy Litvinov Date: Mon, 28 Jun 2021 17:39:15 +0200 Subject: [PATCH] Moved localizations to properties --- .../body/search/search-pagedResults.ftl | 14 ++--- .../webapp/themes/iph/i18n/all.properties | 52 +++++++++++++++++++ .../themes/iph/templates/compilation.ftl | 6 +-- .../themes/iph/templates/elenphAritcle.ftl | 4 +- .../themes/iph/templates/elenphExcerpt.ftl | 16 +++--- .../webapp/themes/iph/templates/footer.ftl | 4 +- .../themes/iph/templates/queryBuilder.ftl | 12 ++--- .../themes/iph/templates/rightPanel.ftl | 6 +-- .../webapp/themes/iph/templates/rubric.ftl | 14 ++--- .../webapp/themes/iph/templates/rubrics.ftl | 4 +- .../themes/iph/templates/searchSelector.ftl | 2 +- .../webapp/themes/iph/templates/text-lib.ftl | 34 +++++------- 12 files changed, 106 insertions(+), 62 deletions(-) diff --git a/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl b/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl index 81e28024d..1bbae3c6e 100644 --- a/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl +++ b/webapp/src/main/webapp/templates/freemarker/body/search/search-pagedResults.ftl @@ -59,11 +59,11 @@
-
@@ -141,12 +141,12 @@ function createNewCompilation() { var excerpts = $('.compilationDraftExcerpt').toArray(); if (excerpts.length == 0){ - alert("Отрывков не найдено."); + alert("${i18n().create_compilation_no_excerpts}"); return; } - var compilationName = window.prompt("Введите название подборки"); + var compilationName = window.prompt("${i18n().create_compilation_enter_name_notification}"); if (!compilationName){ - alert("Для создания подоборки необходимо ввести её название."); + alert("${i18n().create_compilation_no_name_entered_error}"); return; } var iframe = document.createElement("iframe"); @@ -208,13 +208,13 @@ var biblioArr = Array.from(biblioSet); biblioArr.sort(); if (workArr.length > 0 ) { - $('
').insertAfter($('.virtualArticlePart').last()); + $('
').insertAfter($('.virtualArticlePart').last()); for (let value of workArr){ $('.virtualWorks').last().append( '

' + value + '

' ); } } if (biblioArr.length > 0 ) { - $('
').insertAfter($('.virtualArticlePart').last()); + $('
').insertAfter($('.virtualArticlePart').last()); for (let value of biblioArr){ $('.virtualBibliography').last().append( '

' + value + '

' ); } diff --git a/webapp/src/main/webapp/themes/iph/i18n/all.properties b/webapp/src/main/webapp/themes/iph/i18n/all.properties index 2dea86d2d..e889c1d06 100644 --- a/webapp/src/main/webapp/themes/iph/i18n/all.properties +++ b/webapp/src/main/webapp/themes/iph/i18n/all.properties @@ -107,8 +107,60 @@ faculty_memberships = Faculty Memberships edit_mailing_address = Edit Mailing Address add_capitalized = Add +#Design labels +scroll_to_top_label = Наверх +toc_label = Содержание +collapse_something = Свернуть +expand_something = Раскрыть + +user_settings_label = Выберите настройки: +user_settings_always_open_full_doc = Всегда раскрывать документ при открытии +user_settings_always_open_metadata = Всегда раскрывать метаданные при открытии +expand_doc_switch = Раскрыть документ +collapse_doc_switch = Свернуть документ +expand_metadata_switch = Раскрыть метаданные +collapse_metadata_switch = Свернуть метаданные + + literature_excerpt_button_text = Литература literature_all_button_text = Сводная литература sources_excerpt_button_text = Источники sources_all_button_text = Сводные источники +extended_search_label = Расширенный поиск +metadata_label = Метаданные +metadata_query = Поисковый запрос +metadata_relates_to_rubrics = Относится к рубрикам: +metadata_relates_to_issue = Входит в выпуск +metadata_year = Год +metadata_to_rubric = перейти в рубрику +metadata_firstPublication = Первая публикация +metadata_authors = Авторы: +metadata_keywords = Ключевые слова: +metadata_html_text = Текст: +metadata_org_address = Адрес организации: +metadata_in_articles = В составе статей: + +#Philosophical classifier +rubricator_parent_rubric = Родительская рубрика: +rubricator_rubric_order = Порядок рубрики +rubricator_subrubrics = Подрубрики +rubricator_articles_in_subrubrics = Статьи в подрубриках +rubricator_excerpts_in_subrubrics = Отрывки в подрубриках +rubricator_articles_in_rubric = Статьи в данной рубрике +rubricator_excerpts_in_rubric = Отрывки в данной рубрике + +#Extended search form +extended_search_example = Пример заполнения +extended_search_results_on_page = Результатов на страницу +extended_search_clean = Очистить +extended_search_execute_search = Поиск +open_standard_search_form = Стандартная форма поиска + +#Virtual articles creation +show_virtual_article = Показать виртуальную статью +create_compilation_button = Сохранить +create_compilation_no_excerpts = Отрывков не найдено +create_compilation_enter_name_notification = Введите название подобрки +create_compilation_no_name_entered_error = Для создания подоборки необходимо ввести её название + diff --git a/webapp/src/main/webapp/themes/iph/templates/compilation.ftl b/webapp/src/main/webapp/themes/iph/templates/compilation.ftl index df2801d03..73e9704b3 100644 --- a/webapp/src/main/webapp/themes/iph/templates/compilation.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/compilation.ftl @@ -130,19 +130,19 @@ ${scripts.add(' diff --git a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl index ca3f4758f..bd8b287b2 100644 --- a/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl +++ b/webapp/src/main/webapp/themes/iph/templates/rightPanel.ftl @@ -3,12 +3,12 @@ <#include "customsearchpanel.ftl" >