Changes between Version 5 and Version 6 of Submitting/TclTk
- Timestamp:
- 06/21/14 05:24:07 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Submitting/TclTk
v5 v6 54 54 == Messages == 55 55 56 Always use the gettext macros with [G_msg "..."]for user messages.56 Always use the gettext macros with `[G_msg "..."]` for user messages. 57 57 The string must be quoted using quotation marks, not braces, for 58 58 xgettext to find it. The string cannot include variable ($) or … … 61 61 62 62 Examples: 63 {{{ 63 64 button .ok -text [G_msg "Ok"] 64 65 65 66 set statusbartext [format [G_msg "Monitor %d running"] $monitor_number]] 66 67 }}} 67 68 Use positional parameters if substitutions might be rearranged in another language: 68 69 {{{ 69 70 format [G_msg "We produced %1\$d units in location %2\$s"] $num $city 70 71 format [G_msg "In location %2\$s we produced %1\$d units"] $num $city 71 72 }}} 72 73 == Environmental Variables == 73 74