Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 299d19f11df28bbaaa3816d331b624f83bb5046f
Ticket: 3565279fffffffffffffffffffffffffffffffff
Dynamic Locale Change for msgcat with on-demand File Load
User & Date: oehhar on 2015-10-21 16:38:13
Changes

  1. closedate changed to: "2457317.1932072"
  2. closer changed to: "oehhar"
  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. icomment:
    Accepted as TIP 412.
    Implemented in branch [msgcat_dyn_locale] and merged to trunk with [392ff6199d].
    
  5. login: "oehhar"
  6. mimetype: "text/x-fossil-wiki"
  7. private_contact changed to: "0f366eb3e9e2fcab52b8ebacd197db9047186a5f"
  8. resolution changed to: "Accepted"
  9. severity changed to: "Minor"
  10. status changed to: "Closed"
  11. username: "oehhar"