This makes the code simpler, aligns it with the builtin translations in messages.cc, and should improve performance as well. My motivation for the change is to allow returning StringRef/StringRefNull from the translation functions instead of char pointers. To test the change I used the Sun Position addon which includes translations and toggled different languages in the preferences. Pull Request: https://projects.blender.org/blender/blender/pulls/133827