X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Foauthappssettings.php;h=a7a4b219a3ddaad9f8c76e0d54fb38db1a86475c;hb=21011cfc929bfb6d4f4727fdddd30d4f225f2570;hp=e75f014ab5186da0819d00375543f9e4460097c1;hpb=07bc50eaedd262573bf1560b075670d803e17a63;p=quix0rs-gnu-social.git diff --git a/actions/oauthappssettings.php b/actions/oauthappssettings.php index e75f014ab5..a7a4b219a3 100644 --- a/actions/oauthappssettings.php +++ b/actions/oauthappssettings.php @@ -31,9 +31,6 @@ if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } -require_once INSTALLDIR . '/lib/settingsaction.php'; -require_once INSTALLDIR . '/lib/applicationlist.php'; - /** * Show a user's registered OAuth applications * @@ -56,6 +53,7 @@ class OauthappssettingsAction extends SettingsAction $this->page = ($this->arg('page')) ? ($this->arg('page') + 0) : 1; if (!common_logged_in()) { + // TRANS: Message displayed to an anonymous user trying to view OAuth application list. $this->clientError(_('You must be logged in to list your applications.')); return false; } @@ -71,6 +69,7 @@ class OauthappssettingsAction extends SettingsAction function title() { + // TRANS: Page title for OAuth applications return _('OAuth applications'); } @@ -82,6 +81,7 @@ class OauthappssettingsAction extends SettingsAction function getInstructions() { + // TRANS: Page instructions for OAuth applications return _('Applications you have registered'); } @@ -120,6 +120,7 @@ class OauthappssettingsAction extends SettingsAction array('href' => common_local_url('newapplication'), 'class' => 'more' ), + // TRANS: Link description to add a new OAuth application. 'Register a new application'); $this->elementEnd('p'); @@ -133,6 +134,7 @@ class OauthappssettingsAction extends SettingsAction function showEmptyListMessage() { + // TRANS: Empty list message on page with OAuth applications. $message = sprintf(_('You have not registered any applications yet.')); $this->elementStart('div', 'guide'); @@ -161,7 +163,5 @@ class OauthappssettingsAction extends SettingsAction 'Try again, please.')); return; } - } - }