forked from GNUsocial/gnu-social
Use profile->getBestName() instead of more complex i18n unfriendly construction.
Update translator documentation. Number parameters where more than one is used. L10n updates. Update README file to break lines at or just before 80 characters. Remove PHP4-ism "?>" Update indentation. Update whitespace.
This commit is contained in:
@@ -193,6 +193,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
$type = common_negotiate_type($cp, $sp);
|
||||
|
||||
if (!$type) {
|
||||
// TRANS: Client exception thrown when requesting a not supported media type.
|
||||
throw new ClientException(_m('This page is not available in a '.
|
||||
'media type you accept.'), 406);
|
||||
}
|
||||
@@ -310,31 +311,41 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
$action->elementStart('ul', array('id' => 'site_nav_global_primary'));
|
||||
if ($user) {
|
||||
$action->menuItem(common_local_url('all', array('nickname' => $user->nickname)),
|
||||
// TRANS: Menu item in mobile profile to go to start page of site.
|
||||
_m('Home'));
|
||||
$action->menuItem(common_local_url('profilesettings'),
|
||||
// TRANS: Menu item in mobile profile to go to user account settings.
|
||||
_m('Account'));
|
||||
$action->menuItem(common_local_url('oauthconnectionssettings'),
|
||||
_m('Connect'));
|
||||
// TRANS: Menu item in mobile profile to connect to other services.
|
||||
_m('Connect'));
|
||||
if ($user->hasRight(Right::CONFIGURESITE)) {
|
||||
$action->menuItem(common_local_url('siteadminpanel'),
|
||||
_m('Admin'), _m('Change site configuration'), false, 'nav_admin');
|
||||
// TRANS: Menu item in mobile profile to manage site settings.
|
||||
_m('Admin'),
|
||||
_m('Change site configuration'), false, 'nav_admin');
|
||||
}
|
||||
if (common_config('invite', 'enabled')) {
|
||||
$action->menuItem(common_local_url('invite'),
|
||||
// TRANS: Menu item in mobile profile to invite other people.
|
||||
_m('Invite'));
|
||||
}
|
||||
$action->menuItem(common_local_url('logout'),
|
||||
// TRANS: Menu item in mobile profile log the current user off.
|
||||
_m('Logout'));
|
||||
} else {
|
||||
if (!common_config('site', 'closed')) {
|
||||
$action->menuItem(common_local_url('register'),
|
||||
// TRANS: Menu item in mobile profile to register with the site.
|
||||
_m('Register'));
|
||||
}
|
||||
$action->menuItem(common_local_url('login'),
|
||||
// TRANS: Menu item in mobile profile to log in.
|
||||
_m('Login'));
|
||||
}
|
||||
if ($user || !common_config('site', 'private')) {
|
||||
$action->menuItem(common_local_url('peoplesearch'),
|
||||
// TRANS: Menu item in mobile profile to search the site.
|
||||
_m('Search'));
|
||||
}
|
||||
$action->elementEnd('ul');
|
||||
@@ -362,11 +373,13 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
if (common_config('attachments', 'uploads')) {
|
||||
if ($this->mobileFeatures['inputfiletype']) {
|
||||
$form->out->hidden('MAX_FILE_SIZE', common_config('attachments', 'file_quota'));
|
||||
// TRANS: Field label in mobile profile to attach a file to a status.
|
||||
$form->out->element('label', array('for' => 'notice_data-attach'), _m('Attach'));
|
||||
$form->out->element('input', array('id' => 'notice_data-attach',
|
||||
'type' => 'file',
|
||||
'name' => 'attach',
|
||||
'title' => _m('Attach a file')));
|
||||
// TRANS: Field title in mobile profile to attach a file to a status.
|
||||
'title' => _m('Attach a file.')));
|
||||
}
|
||||
}
|
||||
if ($form->action) {
|
||||
@@ -448,6 +461,7 @@ class MobileProfilePlugin extends WAP20Plugin
|
||||
'author' => 'Sarven Capadisli',
|
||||
'homepage' => 'http://status.net/wiki/Plugin:MobileProfile',
|
||||
'rawdescription' =>
|
||||
// TRANS: Plugin description.
|
||||
_m('XHTML MobileProfile output for supporting user agents.'));
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user