Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Add msgcat dynamic languages ability

Closed / Out of Date3511941fffffffffffffffffffffffffffffffffCreated 15 years agoUpdated 11 years ago
Descriptionplain2012-03-27 15:02:43
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*}
oehharplain2012-03-27 22:02:45
File Added - 439566: msgcat.diff
dgp Ticket [3511941fff]: 1 change [History diff]2012-06-23 03:42:31
oehharplain2012-07-17 15:47:01
File Added - 449122: msgcat-1.5.0.tm
oehharplain2012-07-17 15:51:23
File Added - 449124: msgcat-1.4.5rc0-1.5.0.diff
oehharplain2012-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
oehharwiki2015-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.

Log in (anonymous is fine) to add a comment.

Attachments: