In my mod, “Picklocks Rocket Silo Stats,” I'm trying to generate a list of the localized names of items that were launched into space as payloads. To do this, I’m trying to obtain the localized names of the items via calls to “request_translation” through the “on_string_translated” event.
What happened?
However, for some in-game vanilla items, the “on_string_translated” event triggered by “request_translation” returns “false” as the translation status, and therefore no localized name for the item is returned as a result.
See the following excerpt from a log file as an example.
Code: Select all
32.831 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = true - player index = 1 - unique id = 1 - localised_string = item-name.space-platform-starter-pack item name = space-platform-starter-pack result = Grundgerüst für Raumplattform
32.831 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = true - player index = 1 - unique id = 2 - localised_string = item-name.space-platform-starter-pack item name = space-platform-starter-pack result = Grundgerüst für Raumplattform
32.831 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 3 - localised_string = item-name.space-platform-hub item name = space-platform-hub result =
32.831 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 4 - localised_string = item-name.space-platform-hub item name = space-platform-hub result =
32.831 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 5 - localised_string = item-name.pipe item name = pipe result =
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 6 - localised_string = item-name.pipe item name = pipe result =
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 7 - localised_string = item-name.pipe-to-ground item name = pipe-to-ground result =
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 8 - localised_string = item-name.pipe-to-ground item name = pipe-to-ground result =
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 9 - localised_string = item-name.construction-robot item name = construction-robot result =
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = false - player index = 1 - unique id = 10 - localised_string = item-name.construction-robot item name = construction-robot result =
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = true - player index = 1 - unique id = 11 - localised_string = item-name.iron-plate item name = iron-plate result = Eisenplatte
32.832 Script @__PicksRocketStats__/control.lua:59: [Picklocks rocket silo stats V2.1.0]: pi_rss_on_string_translated: translated = true - player index = 1 - unique id = 12 - localised_string = item-name.iron-plate item name = iron-plate result = Eisenplatte
I expected the localized name to be returned by the “on_string_translated” event for all in-game vanilla items.
Does it happen always, once, or sometimes?
This happens every time for the same items whenever the “on_string_translated” event is triggered for these items by a call to “request_translation.”
Attached are the latest log file, a test save file, and the current developer version of my mod, “Picklocks Rocket Silo Stats.”

