From 83d6aab63b5699850b8263b2d2fce6c959fe02bb Mon Sep 17 00:00:00 2001 From: Zylence Date: Thu, 13 Apr 2023 12:43:37 +0200 Subject: [PATCH] Fixed localization and style --- .../jabref/logic/integrity/AmpersandChecker.java | 13 +++++++------ src/main/resources/l10n/JabRef_de.properties | 2 ++ src/main/resources/l10n/JabRef_en.properties | 2 ++ 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/jabref/logic/integrity/AmpersandChecker.java b/src/main/java/org/jabref/logic/integrity/AmpersandChecker.java index b0e3acc3ff2..9da189890c0 100644 --- a/src/main/java/org/jabref/logic/integrity/AmpersandChecker.java +++ b/src/main/java/org/jabref/logic/integrity/AmpersandChecker.java @@ -1,20 +1,21 @@ package org.jabref.logic.integrity; -import com.google.common.base.CharMatcher; -import org.jabref.logic.l10n.Localization; -import org.jabref.model.entry.BibEntry; -import org.jabref.model.entry.field.Field; - import java.util.ArrayList; import java.util.List; import java.util.Map; import java.util.regex.MatchResult; import java.util.regex.Pattern; +import org.jabref.logic.l10n.Localization; +import org.jabref.model.entry.BibEntry; +import org.jabref.model.entry.field.Field; + +import com.google.common.base.CharMatcher; + /** * Checks if the BibEntry contains unescaped ampersands. */ -public class AmpersandChecker implements EntryChecker{ +public class AmpersandChecker implements EntryChecker { // matches for an & preceded by any number of \ private static final Pattern BACKSLASH_PRECEDED_AMPERSAND = Pattern.compile("\\\\*&"); diff --git a/src/main/resources/l10n/JabRef_de.properties b/src/main/resources/l10n/JabRef_de.properties index ef42cbe2ebf..9438a0a5937 100644 --- a/src/main/resources/l10n/JabRef_de.properties +++ b/src/main/resources/l10n/JabRef_de.properties @@ -1561,6 +1561,8 @@ Verse=Vers change\ entries\ of\ group=Ändere Einträge der Gruppe odd\ number\ of\ unescaped\ '\#'=Ungerade Anzahl an '\#' Maskierungszeichen +Found\ %0\ unescaped\ '\&'=%0 unmaskierte(s) '&' gefunden + Show\ diff=Zeige Änderungen Copy\ Version=Kopiere Version Maintainers=Maintainer diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties index 48fa49e57ad..788e480aa8f 100644 --- a/src/main/resources/l10n/JabRef_en.properties +++ b/src/main/resources/l10n/JabRef_en.properties @@ -1564,6 +1564,8 @@ Verse=Verse change\ entries\ of\ group=change entries of group odd\ number\ of\ unescaped\ '\#'=odd number of unescaped '#' +Found\ %0\ unescaped\ '\&'=Found %0 unescaped '&' + Show\ diff=Show diff Copy\ Version=Copy Version Maintainers=Maintainers