1 package net.sf.openrocket.l10n;
4 * An interface for obtaining translations from logical keys.
6 * Translator implementations must be thread-safe.
8 * @author Sampo Niskanen <sampo.niskanen@iki.fi>
10 public interface Translator {
13 * Retrieve a translated string based on a logical key. This always returns
14 * some string, potentially falling back to the key itself.
16 * @param key the logical string key.
17 * @return the translated string.
18 * @throws NullPointerException if key is null.
20 public String get(String key);