Raised This Month: $ Target: $400
 0% 

Make multilinguage


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-25-2009 , 07:29   Make multilinguage
Reply With Quote #1

Hy, I didnt quite find a tutorial, what explaines all I need. Here is the line
PHP Code:
show_hudmessage(0,"The time: %d:%d:%d^nTime remaining: %d:%02d^nNext map: %s"time_hourtime_mintime_sectimeleft 60timeleft 60,nextmap
I need it to use "%L" so I can change the languages, because in my language we have ää õõ öö üü but they dont work in the real .sma so I need to use a txt file
vL. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2009 , 07:37   Re: Make multilinguage
Reply With Quote #2

Code:
// In plugin_init() register_dictionary( "mydictionaryfile.txt" ); // In your function() show_hudmessage(0,"%L", LANG_PLAYER, "TIME_REMAINING", time_hour, time_min, time_sec, timeleft / 60, timeleft % 60,nextmap ); // In your dictionary file : [en] TIME_REMAINING = The time: %d:%d:%d^nTime remaining: %d:%02d^nNext map: %s

As notes : I use LANG_PLAYER because the id here is 0. If 0 is not passed you have to use this id instead. eg : If you write show_hudmessage(index ; you have to use index instead of LANG_PLAYER.
__________________

Last edited by Arkshine; 10-25-2009 at 07:40.
Arkshine is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-25-2009 , 08:41   Re: Make multilinguage
Reply With Quote #3

Hmm, it is not working :S
Here is the hudmsg.txt
PHP Code:
[et]
TIME_REMAINING Kellaaeg: %d:%d:%d^nAega jäänud: %d:%02d^nJärgmine map: %s

[en]
TIME_REMAINING The time: %d:%d:%d^nTime remaining: %d:%02d^nNext map: %
I want it to use the [et]

Last edited by vL.; 10-25-2009 at 12:32.
vL. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2009 , 08:53   Re: Make multilinguage
Reply With Quote #4

What's not working ? The accents ? I forgot to say you have to save the dictionary file as UTF8 without BOM if you want to see the accents in game.
__________________
Arkshine is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-25-2009 , 09:36   Re: Make multilinguage
Reply With Quote #5

O.. yess, thank you, its working now, but there are some errors with the type, the hud isn't showing right, its like some letters and numbers are bolder and having some flaws, like it isn't clean.
Also I need some rank system

Last edited by vL.; 10-25-2009 at 12:38.
vL. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2009 , 09:39   Re: Make multilinguage
Reply With Quote #6

Not sure what you are talking about. But it displayed weirdely for some characters you can't do nothing about it.
__________________
Arkshine is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-25-2009 , 10:05   Re: Make multilinguage
Reply With Quote #7

Okay, but can you help me with the Rank thing?
vL. is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-25-2009 , 10:34   Re: Make multilinguage
Reply With Quote #8

One problem = One thread. You better create another thread with this problem.
__________________
Arkshine is offline
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 10-25-2009 , 11:13   Re: Make multilinguage
Reply With Quote #9

Okay, uve been very helpfull.

+ karma.
vL. 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 17:47.


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