Skip to content

Commit

Permalink
Search Engine: Fix some strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Zomis committed Oct 14, 2020
1 parent 06b365a commit 7f33a0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions factorio-search-engine_0.0.1/gui/step_2_choose_things.lua
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ local function add_matching_text_results(context, results, searcher)
for result_type, v in pairs(results) do
local elems = gui.build(context.parent, {
{type="flow", direction="vertical", children={
{type="label", caption={"search_engine.types." .. result_type}},
{type="label", caption={"search_engine.types_" .. result_type}},
{type="flow", direction="horizontal", save_as="content", children={}},
{type="flow", direction="vertical", save_as="search_options", children={}},
}}
Expand All @@ -59,7 +59,7 @@ local function add_matching_text_results(context, results, searcher)
elems.search_options.add {
type = "checkbox",
name = search_plugin_name,
caption = { "search_engine.types." .. result_type .. "." .. search_plugin_name },
caption = { "search_engine.types_" .. result_type .. "_" .. search_plugin_name },
state = true
}
end
Expand Down
4 changes: 4 additions & 0 deletions factorio-search-engine_0.0.1/locale/en/strings.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ search_button=Search
action_zoom_to_map=Zoom to Map
results_result_count=Results: __1__
results_count_sum=Sum: __1__
types_items=Items
types_signals=Signals
types_signals_Signals=Signals
types_items_Containers=Containers

[mod-name]
search_engine=Search Engine
Expand Down

0 comments on commit 7f33a0b

Please sign in to comment.