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