public class ConfigUIHelper extends Object
This class provides language selection functionality for the I2PSnark web interface when running in standalone mode (with its own app context). It is a simplified version of the router console's ConfigUIHelper, adapted specifically for I2PSnark's needs.
Key features:
Note: This is a standalone-only helper that does not extend HelperBase and uses static methods since I2PSnark runs with its own application context separate from the main router console.
| Constructor and Description |
|---|
ConfigUIHelper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getLangSettings(I2PAppContext ctx)
Generates HTML select dropdown for language selection in I2PSnark standalone mode.
|
public static String getLangSettings(I2PAppContext ctx)
Creates a <select> element containing all available languages with their display names. The current language is pre-selected based on the I2P app context configuration. Unlike the router console version, this generates a dropdown rather than radio buttons with flags.
Performs intelligent language matching:
The "Debug: Find untagged strings" option is hidden unless advanced mode is enabled.
ctx - the I2P application context for retrieving current language settings