diff --git a/CHANGELOG.md b/CHANGELOG.md index b085f3e306a..157c767ab28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ Note that this project **does not** adhere to [Semantic Versioning](http://semve ### Added - We added an error-specific message for when a download from a URL fails[#9826](https://github.com/JabRef/jabref/issues/9826). +- We added protected terms described as "Computer science". [#10222](https://github.com/JabRef/jabref/pull/10222) ### Changed diff --git a/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java b/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java index c57095e26fb..9f74b266ead 100644 --- a/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java +++ b/src/main/java/org/jabref/logic/protectedterms/ProtectedTermsLoader.java @@ -28,6 +28,7 @@ public class ProtectedTermsLoader { INTERNAL_LISTS.put("/protectedterms/months_weekdays.terms", () -> Localization.lang("Months and weekdays in English")); INTERNAL_LISTS.put("/protectedterms/countries_territories.terms", () -> Localization.lang("Countries and territories in English")); INTERNAL_LISTS.put("/protectedterms/electrical_engineering.terms", () -> Localization.lang("Electrical engineering terms")); + INTERNAL_LISTS.put("/protectedterms/computer_science.terms", () -> Localization.lang("Computer science")); } public ProtectedTermsLoader(ProtectedTermsPreferences preferences) { diff --git a/src/main/resources/l10n/JabRef_en.properties b/src/main/resources/l10n/JabRef_en.properties index ce18715796b..653c4f08dbf 100644 --- a/src/main/resources/l10n/JabRef_en.properties +++ b/src/main/resources/l10n/JabRef_en.properties @@ -1664,6 +1664,7 @@ Note\:\ Use\ the\ placeholder\ %DIR%\ for\ the\ location\ of\ the\ opened\ libra Error\ occurred\ while\ executing\ the\ command\ \"%0\".=Error occurred while executing the command \"%0\". Reformat\ ISSN=Reformat ISSN +Computer\ science=Computer science Countries\ and\ territories\ in\ English=Countries and territories in English Electrical\ engineering\ terms=Electrical engineering terms Enabled=Enabled diff --git a/src/main/resources/protectedterms/computer_science.terms b/src/main/resources/protectedterms/computer_science.terms new file mode 100644 index 00000000000..936df3b7ebc --- /dev/null +++ b/src/main/resources/protectedterms/computer_science.terms @@ -0,0 +1,6 @@ +BibTeX +BPEL +BPMN +JabRef +LaTeX +OpenTOSCA diff --git a/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java b/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java index 5840c12a4c6..f0b5e71811b 100644 --- a/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java +++ b/src/test/java/org/jabref/logic/formatter/casechanger/ProtectTermsFormatterTest.java @@ -53,7 +53,7 @@ public void testCorrectOrderingOfTerms() { public void test() { assertEquals("{VLSI} {VLSI}", formatter.format("VLSI {VLSI}")); assertEquals("{BPEL}", formatter.format("{BPEL}")); - assertEquals("{Testing BPEL Engine Performance: A Survey}", + assertEquals("{Testing {BPEL} Engine Performance: A Survey}", formatter.format("{Testing BPEL Engine Performance: A Survey}")); } }