multilang

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
sancak
Posts: 77
Joined: Thu Mar 04, 2010 10:15 pm

multilang

Post by sancak »

If you want to receive support we need this info to help you properly.
» Find Revision
i'm using freya server last update.

my question is about language support. how are we using this system? is there any guide.

in my server i create a folder in gameserver\data\lang\tr\data\html\.....\.... etc.

how a player is choosing this option?
will i put htmls(translated) in this folder with same npc id?

thanks for your answers, i think this will help lots of ppl
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multilang

Post by jurchiks »

The htm's are named and placed exactly the same as data/html, just in lang/%languagehere%/data/html
Players use a voiced command .lang to choose their language (if you type it without parameters, it will give you an explanation).
If the htm in the language they've chosen is not present, the default will be used.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
sancak
Posts: 77
Joined: Thu Mar 04, 2010 10:15 pm

Re: multilang

Post by sancak »

thanks jurchiks

is it possible to translate everything in data folder like scripts, instance or quest?
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multilang

Post by jurchiks »

Everything that is in .htm files, more or less.
For the system messages that are inside scripts you'd need to modify them to change text depending on char preference.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
sancak
Posts: 77
Joined: Thu Mar 04, 2010 10:15 pm

Re: multilang

Post by sancak »

gameserver\data\scripts\quests\2_WhatWomenWant1\30146-01.htm

i'm translating this htmls too... this is awesome thanks a lot
sancak
Posts: 77
Joined: Thu Mar 04, 2010 10:15 pm

Re: multilang

Post by sancak »

i have some questions :oops:

1.what are we doing with
C:\Users\gunce\Desktop\freya\gameserver\data\lang\tr\systemmsg.txt

2.is this the SystemMsg-e.dat in the system folder or what?

3.when i translate this file nothing change, what should i do?


thanks
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: multilang

Post by jurchiks »

well, it contains a lot of the same text that's in systemmsg-e.dat, but there's less than half of it.
I think I read somewhere that it's not used/not working yet.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Probe
Posts: 915
Joined: Thu Sep 03, 2009 6:36 pm
Location: Israel
Contact:

Re: multilang

Post by Probe »

I think approx 100-150 messages from the file aren't used ingame anymore but the rest are, l2j simply didn't add them to the java enum yet beacause they are for missing events/features
sancak
Posts: 77
Joined: Thu Mar 04, 2010 10:15 pm

Re: multilang

Post by sancak »

now i'm using freye latest version... is systemmsg work? and what is sm folder, and what is SystemMessageLocalisation.xml how will i write and where will i find message id.

i change configs to true,
i create my folders for turkish language as:

/lang/tr/data/html
/lang/tr/data/scripts etc...

/lang/tr/sm
/lang/tr/sm/SystemMessageLocalisation.xml
/lang/tr/systemmsg.txt

thanks for answers...
User avatar
tukune
Posts: 533
Joined: Sun Mar 29, 2009 2:35 pm
Location: Japan

Re: multilang

Post by tukune »

"systemmsg.txt" is a just document. not work. move to recycle box it.
need modify client.
sancak
Posts: 77
Joined: Thu Mar 04, 2010 10:15 pm

Re: multilang

Post by sancak »

ok i see so what is SystemMessageLocalisation.xml? and is it working?
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: multilang

Post by Hyrelius »

I'm sorry to revive such an old thread, but it seems that nothing regarding the localization of SystemMessageId works yet. Not even if I send the SystemMessageId by myself (using .sendPacket). It's always the English text, that appears in the client. So am I correct? It still doesn't work at all?

I of course have multilang enabled in "L2JMods.properties" and languages set, yet I still see no change - regardless of what locale I pick.
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
User avatar
Szponiasty
Advanced User
Advanced User
Posts: 557
Joined: Mon Apr 21, 2008 1:31 pm
Location: Eastern Poland

Re: multilang

Post by Szponiasty »

Hyrelius wrote:I'm sorry to revive such an old thread, but it seems that nothing regarding the localization of SystemMessageId works yet. Not even if I send the SystemMessageId by myself (using .sendPacket). It's always the English text, that appears in the client. So am I correct? It still doesn't work at all?

I of course have multilang enabled in "L2JMods.properties" and languages set, yet I still see no change - regardless of what locale I pick.
I'm going out now, be back on monday. Remind me and I'll share my rework for languages support for system messages and other.
And in the next chronicle they went into space, fighting the evil empire... In a galaxy far, far away xD
Hyrelius
Posts: 257
Joined: Thu Dec 16, 2010 5:16 am

Re: multilang

Post by Hyrelius »

Dude, that'd be awesome and I'm sure, that others would highly appreciate it as well! I'd be very happy if you could help me by sharing your work regarding system messages and those other things whatever they might be. Thank you in advance, man :).
Image
I don't mind helping - however: I only do so if I want to.
No support for other server packs than L2J.
User avatar
UnAfraid
L2j Veteran
L2j Veteran
Posts: 4199
Joined: Mon Jul 23, 2007 4:25 pm
Location: Bulgaria
Contact:

Re: multilang

Post by UnAfraid »

Hyrelius wrote:Dude, that'd be awesome and I'm sure, that others would highly appreciate it as well! I'd be very happy if you could help me by sharing your work regarding system messages and those other things whatever they might be. Thank you in advance, man :).
There is already existing multi-language system for system messages even for npc strings.
Just noone uses it yet.
Image
Post Reply