Handle sub-locales

NOTE: it appears that the TinyMCE configuration files will override this
code. That needs to be changed.