/** * {@inheritDoc} */ @Override public void setLanguage(LANGUAGE newLanguage) { l10n = new PluginL10n(this, newLanguage); }
FredPluginBaseL10n plugin = (FredPluginBaseL10n) pluginInfo.getPlugin(); this.translatingFor = translateFor; this.base = new PluginL10n(plugin).getBase();
/** * {@inheritDoc} */ @Override public String getString(String key) { return l10n.getBase().getString(key); }
/** * Returns the l10n helper of the node. * * @return The node’s l10n helper */ public BaseL10n getL10n() { return sonePlugin.l10n().getBase(); }