forked from I2P_Developers/i2p.i2p
- Added support for on-the-fly routerconsole.lang changes to desktopgui and routerconsole (routerconsole now commits changes to the I2PAppContext).
- Added desktopgui support for detecting if it's running in the same JVM as I2P (without commandline arguments).
This commit is contained in:
@ -18,7 +18,21 @@ public class ContentHelper extends HelperBase {
|
||||
public void setStartAtBeginning(String moo) {
|
||||
_startAtBeginning = Boolean.valueOf(""+moo).booleanValue();
|
||||
}
|
||||
public void setLang(String l) { _lang = l; }
|
||||
public void setLang(String l) {
|
||||
if(_lang == null || !_lang.equals(l)) {
|
||||
//Set language for router console
|
||||
_lang = l;
|
||||
|
||||
if(_context == null) {
|
||||
setContextId(null);
|
||||
}
|
||||
|
||||
//Set language persistently throughout I2P
|
||||
_context.router().setConfigSetting(Messages.PROP_LANG, _lang);
|
||||
_context.router().saveConfig();
|
||||
_context.setProperty(Messages.PROP_LANG, _lang);
|
||||
}
|
||||
}
|
||||
|
||||
public void setMaxLines(String lines) {
|
||||
if (lines != null) {
|
||||
|
Reference in New Issue
Block a user