Skip to content

Commit

Permalink
#94: Temporarily disable VERSION and try to add resource bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
ottlinger committed Aug 16, 2023
1 parent f5a765b commit c9eb685
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
//DEPS com.google.guava:guava:32.1.2-jre
//DEPS org.apache.logging.log4j:log4j-core:3.0.0-alpha1
//SOURCES **
// how to integrate properties - https://github.com/jbangdev/jbang/issues/1665
//FILES **/src/main/resources/spamprotector.properties
//FILES **/src/main/resources/spamprotector_en.properties
// https://github.com/jbangdev/jbang/issues/1666 - adding as file not working
/** FILES src/main/resources/Version.java=de.aikiit.spamprotector.util.Version.java */

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/de/aikiit/spamprotector/GUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ private void init() {
help.setMnemonic(getBundleString("spamschutz.ui.help.mnemonic").charAt(0));
help.addActionListener(e -> JOptionPane.showMessageDialog(null, getParameterizedBundleString("spamschutz.ui.help.text",
String.valueOf(now.getYear()),
de.aikiit.spamprotector.util.Version.VERSION),
// TODO remove me, once #94 is resolved
"de.aikiit.spamprotector.util.Version.VERSION"),
getBundleString("spamschutz.ui.help.title"),
JOptionPane.INFORMATION_MESSAGE));

Expand Down

0 comments on commit c9eb685

Please sign in to comment.