#614 Add msgcat dynamic languages ability


msgcat only load languages currently contained in the mcpreferences list.
If the current locale is changed using mclocale on runtime, the corresponding language files might not be loaded.

This patch adds the command:
msgcat::mcconfig -pattern ?patternlist?

where language files matching by a listed pattern are loaded in additional.

Example: to have an application, which may support the language english, german and french, one may use:

package require msgcat 1.5
msgcat::mcconfig -pattern {en* de* fr*}


  • Harald Oehlmann

    Harald Oehlmann - 2012-03-27

    Patch against msgcat-1.4.4.tm

  • Don Porter

    Don Porter - 2012-06-22
    • assigned_to: dgp --> oehhar
  • Harald Oehlmann

    Harald Oehlmann - 2012-07-17

    Ready msgcat 1.5.0 tcl module from current 1.4.5 version

  • Harald Oehlmann

    Harald Oehlmann - 2012-07-17

    Within the downloads, there is:
    - a full msgcat-1.5.0.tm including the win 7 changes of msgcat1.4.5 in tcl 8.5.12rc0
    This file may be copied to the tcl installation to be used. The folder is <tcllib>/lib/tcl8/8.5
    - an updated patch against msgcat 1.4.5 from tcl8.5.12rc0