1 package net.sf.openrocket.l10n;
3 import java.util.MissingResourceException;
6 * An interface for obtaining translations from logical keys.
8 * Translator implementations must be thread-safe.
10 * @author Sampo Niskanen <sampo.niskanen@iki.fi>
12 public interface Translator {
15 * Retrieve a translated string based on a logical key. This always returns
16 * some string, potentially falling back to the key itself.
18 * @param key the logical string key.
19 * @return the translated string.
20 * @throws MissingResourceException if the translation corresponding to the key is not found.
21 * @throws NullPointerException if key is null.
23 public String get(String key);