Fix BibTeX "twin" at citation relations#12124
Conversation
- Add getter+setter for "cites" to BibEntry - Refactor CitationsRelationsTabViewModel - Group citation keys together in JabRef_en.properties - We fixed an issue where the import of an entry cited by an entry caused a change of the citation key of the citing entry.
| task.onSuccess(parserResult -> { | ||
| tabContainer.addTab(parserResult.getDatabaseContext(), true); | ||
| dialogService.notify(Localization.lang("Imported entries") + ": " + parserResult.getDatabase().getEntries().size()); | ||
| dialogService.notify(Localization.lang("%0 entry(ies) imported", parserResult.getDatabase().getEntries().size())); |
There was a problem hiding this comment.
This reads weird. We should make this consistent with plural check if > 1
There was a problem hiding this comment.
First introduced at #10732. Long call w/ @calixtus We never wrote it down as follow-up.
TL;DR: It’s not just singular and plural
- zero → “لم نزرع أي شجرة حتى الآن”
- one → “لقد زرعنا شجرة ١ حتى الآن”
- two → “لقد زرعنا شجرتين ٢ حتى الآن”
- few → “لقد زرعنا ٣ شجرات حتى الآن”
- many → “لقد زرعنا ١١ شجرة حتى الآن”
- other → “لقد زرعنا ١٠٠ شجرة حتى الآن”
Longer: https://phrase.com/blog/posts/pluralization/
We decided to remove singular/plural completely and translate only one thing.
@HoussemNasri Seeing #9243, WDYT?
There was a problem hiding this comment.
It would be great if the translation was accurate, but I think it should be fine. For example, both of the following variations are understandable for anyone who reads Arabic. I'm not sure about grammatical correctness, however.
zero → “لقد زرعنا 0 شجرة حتى الآن”
one → “لقد زرعنا ١ شجرة حتى الآن”
Or we could go with something like "Number of entries imported: 3," but that's not necessary, in my opinion.
| */ | ||
| public SequencedSet<String> getCites() { | ||
| return this.getField(StandardField.CITES) | ||
| .map(content -> Arrays.stream(content.split(","))) |
There was a problem hiding this comment.
can't you use flatmap with filter is Present check
There was a problem hiding this comment.
# Conflicts: # src/main/java/org/jabref/gui/LibraryTab.java
|
The build for this PR is no longer available. Please visit https://builds.jabref.org/main/ for the latest build. |


Follow-ujp to #12123
I think, CHANGELOG.md entry too special, thus not adding.
Mandatory checks
CHANGELOG.mddescribed in a way that is understandable for the average user (if change is visible to the user)