Language customisation - fullnamedisplay

Language customisation - fullnamedisplay

by Lauren Gaub -
Number of replies: 0
Hello, 

I am testing out editing the fullnamedisplay in the language pack, and I'm wondering if it's possible to add parentheses around the alternate name, but only display the parentheses if an alternate name exists on a user profile? 

For example: 

Scenario 1
  • First Name: Johnathan
  • Last Name: Smith
  • Alternate Name: John
  • Desired fullnamedisplay: Johnathan (John) Smith
  • Actual fullnamedisplay: Johnathan (John) Smith

Scenario 2

  • First Name: Susan
  • Last Name: Jones
  • Alternate Name: blank
  • Desired fullnamedisplay: Susan Jones
  • Actual fullnamedisplay: Susan () Jones

Here's a screenshot of the Moodle settings I currently have with some annotations:

screenshot of moodle language pack edit screen

Average of ratings: -