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

Translation doesn't work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Evian
Junior Member
Join Date: Jun 2009
Old 09-05-2009 , 23:43   Translation doesn't work
Reply With Quote #1

Hello
First , I want to say that I'm a beginner with sourcemod ...
And Im french so please forgive me for my bad english .
Anyway I have a problem with translations :

I am using a plugin wich can have translated phrases .

The plugin is : http://forums.alliedmods.net/showthread.php?p=880791

Look @ my core.cfg
It seems correct , For example I have some german friends and when I asked them to type " thetime " they saw the answer in german and I did the same thing and I saw it in french so it works good .
Core.cfg:
Code:
 
"ServerLang"    "fr"
"AllowClLanguageVar"        "On"
But when I try to translate this one :

PHP Code:
"WelcomeMsg1"
    
{
        
"#format"    "{1:N}"
        "en"        "{green}Hello {olive}{1}! {lightgreen}Don't be shy! Say {green}Hello {lightgreen}to other players."
        "pl"        "{green}Witaj {olive}{1}! {lightgreen}Nie wstydź się! {green}Przywitaj {lightgreen}się z resztą graczy."
    

Into this one :

PHP Code:
"WelcomeMsg1"
    
{
        
"#format"    "{1:N}"
        "en"        "{green}Hello {olive}{1}!."
        "pl"        "{green}Witaj  {olive}{1}!."
        "fr"        "{green}Bonjour {olive}{1}!."
        "de"         "{green}Hallo {olive}{1}!."
    

People can only see it in french even Germans , English 'n Polish peoples
Evian is offline
Evian
Junior Member
Join Date: Jun 2009
Old 09-06-2009 , 19:27   Re: Translation doesn't work
Reply With Quote #2

please
Evian is offline
KhyrOO
Senior Member
Join Date: May 2008
Location: Budapest, Hungary
Old 09-08-2009 , 07:20   Re: Translation doesn't work
Reply With Quote #3

After u change something in the translation files, the plugin needs to be reloaded for correct working.

sm plugins reload "plugin name"
__________________


The ForCe will be WiTH U ALwaYs!
KhyrOO is offline
Send a message via MSN to KhyrOO
exvel
SourceMod Donor
Join Date: Jun 2006
Location: Russia
Old 09-08-2009 , 11:26   Re: Translation doesn't work
Reply With Quote #4

This is because it's a little bit incorrect implementation of translation functionality by plugin's author. You should report about this problem in plugin's thread.

This can be easily fixed by changing every:
PHP Code:
CPrintToChat (client"%T""Some phrase"LANG_SERVER); 
to
PHP Code:
CPrintToChat (client"%t""Some phrase"); 
in the code.
__________________
For admins: My plugins

For developers: Colors library
exvel is offline
Send a message via ICQ to exvel
Evian
Junior Member
Join Date: Jun 2009
Old 09-08-2009 , 16:20   Re: Translation doesn't work
Reply With Quote #5

Awesome thx guys
Evian 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 03:25.


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