If you have been given a language, the massive language table must be pasted at the BOTTOM of the LangData.lua file, which can be opened in any text editor.
The other line which may look like this:
kmapi.addToTable( "language", "English", "1");
is what the plugin uses to load up the language files for use.
This needs to go at the BOTTOM of the Main.lua file
kmapi.addToTable( "language", ""..P39); -- Title Text
kmapi.addToTable( "language", "English", "1");
kmapi.addToTable( "language", "Fran\195\167ais", "2");
kmapi.addToTable( "language", "Deutsch", "3");
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", " "); -- REPLACE ANY OF THESE, OR ADD THE LINE BELOW DEUTSCH!
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", ""..P23); -- End Text
Creating your own data
This bit is a bit tricky, so the steps need to be followed exactly!
firstly go into the LangData.lua file, and copy the very last table, it should look like this:
Lang["4"]={}; -- CUSTOM
Lang["4"][1]="Khazad Mithril ABC ";
Lang["4"][2]="";
Lang["4"][3]="";
Lang["4"][4]="";
Lang["4"][5]="";
Lang["4"][6]="";
Lang["4"][7]="";
Lang["4"][8]="";
Lang["4"][9]="";
Lang["4"][10]="";
Lang["4"][11]="";
Lang["4"][12]="KMABC: XXX";
Lang["4"][13]="";
...
Now, here's a tricky bit! - if you only want the language for yourself, then you can carry on the numbering system, so change this new one to 5 - like
Lang["5"]={}; -- CUSTOM
Lang["5"][1]="Khazad Mithril ABC ";
Lang["5"][2]="";
Lang["5"][3]="";
Lang["5"][4]="";
Lang["5"][5]="";
Lang["5"][6]="";
Lang["5"][7]="";
Lang["5"][8]="";
Lang["5"][9]="";
Lang["5"][10]="";
Lang["5"][11]="";
Lang["5"][12]="KMABC: XXX";
Lang["5"][13]="";
...
If you want to give it to another person, make the id as unique as possible, like 147 or 223,
WARNING: I am not aware of any id restrictions, so it is best to keep the id as low as possible.
After this, Translate all of the data using another language! - No other way to do it really!
then copy one of the lines at the bottom of the Main.lua that look like this, (or copy this one)
kmapi.addToTable( "language", "English", "1");
language means that this one is being added to the language table,
English is the IN GAME text that appears in the language table
1 is the language ID
Language doesnt need changing, however, change "English" to whatever the language is, KEEPING THE QUOTES!!! and change "1" to the ID of your language in the LangData.lua file, KEEPING THE QUOTES!!! Now all you need to do is to place this line at the BOTTOM of the Main.lua file
kmapi.addToTable( "language", ""..P39); -- Title Text
kmapi.addToTable( "language", "English", "1");
kmapi.addToTable( "language", "Fran\195\167ais", "2");
kmapi.addToTable( "language", "Deutsch", "3");
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", " "); -- REPLACE ANY OF THESE, OR ADD THE LINE BELOW DEUTSCH!
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", " "); ]
kmapi.addToTable( "language", ""..P23); -- End Text
and you're done!
should you want to give this language (or colour - but see other page) to a friend, copy the
kmapi.addToTable( "language", "English", "1");
type line that you created last, and copy the language table that you created,
FROM HERE:
Lang["4"]={}; -- CUSTOM
Lang["4"][1]="Khazad Mithril ABC ";
Lang["4"][2]="";
Lang["4"][3]="";
Lang["4"][4]="";
Lang["4"][5]="";
Lang["4"][6]="";
Lang["4"][7]="";
Lang["4"][8]="";
Lang["4"][9]="";
Lang["4"][10]="";
Lang["4"][11]="";
Lang["4"][12]="KMABC: XXX";
Lang["4"][13]="";
...
To The Bottom Of Here
...
Lang["4"][39]="";
Lang["4"][40]="";
Lang["4"][41]="";
Lang["4"][42]="";
Lang["4"][43]="";
Lang["4"][44]="";
Lang["4"][45]="";
Lang["4"][46]="";
Lang["4"][47]="";
Lang["4"][48]="";
Lang["4"][49]="";
Lang["4"][50]="";
Lang["4"][51]="";
And send these to your friend.
And that's it for this section!