Nп/п : 79 из 100
 От   : rene                                2:5075/128        21 сен 23 22:52:21
 К    : Alexandru                                             21 сен 23 08:53:12
 Тема : Re: Reversed translation in msgcat
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<91c7f56e-29be-4436-9a82-c2ffe7964b36n@googlegroups.com> 477faaa7
@REPLY:
<cce3de74-4d91-475a-b45a-4ec3b25567f7n@googlegroups.com> 66ab3add
@REPLYADDR rene <r.zaumseil@gmail.com>
@REPLYTO 2:5075/128 rene
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<cce3de74-4d91-475a-b45a-4ec3b25567f7n@googlegroups.com>
@RFC-Message-ID:
<91c7f56e-29be-4436-9a82-c2ffe7964b36n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
Alexandru schrieb am Donnerstag, 21. September 2023 um 19:51:57 UTC+2:
> Is there a way to reverse the function "mc" in msgcat? 
> So to get the original string based on the already translated string. 
 > The translated string was created applying the "mc" function on
the original string. 
> Having the result of "mc" can I found out what was the original string? 

> Many thanks 
> Alexandru
AFAIK not directly.But you could intercept the msgcat::mc call like:

rename ::msgcat::mc ::msgcat::mc1
proc ::msgcat::mc args {
  set result [::msgcat::mc1 {*}$args]
# here you have the original $args and the translated string in $result
  return $result
}
--- 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    
                                                                                
В этой области больше нет сообщений.

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