that's because those techs don't have their own string. They take theirs from their previous tier and simply add a number after it. (At least that is how i think it works)
Yeah, I agree with cartmen, if a technology ends with a -#, EG automation-2 it will display the locale entry for automation with a number after it "Automation 2" for example.
It's basically to minimise the number of locale entries required for things that usually have multiple tiers, like research. it doesn't work with entities or items, just technology.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
That makes sense internally, but for an api it should still return "automation 2".
Now I need to take the technology name, strip it of its number (if any) and the dash before it, run that through the get_localised_name, and then add the number back in. Besides, as far as I know, trying to manipulate the string coming from get_localised_name results in an error an sich, stating you can't concatenate a table and string (but that's from the top of my head, but I'm 99% sure).
I'm not entirely sure this is actually a bug, but I agree that if the game itself is able to parse a technology localisation string, then the command should return the same result as well, instead of an error.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.