I think this procedure should be defined in languages/Language.php in MediaWiki core.
Doing so enables to override the procedure in languages/classes/LanguagesJa.php if needed.