All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.nuiton.i18n.I18nBundleBridge Maven / Gradle / Ivy

There is a newer version: 4.2
Show newest version
/*
 * #%L
 * I18n :: Api
 * 
 * $Id$
 * $HeadURL$
 * %%
 * Copyright (C) 2004 - 2010 CodeLutin
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as 
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Lesser Public License for more details.
 * 
 * You should have received a copy of the GNU General Lesser Public 
 * License along with this program.  If not, see
 * .
 * #L%
 */

/* *
* BundleBridge.java
*
* Created: 6 sept. 06
*
* @author Arnaud Thimel 
* @version $Revision$
*
* Mise a jour: $Date$
* par : $Author$
*/

package org.nuiton.i18n;

import java.util.Enumeration;
import java.util.ResourceBundle;

public class I18nBundleBridge extends ResourceBundle {

    @Override
    public Enumeration getKeys() {
        throw new UnsupportedOperationException();
    }

    @Override
    public Object handleGetObject(String key) {
        return I18n.t(key);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy