Skip to content

Commit

Permalink
added a test fr another language. must
Browse files Browse the repository at this point in the history
  • Loading branch information
Anis committed Nov 22, 2024
1 parent 4ad493a commit 0651623
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 56 deletions.
5 changes: 3 additions & 2 deletions compare_tools/format_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
TEXT_DISPLAYED = {
"added_keys": "These keys were added since last update",
"removed_keys": "These keys were removed since last update",
"modified_keys": "These keys were updated since last update"
"modified_keys": "These keys were updated since last update",
"unmodified_keys": "These keys were not changed"
}


Expand Down Expand Up @@ -70,7 +71,7 @@ def format_output(config_json, mod):

mod = Mod(args.mod_url)
path_previous = mod.path_en / "locale.cfg"
path_new = mod.path_en / "locale copy.cfg"
path_new = mod.path / "locale/fr/locale.cfg"
# path_new = mod.download_locale_en()

diff = compare_configs(path_previous, path_new)
Expand Down
107 changes: 53 additions & 54 deletions output/Smart_Inserters/locale.cfg
Original file line number Diff line number Diff line change
@@ -1,102 +1,101 @@
[smart-inserters]
# unmodified_keys = These keys were unchanged
welcome = [Smart Inserters] Remember to check the mod settings if you want to disable/enable technology for range and diagonals!
# modified_keys = These keys were updated since last update
welcome = [Smart Inserters] en français

[flying-text-smart-inserters]
# modified_keys = These keys were updated since last update
offset-selector-is-disabled = Offset HOOHOHO
# unmodified_keys = These keys were unchanged
out-of-range = Out of range
invalid-position = Invalid position
no-inserter-selected = No inserter selected to perform this action
# unmodified_keys = These keys were not changed
offset-selector-is-disabled = Offset selector is disabled
required-technology-missing = Required technology missing: "__1__"
no-inserter-selected = No inserter selected to perform this action
invalid-position = Invalid position
out-of-range = Out of range

[controls]
# unmodified_keys = These keys were unchanged
smart-inserters-in-world-inserter-configurator-drop = In-world drop position configurator (outside UI)
smart-inserters-drop-rotate-reverse = Rotate drop position counterclockwise
smart-inserters-pickup-rotate-reverse = Rotate pickup position counterclockwise
smart-inserters-drop-offset-adjust = Adjust drop offset (closer/farther)
# unmodified_keys = These keys were not changed
smart-inserters-pickup-offset-adjust = Adjust pickup offset (closer/farther)
smart-inserters-pickup-rotate = Rotate pickup position clockwise
smart-inserters-pickup-distance-adjust = Adjust inserter's pickup distance outward
smart-inserters-drop-rotate-reverse = Rotate drop position counterclockwise
smart-inserters-drop-rotate = Rotate drop position clockwise
smart-inserters-pickup-distance-adjust = Adjust inserter's pickup distance outward
smart-inserters-in-world-inserter-configurator-drop = In-world drop position configurator (outside UI)
smart-inserters-pickup-rotate-reverse = Rotate pickup position counterclockwise
smart-inserters-pickup-distance-adjust-reverse = Adjust inserter's pickup distance inward
smart-inserters-drop-distance-adjust = Adjust inserter's drop distance outward
smart-inserters-drop-distance-adjust-reverse = Adjust inserter's drop distance inward
smart-inserters-pickup-rotate = Rotate pickup position clockwise
smart-inserters-drop-offset-adjust = Adjust drop offset (closer/farther)
smart-inserters-in-world-inserter-configurator-pickup = In-world pickup position configurator (outside UI)
smart-inserters-drop-distance-adjust-reverse = Adjust inserter's drop distance inward

[gui-smart-inserters]
# unmodified_keys = These keys were unchanged
configuration = Configuration
drop-offset = Drop offset
# unmodified_keys = These keys were not changed
position = pickup/Drop position
drop-offset = Drop offset
configuration = Configuration
pickup-offset = pickup offset

[mod-setting-name]
# unmodified_keys = These keys were unchanged
# unmodified_keys = These keys were not changed
si-directional-slim-inserters = Directional Slim Inserters
si-offset-technologies = Offset technology
si-single-line-slim-inserters = Single line for Slim Inserters
si-high-contrast-sprites = High contrast sprites
si-inserters-chase-belt-items = Chase items on a belt
si-disable-inserters-consumption = Disable inserters consumption
si-max-inserters-range = Max inserters range
si-directional-inserters = Directional Inserters
si-range-technologies = Range technologies
si-range-adder = Max range of each inserter
si-diagonal-technologies = Diagonal technologies
si-high-contrast-sprites = High contrast sprites
si-offset-selector = Offset selector
si-range-adder = Max range of each inserter
si-disable-long-inserters = Disable long inserters
si-disable-inserters-consumption = Disable inserters consumption
si-directional-inserters = Directional Inserters
si-single-line-inserters = Single line for Inserters
si-directional-slim-inserters = Directional Slim Inserters
si-inserters-chase-belt-items = Chase items on a belt
si-offset-technologies = Offset technology
si-single-line-slim-inserters = Single line for Slim Inserters
si-offset-selector = Offset selector
si-technologies-difficulty = Technology difficulty

[mod-setting-description]
# unmodified_keys = These keys were unchanged
# unmodified_keys = These keys were not changed
si-directional-slim-inserters = Allow inserters to pickup items only from a side and put them on the opposite side
si-offset-technologies = Enable offset tech
si-single-line-slim-inserters = Inserter will not be able to move diagonally
si-inserters-chase-belt-items = Inserter will follow vanilla rules and chase items on belts, following items can cause problems especially UPS problems (suggested =true)
si-disable-inserters-consumption = Disable inserters power usare of any kind
si-max-inserters-range = Set the maximum range of the inserters (1-6) (suggested =3)
si-directional-inserters = Allow inserters to pickup items only from a side and put them on the opposite side
si-range-technologies = Enable range technologies (without level 1 tech the inserter will not be editable)
si-range-adder = __REMARK_COLOR_BEGIN__“Inserter"__REMARK_COLOR_END__ each inserter is going to be limited to its range and also be limited by the max range (work best with diagonal technology on, note that if the max range is 1 and the inserter ha range 2 it will not be editable) \n __REMARK_COLOR_BEGIN__"Incremental"__REMARK_COLOR_END__ each inserter will have its range + an increment given by the tech <=max range (work best with range and diagonal technologies) \n __REMARK_COLOR_BEGIN__"Equal”__REMARK_COLOR_END__ every inserter will have the same range (the max range) (work best with range and diagonal technologies) \n__REMARK_COLOR_BEGIN__"Rebase"__REMARK_COLOR_END__ each inserter will have its minimum range updated to it's default range, max range will be the one you decide in the settings (an inserter of range 2 will not be able to place of pick item at range 1) \n__REMARK_COLOR_BEGIN__"incremental-with-rebase"__REMARK_COLOR_END__ same as incremental but inetsad of using the base range the increment start after the rebase \n __REMARK_COLOR_BEGIN__"inserter-with-rebase"__REMARK_COLOR_END__ similar to incremental-with-rebase but instead of adding an increment to the min range it unlock teh range up to the max range (if you want to allow inserter to change position only in their default range set the max range to 1)
si-diagonal-technologies = Enable diagonal technologies (without level 1 tech the inserter will not be editable)
si-offset-selector = Toggle if you want to have the pickup/drop offset selector on or off (on by default)
si-range-adder = __REMARK_COLOR_BEGIN__“Inserter"__REMARK_COLOR_END__ each inserter is going to be limited to its range and also be limited by the max range (work best with diagonal technology on, note that if the max range is 1 and the inserter ha range 2 it will not be editable) \n __REMARK_COLOR_BEGIN__"Incremental"__REMARK_COLOR_END__ each inserter will have its range + an increment given by the tech <=max range (work best with range and diagonal technologies) \n __REMARK_COLOR_BEGIN__"Equal”__REMARK_COLOR_END__ every inserter will have the same range (the max range) (work best with range and diagonal technologies) \n__REMARK_COLOR_BEGIN__"Rebase"__REMARK_COLOR_END__ each inserter will have its minimum range updated to it's default range, max range will be the one you decide in the settings (an inserter of range 2 will not be able to place of pick item at range 1) \n__REMARK_COLOR_BEGIN__"incremental-with-rebase"__REMARK_COLOR_END__ same as incremental but inetsad of using the base range the increment start after the rebase \n __REMARK_COLOR_BEGIN__"inserter-with-rebase"__REMARK_COLOR_END__ similar to incremental-with-rebase but instead of adding an increment to the min range it unlock teh range up to the max range (if you want to allow inserter to change position only in their default range set the max range to 1)
si-disable-long-inserters = Hides all the recipes for long inserters
si-disable-inserters-consumption = Disable inserters power usare of any kind
si-directional-inserters = Allow inserters to pickup items only from a side and put them on the opposite side
si-single-line-inserters = Inserter will not be able to move diagonally
si-directional-slim-inserters = Allow inserters to pickup items only from a side and put them on the opposite side
si-inserters-chase-belt-items = Inserter will follow vanilla rules and chase items on belts, following items can cause problems especially UPS problems (suggested =true)
si-offset-technologies = Enable offset tech
si-single-line-slim-inserters = Inserter will not be able to move diagonally
si-offset-selector = Toggle if you want to have the pickup/drop offset selector on or off (on by default)
si-technologies-difficulty = Select the difficulty of your technology progression, for more info open the mod zip and go to prototypes->technology

[technology-name]
# unmodified_keys = These keys were unchanged
si-unlock-offsets = Inserter pickup/drop offset
si-unlock-all-diagonals = Unlock all diagonals
si-unlock-x-diagonals = Unlock X diagonals
# unmodified_keys = These keys were not changed
si-unlock-cross = Unlock cross
si-unlock-x-diagonals = Unlock X diagonals
si-unlock-all-diagonals = Unlock all diagonals
si-unlock-range = Inserters range
si-unlock-offsets = Inserter pickup/drop offset

[technology-description]
# unmodified_keys = These keys were unchanged
si-unlock-range-2 = 7x7 inserters range
# unmodified_keys = These keys were not changed
si-unlock-x-diagonals =
si-unlock-range-1 = 5x5 inserters range
si-unlock-offsets =
si-unlock-all-diagonals =
si-unlock-x-diagonals =
si-unlock-range-2 = 7x7 inserters range
si-unlock-range-5 = 13x13 inserters range
si-unlock-range-4 = 11x11 inserters range
si-unlock-cross =
si-unlock-range-3 = 9x9 inserters range
si-unlock-range-1 = 5x5 inserters range
si-unlock-range-4 = 11x11 inserters range
si-unlock-range-5 = 13x13 inserters range

[technology-effect-description]
# unmodified_keys = These keys were unchanged
si-unlock-range-2 = Unlock 7x7 inserters range or increment by 2
# unmodified_keys = These keys were not changed
si-unlock-x-diagonals = Unlock 45° rotations
si-unlock-range-1 = Unlock 5x5 inserters range or increment by 1
si-unlock-offsets = Unlock pickup/drop offsets
si-unlock-all-diagonals = Unlock 360° rotations
si-unlock-x-diagonals = Unlock 45° rotations
si-unlock-range-2 = Unlock 7x7 inserters range or increment by 2
si-unlock-range-5 = Unlock 13x13 inserters range or increment by 5
si-unlock-range-4 = Unlock 11x11 inserters range or increment by 4
si-unlock-cross = Unlock horizontal and vertical mobility
si-unlock-range-3 = Unlock 9x9 inserters range or increment by 3
si-unlock-range-1 = Unlock 5x5 inserters range or increment by 1
si-unlock-range-4 = Unlock 11x11 inserters range or increment by 4
si-unlock-range-5 = Unlock 13x13 inserters range or increment by 5

0 comments on commit 0651623

Please sign in to comment.