I want to make my own object property editor.
I extract property names and values using RTTI tools.
But I want to translate property names to another language, and this is a big problem. I can make a ResourceString for any property name, but how can I then use it to replace the "real" name? Iterating over IF Name = STRING1 looks terrible, CASE Name OF is also not better.
It would be great to use something like new_name := some_func_translate(origin_name), but I have not found anything suitable.
Is there any reasonable and "standard" solution to my problem?