Raised This Month: $51 Target: $400
 12% 

Solved [CS:GO] Translations in include files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 02-09-2018 , 16:21   [CS:GO] Translations in include files
Reply With Quote #1

Hello everybody!
I tried to do a plugin with own translation. However, phrases don't work for include files and I really don't know what I am doing wrong.
Phrases work for the plugin well, but in include files it says the phrase doesn't exist.
Have someone had the same problem?
Thank you for your help!

Last edited by ShawnCZek; 02-09-2018 at 16:54.
ShawnCZek is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 02-09-2018 , 16:24   Re: [CS:GO] Translations in include files
Reply With Quote #2

The plugin using your include file needs to have the phrases loaded, you should provide a stock for the plugin to use or something.

EDIT: Or use natives, which are run in the providing plugin rather than the calling plugin.
__________________

Last edited by asherkin; 02-09-2018 at 16:25.
asherkin is offline
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 02-09-2018 , 16:26   Re: [CS:GO] Translations in include files
Reply With Quote #3

Isn't it dumb to load the translations everywhere?
ShawnCZek is offline
ShawnCZek
Member
Join Date: Mar 2017
Location: Czech Republic
Old 02-09-2018 , 16:38   Re: [CS:GO] Translations in include files
Reply With Quote #4

And it still doesn't work for me. I created the stock function, but it still works same.

// EDIT: It's working! I didn't know translations are cached. Thank you very much for help!

Last edited by ShawnCZek; 02-09-2018 at 16:53.
ShawnCZek is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:31.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode