Additional configurations for Dyansty Treasure Hunter
1. Configure language
Change default language
To change the language of our Dynasty Miner, we must go to dynasty_treasure_hunter/config/translations.lua
By default, we will find this in the first few lines:
--- Select your language here.
--- Available languages: en, it, es, fr, pt, de, ru, tr
--- But you can modify them or create your own language below.
Config.Language = "en"
Note: To change the language, just replace the text in quotes by the one you want from the options.
Bad or missing translation
The Dynasty Treasure Hunter is translated into many languages, but since we are not speakers of all the available languages, there may be errors in the translation, here is the solution:
In dynasty_treasure_hunter/config/translations.lua, if you scroll down, you will find the translations, they will look like this, we will take the French translation as an example, but it is the same for all
['fr'] = { ---@TargetScriptOptions
["TARGET_START_WORKING"] = "Commencer à travailler",
["TARGET_STOP_WORKING"] = "Arrêter de travailler",
["TARGET_SELL_TREASURES"] = "Vendre des trésors",
---@Notifications
["NOTIFY_DROP_WEAPON"] = "Vous devez d'abord ranger votre arme",
["NOTIFY_YOU_ARE_NOT_ON_DUTY"] = "Vous n'êtes pas en service",
["NOTIFY_GOT_PAYMENT"] = "Vous avez reçu un paiement de : $",
["NOTIFY_ALREADY_ON_DUTY"] = "Vous êtes déjà en train de travailler !",
["NOTIFY_NEED_ON_DUTY_TO_SELL"] = "Vous devez commencer la mission pour pouvoir vendre !",
["NOTIFY_YOU_SOLD"] = "Vous avez vendu vos trésors et avez reçu : ",
["NOTIFY_NO_TREASURES_TO_SELL"] = "Vous n'avez pas de trésor à vendre",
---@Hint Notifications
["HINT_PUT_METAL_DETECTOR_IN_BELT"] = "~INPUT_MULTIPLAYER_INFO~ Mettez le détecteur de métal à la ceinture",
["HINT_PUT_METAL_DETECTOR_IN_HAND"] = "~INPUT_MULTIPLAYER_INFO~ Mettez le détecteur de métal en main",
["HINT_TEXT_ALL_OPTIONS"] = "~INPUT_PICKUP~ Creusez pour trouver un trésor\n~INPUT_MULTIPLAYER_INFO~ Mettez le détecteur de métal à la ceinture",
---@Help Notifications
["HELP_FIND_TREASURE_WITH_METAL_DETECTOR"] = "Allez dans la zone surlignée et trouvez un trésor. Vous devez avoir le détecteur de métaux en main et être à pied.",
["HELP_GO_BACK_TO_SELL_TREASURE_OR_CONTINUE"] = "Retournez et vendez vos trésors ou continuez à chercher.",
["HELP_CANT_USE_ON_VEHICLE"] = "Vous ne pouvez pas utiliser votre détecteur de métaux sur un véhicule.",
["HELP_FOUND_TREASURE"] = "Vous avez trouvé un trésor ! Commencez à creuser et voyez ce que c'est.",
["HELP_YOU_NEED_METAL_DETECTOR_IN_HAND"] = "Vous devez avoir le détecteur de métaux en main pour l'utiliser.",
},
Note: To solve the translations, simply change the text of the words that are in quotes for those that correctly adapt to your language.
If your language is not in the list of translations, simply copy another existing translation and paste it below the others, you should replace the name of the translation, ['fr'] in the case above, by letters that are identified with the name of your language, and finally, change it also in Config.Languages in the first lines of config.