Tcl Source Code

View Ticket
Login
Ticket UUID: 3511941
Title: Add msgcat dynamic languages ability
Type: RFE Version: None
Submitter: oehhar Created on: 2012-03-27 15:02:43
Subsystem: 30. msgcat Package Assigned To: oehhar
Priority: 5 Medium Severity: Minor
Status: Closed Last Modified: 2015-10-21 16:35:00
Resolution: Out of Date Closed By: oehhar
    Closed on: 2015-10-21 16:35:00
Description:
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*}
User Comments: oehhar added on 2015-10-21 16:35:00:

This was TIP 399, which is superseeded by TIP 412 [3565279], which will be in TCL 8.6.5.

Closed as outdated.


oehhar added on 2012-07-17 15:54:20:
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

oehhar added on 2012-07-17 15:51:23:

File Added - 449124: msgcat-1.4.5rc0-1.5.0.diff

oehhar added on 2012-07-17 15:47:01:

File Added - 449122: msgcat-1.5.0.tm

oehhar added on 2012-03-27 22:02:45:

File Added - 439566: msgcat.diff

Attachments: