Nп/п : 95 из 100
 От   : Alex P                              2:5075/128        24 сен 23 12:07:39
 К    : Alexandru                                             24 сен 23 22:11:02
 Тема : Re: Reversed translation in msgcat
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<8aa6da63-05a8-4308-ac93-fd84a8039540n@googlegroups.com> 0d5dce85
@REPLY:
<5cb879b6-c51a-49ff-9148-b04f37d5ddb0n@googlegroups.com> 6e1bac8c
@REPLYADDR Alex P <aplsimple@gmail.com>
@REPLYTO 2:5075/128 Alex P
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<cce3de74-4d91-475a-b45a-4ec3b25567f7n@googlegroups.com> <91c7f56e-29be-4436-9a82-c2ffe7964b36n@googlegroups.com>
<14bd951f-856c-4641-b580-51c4d0f43828n@googlegroups.com> 1@dont-email.me>
<d9b3d63c-9ec4-490a-bfd9-9b0aeebacab6n@googlegroups.com> 1@tota-refugium.de>
<aa322a83-d94d-477a-9ef8-50f3514694ben@googlegroups.com> 1@tota-refugium.de>
<5cb879b6-c51a-49ff-9148-b04f37d5ddb0n@googlegroups.com>
@RFC-Message-ID:
<8aa6da63-05a8-4308-ac93-fd84a8039540n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
You might put your msgcat stuff in an array, like this

set ar(I)   [msgcat::mc {I was chosen}]
set ar(you) [msgcat::mc {you were chosen}]
set ar(we)  [msgcat::mc {we were chosen}]
...
and then save not a value, but its "address" (ID, as Csaba said).

 I.e. if there was chosen "[msgcat::mc {you were chosen}]", then save
"ar(you)" instead it. It`s easy to get a value from the array, when the
value`s address is known. And vice versa.

Make a separate file.tcl for the array of "msgcat::mc"`s, to handle it easier.
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх