Skip to content

Commit

Permalink
Update for {$APP_NAME} translation.
Browse files Browse the repository at this point in the history
  • Loading branch information
autumoswitzerland committed Oct 13, 2024
1 parent ed6db3b commit 78b938d
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import java.util.ResourceBundle;

import ch.autumo.beetroot.BeetRootConfigurationManager;
import ch.autumo.beetroot.Constants;


/**
Expand Down Expand Up @@ -78,9 +79,11 @@ public boolean containsKey(String key) {
}

private Object preprocess(Object value) {
// App-Version
if (value.equals("{$APP_VERSION}"))
if (value.equals("{$APP_VERSION}")) // App-Version
return BeetRootConfigurationManager.getAppVersion();
else if (value.equals("{$APP_NAME}")) // App-Name
return BeetRootConfigurationManager.getInstance().getString(Constants.KEY_WS_APP_NAME, "<UNDEFINED:"+Constants.KEY_WS_APP_NAME+">");

return value;
}

Expand Down

0 comments on commit 78b938d

Please sign in to comment.