A simple script for MTA San Andreas, thanks to which it becomes possible to quickly translate the server into various languages. In order to add your language, write a new xml file in the meta.xml file in the langs folder based on other localization files. To get the desired text, launch the resource (if all the required text is included in the localization files) and then use the following function in the script you need to get the text you need: exports.dt_lang:getText( , here you specify from which file you want to load the text) For example: 1. Based on those xml files that are present in the archive, add your own text to them 2. Refer to it exports.dt_lang:getText( "testtext", "ru" )
Can be used on any projects (currently if you will use it, point me somewhere as the one who participated in the development of your server :D ) And yes, if something is not clear, ask