| /** |
| * Copyright (c) 2012, 2015 - Lunifera GmbH (Austria), Loetz GmbH&Co.KG and others. |
| * All rights reserved. This program and the accompanying materials |
| * are made available under the terms of the Eclipse Public License v1.0 |
| * which accompanies this distribution, and is available at |
| * http://www.eclipse.org/legal/epl-v10.html |
| * |
| * Contributors: |
| * Florian Pirchner - initial API and implementation |
| */ |
| package org.eclipse.osbp.runtime.common.i18n; |
| |
| import java.util.Locale; |
| |
| import org.eclipse.osbp.runtime.common.dispose.IDisposable; |
| |
| |
| /** |
| * This service returns the string value for a given i18nKey and locale. |
| */ |
| public interface II18nService extends IDisposable { |
| |
| /** The id. */ |
| public static String ID = II18nService.class.getName(); |
| |
| /** |
| * Returns the i18nKey for the given key and locale. |
| * |
| * @param i18nKey |
| * the i18n key |
| * @param locale |
| * the locale |
| * @return the value |
| */ |
| String getValue(String i18nKey, Locale locale); |
| |
| } |