src/main/java/de/uapcore/lightpit/modules/LanguageModule.java

changeset 180
009700915269
parent 179
623c340058f3
equal deleted inserted replaced
179:623c340058f3 180:009700915269
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
50 public final class LanguageModule extends AbstractServlet { 50 public final class LanguageModule extends AbstractServlet {
51 51
52 private static final Logger LOG = LoggerFactory.getLogger(LanguageModule.class); 52 private static final Logger LOG = LoggerFactory.getLogger(LanguageModule.class);
53 53
54 private final List<Locale> languages = new ArrayList<>(); 54 private final List<Locale> languages = new ArrayList<>();
55
56 @Override
57 protected String getResourceBundleName() {
58 return "localization.language";
59 }
60 55
61 @Override 56 @Override
62 public void init() throws ServletException { 57 public void init() throws ServletException {
63 super.init(); 58 super.init();
64 59

mercurial