Addition of localisations for custom player messages.
This commit is contained in:
9
L2J_Mobius_1.0_Ertheia/dist/game/data/lang/el/SendMessageLocalisation.xml
vendored
Normal file
9
L2J_Mobius_1.0_Ertheia/dist/game/data/lang/el/SendMessageLocalisation.xml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Replaces PlayerInstance sendMessage method messages with translated text. -->
|
||||
<!-- No pretty way of doing something like this. Consider using proper SystemMessages where possible. Keep this list short. -->
|
||||
<list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../xsd/SendMessageLocalisation.xsd">
|
||||
<localisation message="Entering world in Invulnerable mode." translation="Είσοδος στον κόσμο σε Άτρωτη κατάσταση." />
|
||||
<localisation message="Entering world in Invisible mode." translation="Είσοδος στον κόσμο σε Αόρατη κατάσταση." />
|
||||
<localisation message="Entering world in Silence mode." translation="Είσοδος στον κόσμο σε Σιωπηλή κατάσταση." />
|
||||
<localisation message="You have learned XXX new skills." translation="Έμαθες XXX νέες ικανότητες." />
|
||||
</list>
|
@@ -40,6 +40,7 @@ import org.l2jmobius.gameserver.data.xml.impl.NpcData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.OptionData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.PrimeShopData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.SayuneData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.SendMessageLocalisationData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.SkillData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.TeleportersData;
|
||||
import org.l2jmobius.gameserver.data.xml.impl.TransformData;
|
||||
@@ -331,6 +332,7 @@ public class AdminReload implements IAdminCommandHandler
|
||||
{
|
||||
SystemMessageId.loadLocalisations();
|
||||
NpcStringId.loadLocalisations();
|
||||
SendMessageLocalisationData.getInstance().load();
|
||||
AdminData.getInstance().broadcastMessageToGMs(activeChar.getName() + ": Reloaded Localisation data.");
|
||||
break;
|
||||
}
|
||||
|
18
L2J_Mobius_1.0_Ertheia/dist/game/data/xsd/SendMessageLocalisation.xsd
vendored
Normal file
18
L2J_Mobius_1.0_Ertheia/dist/game/data/xsd/SendMessageLocalisation.xsd
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
||||
<xs:element name="list">
|
||||
<xs:complexType>
|
||||
<xs:sequence>
|
||||
<xs:element name="localisation" maxOccurs="unbounded" minOccurs="0">
|
||||
<xs:complexType>
|
||||
<xs:simpleContent>
|
||||
<xs:extension base="xs:string">
|
||||
<xs:attribute type="xs:string" name="message" use="required"/>
|
||||
<xs:attribute type="xs:string" name="translation" use="required"/>
|
||||
</xs:extension>
|
||||
</xs:simpleContent>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:sequence>
|
||||
</xs:complexType>
|
||||
</xs:element>
|
||||
</xs:schema>
|
Reference in New Issue
Block a user