Page MenuHomePhabricator

Untranslated strings in OATHAuth notification email
Closed, DuplicatePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable TOTP;
  • Disable it;

What happens?:
An email sent with an untranslated string (showing message key).

What should have happened instead?:
The string should be translated.

Software version (skip for WMF-hosted wikis like Wikipedia):
master, REL1_39, REL1_40, REL1_41

Other information (browser name/version, screenshots, etc.):

ABB36913A263BC1292A6E1341D7529F9.jpg (1×1 px, 75 KB)

Event Timeline

In src/Notifications/DisablePresentationModel.php:

	public function getPrimaryLink() {
		return [
			'url' => SpecialPage::getTitleFor( 'Preferences' )->getLocalURL(),
			'label' => $this->msg( 'oathauth-notifications-disable-primary' )->text()
		];
	}

but there is no such key even in en.json.

Found a duplicated bug report T326073 which has not been resolved since August