Skip to content

Commit 3b40bba

Browse files
Luggas4youkopporSiedlerchr
authored
Add computer science to protected terms (#10222)
* Add computer science to protected terms * Add Computer science to en.properties * Add change in CHANGELOG.md * Fix link to pull request * Fix sortation * Add BibTex to computer science * fix test --------- Co-authored-by: Oliver Kopp <[email protected]> Co-authored-by: Siedlerchr <[email protected]>
1 parent 164bdf5 commit 3b40bba

File tree

5 files changed

+10
-1
lines changed

5 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve
1212
### Added
1313

1414
- We added an error-specific message for when a download from a URL fails[#9826](https://github.com/JabRef/jabref/issues/9826).
15+
- We added protected terms described as "Computer science". [#10222](https://github.com/JabRef/jabref/pull/10222)
1516

1617
### Changed
1718

src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class ProtectedTermsLoader {
2828
INTERNAL_LISTS.put("/protectedterms/months_weekdays.terms", () -> Localization.lang("Months and weekdays in English"));
2929
INTERNAL_LISTS.put("/protectedterms/countries_territories.terms", () -> Localization.lang("Countries and territories in English"));
3030
INTERNAL_LISTS.put("/protectedterms/electrical_engineering.terms", () -> Localization.lang("Electrical engineering terms"));
31+
INTERNAL_LISTS.put("/protectedterms/computer_science.terms", () -> Localization.lang("Computer science"));
3132
}
3233

3334
public ProtectedTermsLoader(ProtectedTermsPreferences preferences) {

src/main/resources/l10n/JabRef_en.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,6 +1664,7 @@ Note\:\ Use\ the\ placeholder\ %DIR%\ for\ the\ location\ of\ the\ opened\ libra
16641664
Error\ occurred\ while\ executing\ the\ command\ \"%0\".=Error occurred while executing the command \"%0\".
16651665
Reformat\ ISSN=Reformat ISSN
16661666

1667+
Computer\ science=Computer science
16671668
Countries\ and\ territories\ in\ English=Countries and territories in English
16681669
Electrical\ engineering\ terms=Electrical engineering terms
16691670
Enabled=Enabled
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
BibTeX
2+
BPEL
3+
BPMN
4+
JabRef
5+
LaTeX
6+
OpenTOSCA

src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void testCorrectOrderingOfTerms() {
5353
public void test() {
5454
assertEquals("{VLSI} {VLSI}", formatter.format("VLSI {VLSI}"));
5555
assertEquals("{BPEL}", formatter.format("{BPEL}"));
56-
assertEquals("{Testing BPEL Engine Performance: A Survey}",
56+
assertEquals("{Testing {BPEL} Engine Performance: A Survey}",
5757
formatter.format("{Testing BPEL Engine Performance: A Survey}"));
5858
}
5959
}

0 commit comments

Comments
 (0)