Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into fixMedlineImporterK…
Browse files Browse the repository at this point in the history
…eywword

* upstream/main:
  Fix dependendency issues with commons logging (#11403)
  New Crowdin updates (#11411)
  Fix search result mapping use UIDs instead of hashcodes (#11402)
  New translations jabref_en.properties (Russian) (#11404)

# Conflicts:
#	build.gradle
  • Loading branch information
Siedlerchr committed Jun 22, 2024
2 parents 2d17002 + 7e4e7d3 commit 1b6532c
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 11 deletions.
14 changes: 7 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ dependencies {

def pdfbox = "3.0.2"
implementation ("org.apache.pdfbox:pdfbox:$pdfbox") {
exclude group: 'commons-logging'
exclude group: 'commons-logging'
}
implementation ("org.apache.pdfbox:fontbox:$pdfbox") {
exclude group: 'commons-logging'
exclude group: 'commons-logging'
}
implementation ("org.apache.pdfbox:xmpbox:$pdfbox") {
exclude group: 'org.junit.jupiter'
Expand Down Expand Up @@ -226,7 +226,7 @@ dependencies {
implementation (group: 'com.dlsc.gemsfx', name: 'gemsfx', version: '2.32.0') {
exclude module: 'javax.inject' // Split package, use only jakarta.inject
exclude module: 'commons-lang3'
exclude group: 'org.apache.commons.validator' // creates issues with common-logging
exclude group: 'org.apache.commons.validator'
exclude group: 'org.apache.commons.commons-logging'
exclude group: 'org.openjfx'
exclude group: 'org.apache.logging.log4j'
Expand All @@ -242,10 +242,10 @@ dependencies {
implementation 'com.konghq:unirest-modules-gson:4.4.0'
implementation 'org.apache.httpcomponents.client5:httpclient5:5.3.1'

implementation "org.slf4j:slf4j-api:2.0.13"
implementation "org.tinylog:tinylog-api:2.7.0"
implementation "org.tinylog:slf4j-tinylog:2.7.0"
implementation "org.tinylog:tinylog-impl:2.7.0"
implementation 'org.slf4j:slf4j-api:2.0.13'
implementation 'org.tinylog:tinylog-api:2.7.0'
implementation 'org.tinylog:slf4j-tinylog:2.7.0'
implementation 'org.tinylog:tinylog-impl:2.7.0'

// route all requests to java.util.logging to SLF4J (which in turn routes to tinylog)
implementation 'org.slf4j:jul-to-slf4j:2.0.13'
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/org/jabref/gui/StateManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class StateManager {
private final OptionalObjectProperty<SearchQuery> activeSearchQuery = OptionalObjectProperty.empty();
private final OptionalObjectProperty<SearchQuery> activeGlobalSearchQuery = OptionalObjectProperty.empty();
private final IntegerProperty globalSearchResultSize = new SimpleIntegerProperty(0);
private final ObservableMap<BibDatabaseContext, IntegerProperty> searchResultMap = FXCollections.observableHashMap();
private final ObservableMap<String, IntegerProperty> searchResultMap = FXCollections.observableHashMap();
private final OptionalObjectProperty<Node> focusOwner = OptionalObjectProperty.empty();
private final ObservableList<Pair<BackgroundTask<?>, Task<?>>> backgroundTasks = FXCollections.observableArrayList(task -> new Observable[] {task.getValue().progressProperty(), task.getValue().runningProperty()});
private final EasyBinding<Boolean> anyTaskRunning = EasyBind.reduce(backgroundTasks, tasks -> tasks.map(Pair::getValue).anyMatch(Task::isRunning));
Expand Down Expand Up @@ -103,11 +103,11 @@ public OptionalObjectProperty<SearchQuery> activeSearchQueryProperty() {
}

public void setActiveSearchResultSize(BibDatabaseContext database, IntegerProperty resultSize) {
searchResultMap.put(database, resultSize);
searchResultMap.put(database.getUid(), resultSize);
}

public IntegerProperty getSearchResultSize() {
return searchResultMap.getOrDefault(activeDatabase.getValue().orElse(new BibDatabaseContext()), new SimpleIntegerProperty(0));
return searchResultMap.getOrDefault(activeDatabase.getValue().orElse(new BibDatabaseContext()).getUid(), new SimpleIntegerProperty(0));
}

public OptionalObjectProperty<SearchQuery> activeGlobalSearchQueryProperty() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ public String toString() {
", mode=" + getMode() +
", databasePath=" + getDatabasePath() +
", biblatexMode=" + isBiblatexMode() +
", uid= " + getUid() +
", fulltextIndexPath=" + getFulltextIndexPath() +
'}';
}
Expand All @@ -300,7 +301,7 @@ public int hashCode() {
/**
* Get the generated UID for the current context. Can be used to distinguish contexts with changing metadata etc
* <p>
* This is requried, because of {@link #hashCode()} implementation.
* This is required, because of {@link #hashCode()} implementation.
*
* @return The generated UID in UUIDv4 format with the prefix bibdatabasecontext_
*/
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/l10n/JabRef_pt_BR.properties
Original file line number Diff line number Diff line change
Expand Up @@ -1480,6 +1480,7 @@ Protect\ terms=Proteger termos
Add\ enclosing\ braces=Adicionar chaves de fechamento
Add\ braces\ encapsulating\ the\ complete\ field\ content.=Adicionar chaves encapsulando o conteúdo completo do campo.
Remove\ enclosing\ braces=Remover chaves de fechamento
Remove\ word\ enclosing\ braces=Remover chaves de fechamento de palavras
Removes\ braces\ encapsulating\ a\ complete\ word\ and\ the\ complete\ field\ content.=Remove as chaves que encapsulam uma palavra completa e o conteúdo completo do campo.
Removes\ braces\ encapsulating\ the\ complete\ field\ content.=Remove chaves encapsulando o conteúdo completo do campo.
Removes\ all\ balanced\ {}\ braces\ around\ words.=Remove todas as chaves balanceadas {} em torno das palavras.
Expand Down
32 changes: 32 additions & 0 deletions src/main/resources/l10n/JabRef_ru.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Reveal\ in\ File\ Explorer=Открыть в Проводнике
%0\ matches\ the\ term\ <b>%1</b>=%0 соответствует условию <b>%1</b>

Abbreviate\ journal\ names\ of\ the\ selected\ entries\ (DEFAULT\ abbreviation)=Сокращать названия журналов для выбранных записей (сокращения ПО УМОЛЧАНИЮ)
Abbreviate\ journal\ names\ of\ the\ selected\ entries\ (DOTLESS\ abbreviation)=Сокращения названий журналов для выбранных записей (сокращение БЕЗ ТОЧЕК)
Abbreviate\ journal\ names\ of\ the\ selected\ entries\ (SHORTEST\ UNIQUE\ abbreviation)=Сокращать называния журналов для выбранных записей (КРАТЧАЙШЕЕ УНИКАЛЬНОЕ сокращение)

Abbreviate\ names=Сокращения названий
Expand All @@ -29,6 +30,7 @@ Abbreviations=Аббревиатуры
Unabbreviate\ journal\ names\ of\ the\ selected\ entries=Развернуть названия журналов для выбранных записей
Unabbreviated\ %0\ journal\ names.=Развернуты названия журналов для %0.

dotless=без точек

About\ JabRef=О программе JabRef

Expand All @@ -55,12 +57,17 @@ Add\ subgroup=Добавить подгруппу

Added\ group\ "%0".=Группа "%0" добавлена.

Added\ string\:\ '%0'=Добавленная строка\: '%0'
Added\ string=Строка добавлена
Edit\ strings=Изменить строки
Modified\ string=Модифицированная строка
New\ string=Создать строку
Remove\ string\ %0=Удалить строку %0
Deleted\ string=Удаленная строка
Deleted\ string\:\ '%0'=Удаленная строка\: '%0'
Renamed\ string\:\ '%0'=Переименованная строка\: '%0'
Please\ enter\ the\ string's\ label=Введите подпись для строки
Resolve\ BibTeX\ strings=Разрешать BibTeX строки
The\ label\ of\ the\ string\ cannot\ be\ a\ number.=Метка строки не может быть числом.
The\ label\ of\ the\ string\ cannot\ contain\ spaces.=Метка строки не может содержать пробелов.
The\ label\ of\ the\ string\ cannot\ contain\ the\ '\#'\ character.=Метка строки не может содержать символ '\#'.
Expand All @@ -70,6 +77,10 @@ Add\ new\ String=Добавить новую строку
String\ constants=Строковые постоянные
Must\ not\ be\ empty\!=Не может быть пустым\!
A\ string\ with\ the\ label\ '%0'\ already\ exists.=Строка с меткой '%0' уже существует
String\ constant\ "%0"\ was\ not\ imported\ because\ it\ is\ not\ a\ valid\ string\ constant=Строковая константа "%0" не была импортирована, так как она не является допустимой строковой константой
String\ constant\ %0\ was\ not\ imported\ because\ it\ already\ exists\ in\ this\ library=Строковая константа %0 не была импортирована, так как она уже существует в данной библиотеке
Could\ not\ import\ the\ following\ string\ constants\:\n\ %0=Не удалось импортировать следующие строковые константы\:\n %0
Importing\ String\ constants=Импортирование строковых констант

All\ entries=Все записи

Expand Down Expand Up @@ -104,6 +115,7 @@ Available\ export\ formats=Доступные форматы экспорта
Available\ import\ formats=Доступные форматы импорта
%0\ source=Источник %0
Show\ BibTeX\ source=Показывать источник BibTeX
Show/edit\ %0\ source=Показать/изменить источник %0
Background\ Tasks=Фоновые задания
Expand Down Expand Up @@ -192,7 +204,9 @@ Create\ custom\ fields\ for\ each\ BibTeX\ entry=Создать пользова
crossreferenced\ entries\ included=записи с перекрестными ссылками
Current\ content\:\ %0=Текущее содержимое\: %0
Current\ value\:\ %0=Текущее значение\: %0
Custom\ entry\ types=Пользовательские типы записей
Expand Down Expand Up @@ -306,8 +320,16 @@ Export\ preferences\ to\ file=Экспорт пользовательских н
Export\ to\ clipboard=Экспорт в буфер обмена
Export\ to\ text\ file.=Экспортировать в текстовый файл.

Processing\ PDF(s)=Обработка PDF(ов)
Processing\ a\ large\ number\ of\ files=Обработка большого количества файлов

Exporting\ %0=Экспортирование %0
Could\ not\ export\ file\ '%0'\ (reason\:\ %1)=Не удалось экспортировать файл '%0' (причина\: %1)
Unknown\ export\ format\ %0=Неизвестный экспортируемый формат %0

Importing\ %0=Импортирование %0
Importing\ file\ %0\ as\ unknown\ format=Импортирование файла %0 в неизвестном формате
Format\ used\:\ %0=Используемый формат\: %0

Extension=Расширение

Expand Down Expand Up @@ -440,10 +462,12 @@ Journal\ abbreviations=Сокращения для журналов
Journal\ lists\:=Список журналов\:
Remove\ journal\ '%0'=Удалить журнал '%0'
Journal\ Information=Информация о журнале
Year=Год
Categories=Категории
ISSN=ISSN
Publisher=Издатель
h-index=h-индекс
Keep\ both=Оставить оба
Expand Down Expand Up @@ -544,9 +568,11 @@ Open\ editor\ when\ a\ new\ entry\ is\ created=Открыть редактор
Open\ file=Открыть файл
Open\ last\ edited\ libraries\ on\ startup=Открывать последние отредактированные библиотеки при запуске
Connect\ to\ shared\ database=Подключение к БД с общим доступом
Use\ Expert\ mode=Использовать режим эксперта
Open\ terminal\ here=Открыть терминал в текущей директории
Expand Down Expand Up @@ -658,6 +684,7 @@ Remove\ all\ selected\ groups\ and\ their\ subgroups?=Удалить все вы

Removed\ all\ selected\ groups\ and\ their\ subgroups.=Все выбранные группы и их подгруппы удалены.

Remove\ group\ "%0"?=Удалить группу "%0"?

Remove\ link=Удалить ссылку

Expand Down Expand Up @@ -774,6 +801,7 @@ Show\ 'Lastname,\ Firstname'=Порядок вывода 'Фамилия, Имя

Show\ BibTeX\ source\ by\ default=Показать источник BibTeX по умолчанию

Attached\ files=Прикрепленные файлы
Show\ confirmation\ dialog\ when\ deleting\ entries=Запрос подтверждения при удалении записей


Expand Down Expand Up @@ -801,6 +829,8 @@ Please\ check\ your\ library\ file\ for\ wrong\ syntax.=Пожалуйста, п
SourceTab\ error=Ошибка SourceTab
User\ input\ via\ entry-editor\ in\ `{}bibtex\ source`\ tab\ led\ to\ failure.=Пользовательский ввод посредством редактора записей во вкладке `{}bibtex source` привёл к возникновению ошибки.

Sort\ subgroups\ A-Z=Сортировать подгруппы A-Z
Sort\ subgroups\ Z-A=Сортировать подгруппы Z-A

source\ edit=изменение источника
Special\ name\ formatters=Особые программы форматирования имени
Expand Down Expand Up @@ -846,13 +876,15 @@ Upgrade\ external\ PDF/PS\ links\ to\ use\ the\ '%0'\ field.=Обновить с
usage=использование
Use\ autocompletion=Использовать автозаполнение

User\ interface=Интерфейс пользователя

Value\ cleared\ externally=Значение создано внешними средствами



View=Вид

View\ journal\ info=Просмотр информации о журнале

Warning=Предупреждение
Warnings=Предупреждения
Expand Down

0 comments on commit 1b6532c

Please sign in to comment.