Skip to content

Commit

Permalink
further changes... (JabRef#560)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMachiei committed Jan 24, 2024
1 parent 5c0496e commit e58f5f3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
</HBox>
<HBox spacing="4">
<CheckBox fx:id="downloadLinkedOnlineFiles" text="%Download linked online files"/>
<CheckBox fx:id="showEntryInformation" text="%Show BibTeX"/>
<CheckBox fx:id="showEntryInformation" text="%Show BibTeX source"/>
</HBox>
</VBox>
</content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ private void displayBibTeX(BibEntry entry, String bibTeX) {
}

private void initBibTeX() {
bibTeXDataLabel.setText(Localization.lang("%0 source", "BibTeX") + ":");
bibTeXDataLabel.setText(Localization.lang("%0 source", "BibTeX"));
bibTeXData.setBorder(new Border(new BorderStroke(Color.GREY, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));
bibTeXData.setPadding(new Insets(5.0));
showEntryInformation.selectedProperty().addListener((observableValue, old_val, new_val) -> {
Expand Down Expand Up @@ -255,6 +255,7 @@ public void selectAllNewEntries() {
for (BibEntry entry : entriesListView.getItems()) {
if (!viewModel.hasDuplicate(entry)) {
entriesListView.getCheckModel().check(entry);
displayBibTeX(entry, viewModel.getSourceString(entry));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public String getSourceString(BibEntry entry) {
new BibEntryWriter(fieldWriter, entryTypesManager).write(entry, bibWriter, selectedDb.getValue().getMode());
} catch (
IOException ioException) {
return null;
return "";
}
return writer.toString();
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/l10n/JabRef_en.properties
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Available\ export\ formats=Available export formats
Available\ import\ formats=Available import formats

%0\ source=%0 source
Show\ BibTeX\ source=Show BibTeX source
Show/edit\ %0\ source=Show/edit %0 source

Background\ Tasks=Background Tasks

Expand Down Expand Up @@ -843,7 +845,6 @@ Settings=Settings

Shortcut=Shortcut

Show/edit\ %0\ source=Show/edit %0 source

Show\ 'Firstname\ Lastname'=Show 'Firstname Lastname'

Expand Down Expand Up @@ -1986,7 +1987,6 @@ Total\ items\ found\:=Total items found:
Selected\ items\:=Selected items:
Download\ linked\ online\ files=Download linked online files
Select\ the\ entries\ to\ be\ imported\:=Select the entries to be imported\:
Show\ BibTeX=Show BibTeX
Add\ new\ String=Add new String
Must\ not\ be\ empty\!=Must not be empty\!
Open\ Help\ page=Open Help page
Expand Down

0 comments on commit e58f5f3

Please sign in to comment.