Berthold Stoeger db0dd54c37 Localization: make cache thread safe and robust against use-after-free
The old trGettext() was not thread-safe and the returned C-strings
could be freed in the case of empty translations strings. Therefore:

1) Introduce a mutex protecting access to the cache.

2) Never change existing entries, even if the translation string is empty.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
2018-06-24 20:31:14 +02:00
..
2018-05-07 13:56:23 +02:00
2018-04-28 20:11:22 +03:00
2017-11-25 20:13:01 +01:00
2018-06-20 09:27:11 +09:00
2018-01-31 14:47:26 +01:00
2017-04-29 13:32:55 -07:00
2018-01-08 09:52:55 +02:00
2017-05-26 15:52:04 -07:00
2018-05-27 23:18:01 +03:00
2017-05-26 15:44:36 -07:00
2018-06-21 06:28:39 +09:00
2018-04-28 20:11:22 +03:00
2017-11-19 12:20:43 -08:00
2017-04-29 13:32:55 -07:00
2018-05-30 21:47:07 -07:00
2017-04-29 13:32:55 -07:00
2017-10-04 08:05:09 -07:00
2017-04-29 13:32:55 -07:00
2017-04-29 13:32:55 -07:00