Skip to content

Commit fffd811

Browse files
committed
Rename "simple" to "general"
1 parent 14a7739 commit fffd811

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

jabgui/src/main/java/org/jabref/gui/newentry/NewEntryView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ private void initializeInterpretCitations() {
345345
interpretParser.valueProperty().bindBidirectional(viewModel.interpretParserProperty());
346346
PlainCitationParserChoice initialParser = parserFromName(preferences.getLatestInterpretParser(), interpretParser.getItems());
347347
if (initialParser == null) {
348-
final PlainCitationParserChoice defaultParser = PlainCitationParserChoice.RULE_BASED_SIMPLE;
348+
final PlainCitationParserChoice defaultParser = PlainCitationParserChoice.RULE_BASED_GENERAL;
349349
initialParser = parserFromName(defaultParser.getLocalizedName(), interpretParser.getItems());
350350
}
351351
interpretParser.setValue(initialParser);

jabgui/src/main/java/org/jabref/gui/newentry/NewEntryViewModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ protected Optional<List<BibEntry>> call() throws FetcherException {
357357
}
358358

359359
final PlainCitationParser parser = switch (parserChoice) {
360-
case PlainCitationParserChoice.RULE_BASED_SIMPLE ->
360+
case PlainCitationParserChoice.RULE_BASED_GENERAL ->
361361
new RuleBasedPlainCitationParser();
362362
case PlainCitationParserChoice.RULE_BASED_IEEE ->
363363
new RuleBasedBibliographyPdfImporter(preferences.getCitationKeyPatternPreferences());

jabgui/src/main/java/org/jabref/gui/preferences/JabRefGuiPreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ private JabRefGuiPreferences() {
397397
defaults.put(CREATE_ENTRY_IMMEDIATE_TYPE, StandardEntryType.Article.getDisplayName());
398398
defaults.put(CREATE_ENTRY_ID_LOOKUP_GUESSING, true);
399399
defaults.put(CREATE_ENTRY_ID_FETCHER_NAME, DoiFetcher.NAME);
400-
defaults.put(CREATE_ENTRY_INTERPRET_PARSER_NAME, PlainCitationParserChoice.RULE_BASED_SIMPLE.getLocalizedName());
400+
defaults.put(CREATE_ENTRY_INTERPRET_PARSER_NAME, PlainCitationParserChoice.RULE_BASED_GENERAL.getLocalizedName());
401401
// endregion
402402
}
403403

jablib/src/main/java/org/jabref/logic/importer/plaincitation/PlainCitationParserChoice.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
import org.jabref.logic.l10n.Localization;
44

55
public enum PlainCitationParserChoice {
6-
RULE_BASED_SIMPLE,
6+
RULE_BASED_GENERAL,
77
RULE_BASED_IEEE,
88
GROBID,
99
LLM;
1010

1111
public String getLocalizedName() {
1212
return switch (this) {
13-
case RULE_BASED_SIMPLE ->
14-
Localization.lang("Rule-based (simple)");
13+
case RULE_BASED_GENERAL ->
14+
Localization.lang("Rule-based (general)");
1515
case RULE_BASED_IEEE ->
1616
Localization.lang("Rule-based (IEEE)");
1717
case GROBID ->

jablib/src/main/java/org/jabref/logic/preferences/JabRefCliPreferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ public JabRefCliPreferences() {
523523
SpringerNatureWebFetcher.FETCHER_NAME,
524524
DBLPFetcher.FETCHER_NAME,
525525
IEEE.FETCHER_NAME)));
526-
defaults.put(DEFAULT_PLAIN_CITATION_PARSER, PlainCitationParserChoice.RULE_BASED_SIMPLE.name());
526+
defaults.put(DEFAULT_PLAIN_CITATION_PARSER, PlainCitationParserChoice.RULE_BASED_GENERAL.name());
527527
defaults.put(IMPORTERS_ENABLED, Boolean.TRUE);
528528
defaults.put(GENERATE_KEY_ON_IMPORT, Boolean.TRUE);
529529
defaults.put(CITATIONS_RELATIONS_STORE_TTL, 30);

jablib/src/main/resources/l10n/JabRef_en.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2258,7 +2258,7 @@ Copied\ '%0'\ to\ clipboard.=Copied '%0' to clipboard.
22582258
This\ operation\ requires\ an\ open\ library.=This operation requires an open library.
22592259
22602260
Default\ plain\ citation\ parser=Default plain citation parser
2261-
Rule-based\ (simple)=Rule-based (simple)
2261+
Rule-based\ (general)=Rule-based (general)
22622262
Rule-based\ (IEEE)=Rule-based (IEEE)
22632263
Grobid=Grobid
22642264
LLM=LLM

0 commit comments

Comments
 (0)