Skip to content

Commit

Permalink
Fixed localization and style
Browse files Browse the repository at this point in the history
  • Loading branch information
Zylence committed Apr 13, 2023
1 parent 5b110c2 commit adeeb32
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/main/java/org/jabref/logic/integrity/AmpersandChecker.java
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
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 com.google.common.base.CharMatcher;
import org.jabref.logic.l10n.Localization;
import org.jabref.model.entry.BibEntry;
import org.jabref.model.entry.field.Field;

/**
* 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("\\\\*&");

Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/l10n/JabRef_de.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit adeeb32

Please sign in to comment.