The sections being used in privacy.php should be taking the names called in the i18n file, but instead are just taking the name Admin Panel. See attached image.
- Restricted Diffusion Commit
Restricted Diffusion Commit
Using the uselang=qqx URL parameter on Special:AdminPanel/privacy I was able to figure out that the page expects the message keys to be adminpanel/privacy-privacy-section-editing and adminpanel/privacy-privacy-section-viewing (sic!), most likely because the special page is named AdminPanel/privacy in the constructor.
FormSpecialPage has a (protected) function called getMessagePrefix(), which by default returns strtolower( $this->getName() ). You should be able to override this to return adminpanel-privacy or something similar, saner; something which doesn't include the slash in its name.