Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3e0da3c4c60433782b9a7734f3213c074a6a4722
Ticket: 3565279fffffffffffffffffffffffffffffffff
Dynamic Locale Change for msgcat with on-demand File Load
User & Date: oehhar on 2012-09-06 13:22:49
Changes

  1. assignee changed to: "oehhar"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    Feature request 3511941 / TIP#399 "Add msgcat dynamic languages ability" were not able to reload any registered message files.
    
    Using this version, message files are loaded if required by a locale change:
    
    % msgcat::mclocale en
    en
    % namespace eval p1 { msgcat::mcload msgs }
    ... will load message files en.msg and ROOT.msg from folder msgs
    ...
    % msgcat::mclocale fr
    ...will load fr.msg from folder msgs and locale will be available
    
    A package may inform itself about locale change:
    
    % namespace eval p1 {msgcat::mcpackageconfig changecmd updateGUI}
    % msgcat::mclocale de
    ...will load de.msg from folder msgs and locale will be available
    ...will invoke "::pi::updateGUI de {}"
    
    The attached file is the first implementation. It contains tip404.
    Also attached is a prepared tip for review.
    
    Thank you all,
    Harald
    
  4. foundin changed to: "None"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "oehhar"
  10. subsystem changed to: "30. msgcat Package"
  11. title changed to:
    Dynamic Locale Change for msgcat with on-demand File Load
    
  12. type changed to: "RFE"