* Console:

- Fix numerous readme HTML errors
      - Fix flag locations in readmes
      - desktopgui.enable now defaults to false; run systray if false
      - Start icon app before console
      - Restore systray form in configservice.jsp
      - Only save lang when clicking on flags if desktopgui is running
      - Only allow two-letter lang code from cgi parameter
This commit is contained in:
zzz
2011-02-27 13:53:39 +00:00
parent 30373bf6df
commit 21f14ac22e
22 changed files with 260 additions and 190 deletions

View File

@ -22,15 +22,22 @@ public class ContentHelper extends HelperBase {
if((_lang == null || !_lang.equals(l)) && (l != null)) {
//Set language for router console
_lang = l;
/*****
TODO - Temporary for 0.8.4
Needed for desktopgui. But there's no nonce protection.
Move the following to CSSHelper setLang(), or disable completely,
See comments in CSSHelper
*****/
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);
if (_context.getBooleanProperty("desktopgui.enabled")) {
//Set language persistently throughout I2P
_context.router().setConfigSetting(Messages.PROP_LANG, _lang);
_context.router().saveConfig();
_context.setProperty(Messages.PROP_LANG, _lang);
}
}
}