Skip to content

Commit

Permalink
rename resources
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder544 committed Dec 15, 2023
1 parent 272efad commit 84e2eee
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service-print/src/main/java/org/oskari/print/PDF.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Locale;
import java.util.Map;
import java.util.ResourceBundle;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -181,6 +182,8 @@ private COORDINATE_INFO(String info) {
}
}

private static final String MESSAGES_BASENAME = "print-messages";

public static int mmToPx(int mm) {
return (int) Math.round((Units.OGC_DPI * mm) / Units.MM_PER_INCH);
}
Expand All @@ -191,7 +194,7 @@ public static int mmToPx(int mm) {
protected static void getPDF(PrintRequest request,
OskariFeatureClient featureClient,
PDDocument doc) throws IOException, ServiceException {
rb = ResourceBundle.getBundle("messages_"+request.getLang());
rb = ResourceBundle.getBundle(MESSAGES_BASENAME, new Locale(request.getLang()));
int mapWidthPx = request.getWidth();
int mapHeightPx = request.getHeight();

Expand Down

0 comments on commit 84e2eee

Please sign in to comment.