1 /* |
1 /* |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. |
3 * |
3 * |
4 * Copyright 2018 Mike Becker. All rights reserved. |
4 * Copyright 2021 Mike Becker. All rights reserved. |
5 * |
5 * |
6 * Redistribution and use in source and binary forms, with or without |
6 * Redistribution and use in source and binary forms, with or without |
7 * modification, are permitted provided that the following conditions are met: |
7 * modification, are permitted provided that the following conditions are met: |
8 * |
8 * |
9 * 1. Redistributions of source code must retain the above copyright |
9 * 1. Redistributions of source code must retain the above copyright |
63 ) |
63 ) |
64 public final class ProjectsModule extends AbstractServlet { |
64 public final class ProjectsModule extends AbstractServlet { |
65 |
65 |
66 private static final Logger LOG = LoggerFactory.getLogger(ProjectsModule.class); |
66 private static final Logger LOG = LoggerFactory.getLogger(ProjectsModule.class); |
67 |
67 |
68 @Override |
|
69 protected String getResourceBundleName() { |
|
70 return "localization.projects"; |
|
71 } |
|
72 |
|
73 private static int parseIntOrZero(String str) { |
68 private static int parseIntOrZero(String str) { |
74 try { |
69 try { |
75 return Integer.parseInt(str); |
70 return Integer.parseInt(str); |
76 } catch (NumberFormatException ex) { |
71 } catch (NumberFormatException ex) { |
77 return 0; |
72 return 0; |