TheWireLord / ConduitDeconstruct

This mod was designed to help those players, like myself, that find it annoying to have to deconstruct a single power conduit at a time. With this mod you will be able to not only view your entire power grid, but also designate mass amounts of conduits to be deconstructed at once. It is a very simple concept that I believe will be very useful to players out there. This mod also has support for almost all modded conduits as well.
7 stars 2 forks source link

Add translation support #6

Open JiaRG opened 3 months ago

JiaRG commented 3 months ago

Use Patchs instead of Defs.

The current method is to add a new command. If you want to replace the deconstruct command under the power node, please change the content in the Patch file to

<?xml version="1.0" encoding="utf-8" ?>
<Patch>
    <Operation Class="PatchOperationSequence">
        <success>Always</success>
        <operations>
            <li Class="PatchOperationReplace">
                <xpath>/Defs/DesignationCategoryDef[defName="Power"]/specialDesignatorClasses/li[text()="Designator_Deconstruct"]</xpath>
                <value>
                    <li>ConduitDeconstruct.Designator_DeconstructPowerConduit</li>
                </value>
            </li>
        </operations>
    </Operation>
</Patch>
FerchuDev commented 2 months ago

Hi @TheWireLord, could you implement what JiaRG is suggesting?

And here is the support for Spanish:

Common/Languages/Spanish/Keyed/Designators.xml

Deconstruir conductos Deconstruir conductos

Thx!