AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   Translations doesn't work (https://forums.alliedmods.net/showthread.php?t=96542)

OziOn 07-06-2009 07:00

Translations doesn't work
 
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.

Lebson506th 07-06-2009 09:27

Re: Translations doesn't work
 
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.

OziOn 07-06-2009 09:29

Re: Translations doesn't work
 
I've tried that too. No luck :(

bl4nk 07-06-2009 19:35

Re: Translations doesn't work
 
Make sure to change maps to test it out. Translation files are only loaded once per map (even if you reload the plugin).

exvel 07-07-2009 08:39

Re: Translations doesn't work
 
If this is Linux maybe there is something wrong with file permissions?

OziOn 07-07-2009 16:04

Re: Translations doesn't work
 
Quote:

Originally Posted by bl4nk (Post 866077)
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 (Post 866466)
If this is Linux maybe there is something wrong with file permissions?

All files have the correct permissions.

MaKTaiL 07-09-2009 10:02

Re: Translations doesn't work
 
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.

BAILOPAN 07-09-2009 19:33

Re: Translations doesn't work
 
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.

OziOn 07-12-2009 08:01

Re: Translations doesn't work
 
Quote:

Originally Posted by MaKTaiL (Post 868175)
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?

MaKTaiL 07-12-2009 08:21

Re: Translations doesn't work
 
Quote:

Originally Posted by OziOn (Post 870403)
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....


All times are GMT -4. The time now is 14:12.

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