- //
-
- String noutf = System.getenv("NOUTF");
- if (noutf != null) {
- noutf = noutf.trim().toLowerCase();
- if ("yes".equals(noutf) || "true".equals(noutf)
- || "on".equals(noutf) || "1".equals(noutf)
- || "y".equals(noutf)) {
- trans.setUnicode(false);
- }
- }
-
- String configDir = System.getenv("CONFIG_DIR");
- if (configDir != null) {
- if (new File(configDir).isDirectory()) {
- Bundles.setDirectory(configDir);
- try {
- config = new ConfigBundle();
- config.updateFile(configDir);
- } catch (IOException e) {
- syserr(e);
- }
- try {
- trans = new StringIdBundle(getLang());
- trans.updateFile(configDir);
- } catch (IOException e) {
- syserr(e);
- }
- } else {
- syserr(new IOException("Configuration directory not found: "
- + configDir));
- }
- }