From c25c0b0018ff28c2ec733aeb496b3a2f9d6d5364 Mon Sep 17 00:00:00 2001 From: Govindas Date: Thu, 13 Aug 2020 16:29:46 +0300 Subject: [PATCH] Add last usage date of the translated message --- code/!lang.sk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/!lang.sk b/code/!lang.sk index 10408d7..32b61f8 100644 --- a/code/!lang.sk +++ b/code/!lang.sk @@ -71,7 +71,8 @@ function translate(m: text, p: object, variables: strings = "null") :: text: set {langmsg::%{_lang}%::%{_m}%} to {_m} insertlater({_m}) - + #useful for knowing when was last time this message was triggered, so we can later remove messages that are never used (possibly were removed from code) + set {langmsgusage::%{_m}%} to now #replace $1$, $2$, etc. stuff into proper values (function provides arguments for it) if {_variables::1} is not "null": set {_msg} to {langmsg::%{_lang}%::%{_m}%}