public void setLocale(String localeName) {
        // create locale specifics
        doclocale = new DocLocale(this, localeName, breakiterator);
        // reset Messager if locale has changed.
        messager.reset();
    }