code: public void getLocales() {
  
          m_shell.getOut().println(getMessages().key(Messages.GUI_SHELL_LOCALES_AVAILABLE_0));
          Locale[] locales = Locale.getAvailableLocales();
          for (int i = locales.length - 1; i >= 0; i--) {
              m_shell.getOut().println("  \"" + locales[i].toString() + "\"");
          }
      }
docs: Returns the Locales available on the system ready to use on Method
  {@link #setLocale(String)} from the <code>{@link CmsShell}</code>. <p>
  
  Note that the full name containing language, country and optional variant seperated
  by underscores is returned always but the latter two parts may be left out. <p>