Raised This Month: $ Target: $400
 0% 

Multilingual problem ("half" English)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Chill it BanG
Junior Member
Join Date: Nov 2013
Location: Latvia
Old 11-15-2014 , 09:04   Multilingual problem ("half" English)
Reply With Quote #1

I have problem with multilingual system and I cannot find reason and/or solution, so I thought someone of you could help.

As title says "half English" - most of my plugins runs by using "LANG_PLAYER" for chat announcements and everything was fine, till yesterday I updated one of my plugins with some new lines (also ML part)... I added some "client_print_color" and actually that is all i did.
At first I used "register_dictionary_colored", but then I thought, maybe that is the reason, so I removed color "codes" (!t/!g/!n) from ML file and changed back to "register_dictionary"... nothing changed.

Well, since I hate asking for help, I tried good ol` searching, I found one topic https://forums.alliedmods.net/showthread.php?t=129952 the same problem, any solution provided :<

And, this is for ALL plugins that use ML, not only for modified one!

No, I am not getting ML_NOTFOUND error.

Some code from plugin (also some things I tried, like using formatex, and printing msg without colors)
PHP Code:
//new text[128]
new name[32]
get_user_name(idname31)
//formatex(text,127,"%L",LANG_PLAYER,"BOUGHT_SPEED",name, powertime[id][1])
client_print_color(0,RED,"^3[TSHOP]^1 %L",LANG_PLAYER,"BOUGHT_SPEED",namepowertime[id][1])
//client_print(0,print_chat,"[TSHOP] %L",LANG_PLAYER,"BOUGHT_SPEED",name, powertime[id][1]) 
Some lines ML, i know [lv] is not official amxmodx language, but it has been working without any error since this day.

HTML Code:
[en]
BOUGHT_NOCLIP = %s bought noclip for %d seconds
BOUGHT_SILENT = %s bought silent footsteps for %d seconds
BOUGHT_BHOP = %s bought autobhop for %d seconds
BOUGHT_SPEED = %s bought speed for %d seconds
BOUGHT_GRAVITY = %s bought low gravity for %d seconds

[lv]
BOUGHT_NOCLIP = %s nopirka noclip uz %d sekundēm
BOUGHT_SILENT = %s nopirka klusus soļus uz %d sekundēm
BOUGHT_BHOP = %s nopirka autobhop uz %d sekundēm
BOUGHT_SPEED = %s nopirka ātrumu uz %d sekundēm
BOUGHT_GRAVITY = %s nopirka zemu gravitāciju uz %d sekundēm
__________________
Author of deathrun_ezyKore / fy_NewWorldOrder and some other maps

Last edited by Chill it BanG; 11-15-2014 at 09:04.
Chill it BanG is offline
 



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 08:00.


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