Skip to content
Tcl Source Code History Of Ticket 3544988fffffffffffffffffffffffffffffffff
Login

History Of Ticket 3544988fffffffffffffffffffffffffffffffff

Artifacts Associated With Ticket 3544988fffffffffffffffffffffffffffffffff

  1. Ticket change [217e6383eb] (rid 130593) by oehhar on 2012-07-17 09:32:28:

    1. assignee initialized to: "oehhar"
    2. cmimetype initialized to: "text/plain"
    3. comment initialized to:
      Message catalog files have names: "<locale>.msg" and consist of entries like:
      mcset <locale> <ori> <translation>
      
      Example:
      --de.msg--
      mcset de File Datei
      mcset de Exit Verlassen
      --eof--
      
      The locale is repeated for each command, even if it could be known by the file name.
      I often do errors here specially if I copy- and paste message catalogue file contents and forget to change the locale.
      
      The feature request proposes the notion of a locale generated from the message catalog file name which is extracted and stored in the msgcat package.
      
      Interface:
      Get MC File locale:
      msgcat::mcconfig -mcfilelocale
      It might also be set (for example within message files):
      msgcat::mcconfig -mcfilelocale de_CH
      A new mcset uses this mc file locale implicitly:
      msgcat::mcflset <ori> <translation>
      And its multi-counterpart:
      msgcat::mcflmset {ori1 trans1 ori2 trans2 ...}
      
      Example use:
      --de.msg--
      mcflset File Datei
      mcflset Exit Verlassen
      --eof--
      
      Attached is a ready to use msgcat-1.5.1.tm file and a diff against msgcat-1.5.0.tm from TIP 399 contained in feature request # 3511941
      
    4. foundin initialized to: "None"
    5. is_private initialized to: "0"
    6. priority initialized to: "5 Medium"
    7. resolution initialized to: "None"
    8. status initialized to: "Open"
    9. submitter initialized to: "oehhar"
    10. subsystem initialized to: "30. msgcat Package"
    11. title initialized to: "Add msgcat current file local"
    12. type initialized to: "RFE"
  2. Ticket change [45144ab48c] (rid 116822) by oehhar on 2012-07-17 16:32:55:

    1. icomment:
      
      
      File Added - 449129: msgcat-1.5.0-1.5.1.patch
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  3. Ticket change [e114a83928] (rid 87386) by oehhar on 2012-07-17 16:34:24:

    1. icomment:
      
      
      File Added - 449131: msgcat-1.5.1.tm
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  4. Ticket change [5adf87b49c] (rid 118223) by oehhar on 2012-07-25 17:02:29:

    1. icomment:
      
      
      File Added - 449760: msgcat-1.5.1.tap
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  5. Ticket change [cf118f183d] (rid 112898) by oehhar on 2012-07-25 18:50:50:

    1. icomment:
      
      
      File Deleted - 449760: 
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  6. Ticket change [3277dbcf71] (rid 93617) by oehhar on 2012-07-25 18:52:29:

    1. icomment:
      
      
      File Added - 449764: msgcat-1.5.1.zip
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  7. Ticket change [5a2b8fa2c2] (rid 118095) by oehhar on 2012-07-25 21:49:54:

    1. icomment:
      
      
      File Deleted - 449764: 
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  8. Ticket change [774a8bf922] (rid 89755) by oehhar on 2012-07-25 21:51:00:

    1. icomment:
      
      
      File Added - 449787: msgcat-1.5.0-1.5.1.patch
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  9. Add attachment "msgcat-1.5.0-1.5.1.patch" [678b4588f1] (rid 102909) by oehhar on 2012-07-25 21:51:00.

  10. Add attachment "msgcat-1.5.1.tm" [f87013f2ed] (rid 91538) by oehhar on 2012-07-25 21:52:31.

  11. Ticket change [24cf2d0e10] (rid 131172) by oehhar on 2012-07-25 21:52:31:

    1. icomment:
      
      
      File Added - 449788: msgcat-1.5.1.tm
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  12. Ticket change [47fbabd85a] (rid 99804) by oehhar on 2012-07-25 21:53:58:

    1. icomment:
      
      
      File Added - 449789: msgcat-1.5.1.zip
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  13. Add attachment "msgcat-1.5.1.zip" [b49f73baf1] (rid 125073) by oehhar on 2012-07-25 21:53:58.

  14. Ticket change [bacd906f29] (rid 129381) by oehhar on 2012-07-25 21:55:01:

    1. icomment:
      Implementation updated: mcflset and mcflmset did not detect the callers namespace properly
      
      Sorry for the error,
      Harald
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  15. Ticket change [163aff7a07] (rid 124685) by dkf on 2012-08-28 02:56:03:

    1. icomment:
      I've committed the code to the tip-404 branch (minus the part which required TIP 399 to be meaningful). I've also started writing some documentation, though an example of how to use (particularly mcflmset) would help that. Adding some tests would also a really good idea. :-)
      
      I assume you know how to go to https://core.tcl.tk/tcl/timeline?r=tip-404 and look at what I've done?
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. priority changed to: "9 Immediate"
    5. username: "dkf"
  16. Ticket change [195ce3ea8f] (rid 122797) by oehhar on 2012-08-28 14:09:53:

    1. icomment:
      Thank you for the branch and the documentation.
      
      I have the following remarks:
      
      1) clock.tcl explicitly requires msgcat 1.4 - if version 1.5 is used, this must be changed.
      
      2) the part with the mcconfig command was removed, which is also contained in the tip.
        I personally like such opaque things where the file locale may be accessed, but this is not mandatory.
      
      3) if the file locale is hidden to the user (by removing the mcconfig command), I would add a bit code to
        treat recursive calls to mcload:
        if {[info exists FileLocale} {set FileLocaleUp $FileLocale}
        ...
        if {[info exists FileLocaleUp]} {set FileLocale $FileLocaleUp} else {unset FileLocale}
      
      4) msgcat.test
        - The easiest would be to copy the whole msgcat-5.* tests and repeat them with mcflset commands
        - In addition:
        - Add a test where mcflset is called outside an mcload -> error message
        - Add a test where mcload commands are nested
      
      Thank you,
      Harald
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  17. Ticket change [123cf4be69] (rid 95277) by oehhar on 2012-08-28 14:22:36:

    1. icomment:
      Sorry, the comment about the clock command is wrong.
      Of cause, package require msgcat 1.4 would load msgcat 1.5
      
      No change necessary.
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  18. Ticket change [cc75d5e1b2] (rid 95704) by dkf on 2012-08-28 17:11:26:

    1. icomment:
      That's OK; that's why we review before committing to a production branch. :-)
      
      
    2. login: "dkf"
    3. mimetype: "text/plain"
    4. username: "dkf"
  19. Ticket change [7f96a02e20] (rid 97587) by oehhar on 2012-09-05 16:03:27:

    1. icomment:
      Donal,
      thank you adding the mcconfig command in fossil:
      http://core.tcl.tk/tcl/info/674aa977f0
      
      I personally liked your idea to not expose it to the user.
      I would only make it nest-proof.
      
      If the TIP-Version is used, you should not set the file locale value to the empty string after an mcload. At least, it was intended, that this value changes and holds the last locale of mcload.
      Reason? Transparency, thats all.
      If a user sets it intentionally to a value, this value will anyway be lost be an mcload. So, I thought it is clearer to set it defined to one value.
      But I really prefer the magic solution, that mcflset only works within mcload and thats all.
      
      I will add a sample file as an attached file here.
      I still have no fossil login (I am aware of), so no direct change.
      
      Thank you,
      Harald
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  20. Ticket change [4ec9177685] (rid 125705) by oehhar on 2012-09-05 19:15:34:

    1. icomment:
      
      
      File Added - 452633: msgcat.test.diff
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  21. Ticket change [9fd67f54ba] (rid 96708) by oehhar on 2012-09-05 19:19:43:

    1. icomment:
      
      
      File Added - 452635: msgcat.tcl.diff
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  22. Add attachment "msgcat.tcl.diff" [dd0ca20196] (rid 114591) by oehhar on 2012-09-05 19:19:43.

  23. Ticket change [3e9d5189ee] (rid 121302) by oehhar on 2012-09-05 19:22:45:

    1. icomment:
      
      
      File Deleted - 452633: 
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  24. Ticket change [e042fd6016] (rid 115158) by oehhar on 2012-09-05 19:25:16:

    1. icomment:
      
      
      File Added - 452636: msgcat.tcl
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  25. Ticket change [848a79736e] (rid 117570) by oehhar on 2012-09-05 19:25:43:

    1. icomment:
      
      
      File Deleted - 452636: 
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  26. Ticket change [485d0d7dce] (rid 99872) by oehhar on 2012-09-05 19:26:12:

    1. icomment:
      
      
      File Added - 452637: msgcat.test.diff
      
      
      
    2. login: "oehhar"
    3. mimetype: "text/plain"
    4. username: "oehhar"
  27. Add attachment "msgcat.test.diff" [fd010bb713] (rid 108335) by oehhar on 2012-09-05 19:26:12.

  28. Ticket change [23859328d0] (rid 130954) by oehhar on 2013-05-08 15:55:46:

    1. closedate changed to: "2013-05-08T08:55:46"
    2. closer changed to: "oehhar"
    3. icomment:
      Implemented in msgcat 1.5.0
      
      
    4. login: "oehhar"
    5. mimetype: "text/plain"
    6. resolution changed to: "Accepted"
    7. status changed to: "Closed"
    8. username: "oehhar"