Fix updateTemplatePermission when the UI is set to a language other than English
#9766
+11
−11