jangforce Posted August 31, 2023 Share Posted August 31, 2023 (edited) i used "Refurbish" mod. this is repair mod i just want to translate my own language this mod. but there is NO TRANSLATE FORDER and this mod is just one lua file(mods\Refurbish\media\lua\client\ LUA TEXT FILE) plus, Not in the same form as "module, base item, like that" and just written in the notepad. [spoiler][code]require "TimedActions/ISBaseTimedAction" require('luautils'); FixerWithContext = {}; FixerWithContext.createInventoryMenu = function(playerIndex, context, items) local player = getSpecificPlayer(playerIndex); if #items > 1 then return; end local item; for _, entry in ipairs(items) do --keeping this just in case if type(entry) == "table" then item = entry['items'][1]; else item = entry end end --player:Say(tostring(item:getCategory()), 0.0, 1.0, 0.0, UIFont.Small, 30.0, "radio") if item and item:getContainer() == player:getInventory() and (item:getCondition() ~= item:getConditionMax() or item:getHaveBeenRepaired() > 1) and item:getCategory() ~= "Clothing" and item:getCategory() ~= "Food" then if (item:getCategory() == "Weapon" and item:isAimedFirearm()) then --shooty shooty bang bangs, use toothbrush and a piece of cloth to clean local tool = "Toothbrush" local fixer = "RippedSheets" local skill = Perks.Reloading local skillLvl = 3 local anim = CharacterActionAnims.Craft local time = 1200 + 400 * item:getHaveBeenRepaired() local repAmount = 0.1 FixerWithContext.createInventoryObjectMenuEntry(player, context, item, tool, fixer, skill, skillLvl, anim, time, repAmount); --open context menu return;[/code][/spoiler] I want to translate it while comparing it to other mods' translations, but it's hard because I don't understand modding. If you look at the translation folder of other mods, it usually looks like "ItemName_EN = {", but this mod just says local tool = "Toothbrush", so it was impossible to translate when I tried. this is Screen Shot in game. I DONT KNOW why just [Perks.Maintenance] is translated only Edited August 31, 2023 by jangforce Link to comment Share on other sites More sharing options...
excon Posted September 1, 2023 Share Posted September 1, 2023 Hi you will need a translate folder structure under media\lua\shared\Translate and add your translations there go through your installed mods folder and look for mods that use that file structure i just looked into my installed mod and saw that structure there normally installed mods are in this folder having your install as root steamapps\workshop\content\108600 jangforce 1 Link to comment Share on other sites More sharing options...
jangforce Posted September 2, 2023 Author Share Posted September 2, 2023 18 hours ago, excon said: Hi you will need a translate folder structure under media\lua\shared\Translate and add your translations there go through your installed mods folder and look for mods that use that file structure i just looked into my installed mod and saw that structure there normally installed mods are in this folder having your install as root steamapps\workshop\content\108600 first of all, thx for reply. but i don't know whats your say. already I know that most mods have a translation folder. but this mod structure is mods\Refurbish\media\lua\client\RefurbishWithContext.lua there is just ONLY ONE LUA NOTE PAD. I've attached a lua file. I'm not sure how to proceed with the translation, as the structure of a typical mod is completely different from a typical lua file. RefurbishWithContext.lua Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now