Some of you may noticed I've been posting some messages updates.
One forum member made me notice that hardcoded messaged send to players are bad

Of course if you have an English speaking community or your players use an English client all is fine.
I'd like to know who of you are interested on a system that allow you to set the custom system messages in different languages.
There is something half way done in core to replace SystemMessages for server's language.
I developed a system that allow server admins to set the custom messages present in L2J servers in their own language or even better in player's language choice.
We have to face the fact that there are many messages sent to player that are hardcoded and many of them are not even in proper English.
Also there are typos in the client and server side messages not present in NA client or other versions.
I know this may not sound nice for those who wrote those messages, but I'm not attacking anyone.
If you are interested you can help the following way (updated):
- Reporting hardcoded messages in core and datapack (Very important don't flood with post use a txt file and attach it to your post)
- Making translations of English version to your own language and sharing it (PM me).
- Fixing or reporting typos in any language file (use diff/patchs).
- Always using UTF-8.
- Not using Goolge translator or any translator, only for one word or expression, not for whole file.
Example of current code (updated):
Code: Select all
CustomMessage cm = CustomMessages.getInstance().getCustomMessage(1225, activeChar.getHtmlPrefix());cm.addString(player);activeChar.sendPacket(cm);
es.xml example (updated):
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><list> <cm id="1007" msg=""Agregada habilidad $skillId$-$lvl$ al Npc Id $npcId$." vars="$skillId$;$lvl$;$npcId$" /></list>
- Core support done.
- Datapack suport done.
- All core custom messages replaced.
- All datapack custom messages replaced.
I'll update as soon as possible.