code: public void setLocale(String localeName) {
          // create locale specifics
          doclocale = new DocLocale(this, localeName, breakiterator);
          // update Messager if locale has changed.
          messager.setLocale(doclocale.locale);
      }
docs: Set the locale.