Skip to content

Commit

Permalink
Add test that %0 is kept
Browse files Browse the repository at this point in the history
Co-authored-by: Carl Christian Snethlage <[email protected]>
  • Loading branch information
koppor and calixtus committed Oct 26, 2024
1 parent 957b950 commit 84d70f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/test/java/org/jabref/logic/l10n/LocalizationTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,10 @@ void unknownTranslation() {
void unsetLanguageTranslation() {
assertEquals("Groups", Localization.lang("Groups"));
}

@Test
void placeholderIsKeptWhenNoParameter() {
// This behavior is required when %0 should be transformed to a hyperlink in the UI.
assertEquals("Groups %0", Localization.lang("Groups %0"));
}
}

0 comments on commit 84d70f0

Please sign in to comment.