Register for your free account! | Forgot your password?

You last visited: Today at 19:19

  • Please register to post and access all features, it's quick, easy and FREE!


[MEGA RELEASE]MultiLanguage System for Client

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2013
Posts: 27
Received Thanks: 119
[RELEASE]MultiLanguage System for Client

----EN----

Hello , i decided to posted multilanguage system (maded for metin2dr)The system allow to change the language of your client,this system was created in 20-30 min .You only need a locale for each language.The implementation of this system is very simple, but i have made a videotutorial also .


----ES----

Hola , me decidi postear el sistema multi-idioma echo para metin2dr.Este sistema permite cambiar el idioma de tu cliente rapido,fue echo en 20-30 minutos.Solo se necesita un locale para cada idioma.La implementacion en si,es simple,pero hize un videotutorial por si tenei dudas al respecto.

Video Tutorial:


Source:
Attached Files
File Type: zip MultiLanguage TheWarez.zip (2.4 KB, 1636 views)



.Eugen is offline  
Thanks
31 Users
Old 12/29/2013, 20:00   #2

 
elite*gold: 207
Join Date: Oct 2011
Posts: 7,315
Received Thanks: 7,518
Nice. Thx 4 share, it's very usefull.


Aze /.. is offline  
Old 12/29/2013, 20:15   #3
 
elite*gold: 5
Join Date: Oct 2013
Posts: 1,021
Received Thanks: 284
wow ... very great ! thank you very much !
.Zekay™ is offline  
Old 12/29/2013, 20:17   #4
 
elite*gold: 200
Join Date: Apr 2012
Posts: 577
Received Thanks: 290
Drop something to the ground


MartPwnS is offline  
Old 12/29/2013, 20:17   #5
 
elite*gold: 0
Join Date: Jun 2011
Posts: 736
Received Thanks: 498
Nice And thanks for sharing
NaOiZ is offline  
Old 12/29/2013, 20:24   #6
 
elite*gold: 0
Join Date: Nov 2013
Posts: 401
Received Thanks: 132
Mr.Xhater is offline  
Old 12/29/2013, 20:26   #7
 
elite*gold: 0
Join Date: Oct 2013
Posts: 27
Received Thanks: 119
Quote:
Originally Posted by Mr.Xhater View Post
You need a locale for each language.
.Eugen is offline  
Old 12/29/2013, 20:32   #8
 
elite*gold: 0
Join Date: Mar 2012
Posts: 646
Received Thanks: 693
rwwwr *___* Nice.
Kind regards
QuickFlameZ is offline  
Old 12/29/2013, 20:36   #9
 
elite*gold: 0
Join Date: Nov 2013
Posts: 401
Received Thanks: 132
Mr.Xhater is offline  
Old 12/29/2013, 20:47   #10
 
elite*gold: 100
Join Date: Jun 2009
Posts: 162
Received Thanks: 692
Quote:
"mega release"
I wanna show you something very funny:
Quote:
Originally Posted by dat cancer#1
Code:
import net		#unused
import snd		#unused
import locale	#unused
import ui
import uiTip	#unused
import dbg
import os
import app
> 2 days left until 2014
> NO ONE knows what is python
Code:
	def SAFE_SetEvent(self, func, *args):
		self.eventFunc = __mem_func__(func)
		self.eventArgs = args
		
	def SetEvent(self, func, *args):
		self.eventFunc = func
		self.eventArgs = args
SetEvent accepts a tuple of arguments so there's no need to create 4 defs like those below.
Quote:
Originally Posted by dat cancer#2
Code:
	def __Language_1(self):
		file = open("locale.cfg", "w")
 		file.write("10002 1252 en") 
		file.close()
		dbg.LogBox("The laguage of client was changed to English!")
		dbg.LogBox("Client will restart.")
		os.system('start Metin2.exe')
		app.Exit()
		self.Close()
	
	def __Language_2(self):
		file = open("locale.cfg", "w")
 		file.write("10002 1252 it") 
		file.close()
		dbg.LogBox("The laguage of client was changed to Iatly!")
		dbg.LogBox("Client will restart.")
		os.system('start Metin2.exe')
		app.Exit()
		
	def __Language_3(self):
		file = open("locale.cfg", "w")
 		file.write("10002 1252 de") 
		file.close()
		dbg.LogBox("The laguage of client was changed to Germany!")
		dbg.LogBox("Client will restart.")
		os.system('start Metin2.exe')
		app.Exit()
		
	def __Language_4(self):
		file = open("locale.cfg", "w")
 		file.write("10002 1252 es") 
		file.close()
		dbg.LogBox("The laguage of client was changed to Spanish!")
		dbg.LogBox("Client will restart.")
		os.system('start Metin2.exe')
		app.Exit()
I hope you'll appreciate this little advice. (there are more things I could add)
lollo_9_1 is offline  
Thanks
5 Users
Old 12/30/2013, 11:33   #11
 
elite*gold: 0
Join Date: Apr 2013
Posts: 40
Received Thanks: 12
Hi, your system is very nice but if i change language so serverinfo.py has this problem:
Code:
 if (locale.IsEUROPE() and app.GetLocalePath() == "locale/de"):
	STATE_NONE = "..."
And locale/de isnt change on locale/it Can you help me please? Thank you very much.
HsNecro is offline  
Old 12/30/2013, 11:43   #12
 
elite*gold: 100
Join Date: Jun 2009
Posts: 162
Received Thanks: 692
Quote:
Originally Posted by HsNecro View Post
Hi, your system is very nice but if i change language so serverinfo.py has this problem:
Code:
 if (locale.IsEUROPE() and app.GetLocalePath() == "locale/de"):
	STATE_NONE = "..."
And locale/de isnt change on locale/it Can you help me please? Thank you very much.
Delete that if statement or do something like this: (or post that file)
Code:
 if (locale.IsEUROPE() and app.GetLocalePath() in ("locale/de","locale/en","locale/es","locale/it")):
	STATE_NONE = "..."
lollo_9_1 is offline  
Thanks
1 User
Old 12/30/2013, 18:54   #13
 
elite*gold: 5
Join Date: Dec 2011
Posts: 1,808
Received Thanks: 945
1230 18:51:00549 :: Failed to load script file : UIScript/PopupDialog.py
1230 18:51:00552 ::
ui.py(line:2773) LoadScriptFile
system.py(line:192) execfile
system.py(line:161) Run
system.py(line:176) __LoadTextFile__
system.py(line:64) __init__

LoadScriptFile!!!!!!!!!!!!!! - <type 'exceptions.AttributeError'>:'NoneType' object has no attribute 'split'
*~.ιηνιη˘ιвℓє.~* is offline  
Old 12/30/2013, 19:05   #14
 
elite*gold: 300
Join Date: Apr 2013
Posts: 3,214
Received Thanks: 1,202
Wow, it's very helpfull
ty
#Saiirex is offline  
Old 02/10/2015, 06:32   #15
 
elite*gold: 0
Join Date: Jan 2011
Posts: 13
Received Thanks: 1
How to translate quests?


hsomy is offline  
Closed Thread



« [Release]Ingamepasswordchangenotification | [WBB-Release]Dark Brown (Old Astora2) »

Similar Threads
[Mega Release]IntroLogo Client Tutorial
11/30/2016 - Metin2 PServer Guides & Strategies - 57 Replies
-----EN----- Hello, I decided make public the IntroLogo sistem of Metin2DR. This system allows put images when you start the client. First you need download the resources. Please, be carrefully with the "TABS".
[Release] PixelStealth (Multilanguage Palladium Pixel Bot)
06/24/2015 - DarkOrbit - 144 Replies
Hello I am Patrik and I created and edited easy palladium bot which is free for everyone :) http://i.imgur.com/OyCFsVl.png Why PixelStealth? My pixelbot collect Palladium like OpenStealth. Do not believe me? Test it :) How to start: 1.) Download the * .rar file 2.) Unpack the *.rar file
[MEGA RELEASE]Automatic Ox-Event System
03/23/2013 - Metin2 PServer Guides & Strategies - 25 Replies
--]-- quest oxevents begin state start begin function open() if(oxevent.open() == 0) then return 0 elseif(oxevent.open() == 1) then return 1 else
Perfect World Multilanguage Service(MS) Working Multi Client
09/17/2010 - Perfect World - 0 Replies
its only a multi client for pwms. enjoy ;)



All times are GMT +1. The time now is 19:19.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.