Has anyone figured out how to call the standard profile by name and still be language agnostic? Standard profiles get translated at run time and all options I can think of seem to be workarounds and there is nothing that is supported on the platform.
[select id from profile where name = 'System Administrator']
does not work for non-english users as the profile name is translated.
Identified Workarounds are as follows:
1. Custom Labels using the translation workbench is manual for every language.
2. Custom Settings calling out names is manual for every language.
3. Workflow rule on user record copying the profile name to a custom field is a workaround.
4. Adding the profile name to the profile description and querying that fiels is a workaround.
Anybody run into this issue and have a platform supported solution?