View Single Post
Author Message
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 12-25-2020 , 05:57   Map specific translation files
Reply With Quote #1

I'm writing a plugin which will load translations for each map. For de_dust it will be like this:

LoadTranslations("myplugin/de_dust.phrases");

In the documentation is said that the translations are automatically reloaded on map change but nothing is said how to unload translations which are no longer used.
1) If the plugin runs through 100 maps will it have cached in the memory translations for each of these 100 maps?
2) If yes, what is the right way to clear the cache?
3) If not possible, how can I be sure that a translation for specific phrase is taken from the right file (in case some phrases exist in several files)?
4) Is there a way to check if the translation file is loaded successfully (exist)?

Last edited by kadet.89; 12-25-2020 at 06:21.
kadet.89 is offline
Send a message via Skype™ to kadet.89