This function creates a property key from the string value and uses the key to retrieve the correct translation from the string.properties file.