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

Translations doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OziOn
Senior Member
Join Date: Jan 2008
Old 07-06-2009 , 07:00   Translations doesn't work
Reply With Quote #1

I'm having a great deal of issues with the translations for 3rd party plugins on my server. All translations from SourceMod itself are working correctly, but it does not seem to want to read anything else. I've tried putting the translation files in sourcemod/translations/da (the language I'm using) but with no luck what so ever.
Is this a bug?
My server is TF2 on Linux with SourceMod v1.2.1.
Any help would be appreciated.
Thank you.
OziOn is offline
Lebson506th
Veteran Member
Join Date: Jul 2008
Old 07-06-2009 , 09:27   Re: Translations doesn't work
Reply With Quote #2

If the plugins are not set up to use the new structure, they should just go straight into the "translations" folder.


If there is only 1 translation file for the plugin, it's not using the new structure.




In short: Try putting them straight in the translations folder.
__________________
My Plugins
Spray Tracer by Nican, maintained by me
Simple TK Manager
DoD:S Admin Weapons

Links
Resistance and Liberation (A HL2 Multiplayer Modification)
Lebson506th is offline
OziOn
Senior Member
Join Date: Jan 2008
Old 07-06-2009 , 09:29   Re: Translations doesn't work
Reply With Quote #3

I've tried that too. No luck
OziOn is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 07-06-2009 , 19:35   Re: Translations doesn't work
Reply With Quote #4

Make sure to change maps to test it out. Translation files are only loaded once per map (even if you reload the plugin).
bl4nk is offline
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 07-07-2009 , 08:39   Re: Translations doesn't work
Reply With Quote #5

If this is Linux maybe there is something wrong with file permissions?
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
OziOn
Senior Member
Join Date: Jan 2008
Old 07-07-2009 , 16:04   Re: Translations doesn't work
Reply With Quote #6

Quote:
Originally Posted by bl4nk View Post
Make sure to change maps to test it out. Translation files are only loaded once per map (even if you reload the plugin).
I know.

Quote:
Originally Posted by exvel View Post
If this is Linux maybe there is something wrong with file permissions?
All files have the correct permissions.
OziOn is offline
MaKTaiL
Senior Member
Join Date: Jul 2008
Location: Brazil
Old 07-09-2009 , 10:02   Re: Translations doesn't work
Reply With Quote #7

The translations are not working for me either.
I tried changing maps and it still doesn't work.

The only way to make it work is by copying and replacing the EN translation files with the PT translation files.
But there is a problem with that, the "#format" keys aren't there.
So if you say "thetime" on the server for exemple, it ill give you:

"The current time is: {1}"

***EDIT***

I found what the problem was.
In the "core.cfg" file, you have to turn the "AllowClLanguageVar" to OFF.
If you don't do that, the translations won't work.
Now it is working fine for me.

Last edited by MaKTaiL; 07-09-2009 at 10:34.
MaKTaiL is offline
BAILOPAN
Join Date: Jan 2004
Old 07-09-2009 , 19:33   Re: Translations doesn't work
Reply With Quote #8

It's not that translations won't work, it's that your client language (the one in Steam) is either English or doesn't match a language SourceMod knows about.
__________________
egg
BAILOPAN is offline
OziOn
Senior Member
Join Date: Jan 2008
Old 07-12-2009 , 08:01   Re: Translations doesn't work
Reply With Quote #9

Quote:
Originally Posted by MaKTaiL View Post
I found what the problem was.
In the "core.cfg" file, you have to turn the "AllowClLanguageVar" to OFF.
If you don't do that, the translations won't work.
Now it is working fine for me.
That doesn't work for me. Everything then goes in english, and the 3rd party plugins stay in english too.

I noticed this in my core.cfg file:

Quote:
* Language that multilingual enabled plugins and extensions will use to print messages.
* Only languages listed in languages.cfg are valid.
*
* The default value is "en"
*/
"ServerLang" "en"
Could this be the issue? If so, what value does "ServerLang" need to be to make it read the clients cl_language cvar?
OziOn is offline
MaKTaiL
Senior Member
Join Date: Jul 2008
Location: Brazil
Old 07-12-2009 , 08:21   Re: Translations doesn't work
Reply With Quote #10

Quote:
Originally Posted by OziOn View Post
That doesn't work for me. Everything then goes in english, and the 3rd party plugins stay in english too.

I noticed this in my core.cfg file:

Could this be the issue? If so, what value does "ServerLang" need to be to make it read the clients cl_language cvar?
Oh!!! So THAT is the problem!
What is your language?
For exemple, mine is PT (Portuguese).
English is EN.
Yours is....
MaKTaiL 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 20:00.


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