We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 834ed436 authored by Siebrand Mazeland's avatar Siebrand Mazeland

Fix i18n.

Update translator documentation.
parent a4e807ea
...@@ -87,21 +87,26 @@ class UserdirectoryAction extends Action ...@@ -87,21 +87,26 @@ class UserdirectoryAction extends Action
*/ */
function title() function title()
{ {
// @fixme: This looks kinda gross // @todo fixme: This looks kinda gross
if ($this->filter == 'all') { if ($this->filter == 'all') {
if ($this->page != 1) { if ($this->page != 1) {
// TRANS: Page title for user directory. %d is a page number.
return(sprintf(_m('User Directory, page %d'), $this->page)); return(sprintf(_m('User Directory, page %d'), $this->page));
} }
// TRANS: Page title for user directory.
return _m('User directory'); return _m('User directory');
} else if ($this->page == 1) { } else if ($this->page == 1) {
return sprintf( return sprintf(
// TRANS: Page title for user directory. %s is the applied filter.
_m('User directory - %s'), _m('User directory - %s'),
strtoupper($this->filter) strtoupper($this->filter)
); );
} else { } else {
return sprintf( return sprintf(
_m('User directory - %s, page %d'), // TRANS: Page title for user directory.
// TRANS: %1$s is the applied filter, %2$d is a page number.
_m('User directory - %1$s, page %2$d'),
strtoupper($this->filter), strtoupper($this->filter),
$this->page $this->page
); );
...@@ -116,8 +121,7 @@ class UserdirectoryAction extends Action ...@@ -116,8 +121,7 @@ class UserdirectoryAction extends Action
function getInstructions() function getInstructions()
{ {
// TRANS: %%site.name%% is the name of the StatusNet site. // TRANS: %%site.name%% is the name of the StatusNet site.
return _m( return _m('Search for people on %%site.name%% by their name, '
'Search for people on %%site.name%% by their name, '
. 'location, or interests. Separate the terms by spaces; ' . 'location, or interests. Separate the terms by spaces; '
. ' they must be 3 characters or more.' . ' they must be 3 characters or more.'
); );
...@@ -256,12 +260,15 @@ class UserdirectoryAction extends Action ...@@ -256,12 +260,15 @@ class UserdirectoryAction extends Action
$this->elementStart('fieldset'); $this->elementStart('fieldset');
// TRANS: Fieldset legend.
$this->element('legend', null, _m('Search site')); $this->element('legend', null, _m('Search site'));
$this->elementStart('ul', 'form_data'); $this->elementStart('ul', 'form_data');
$this->elementStart('li'); $this->elementStart('li');
// TRANS: Field label for user directory filter.
$this->input('q', _m('Keyword(s)'), $this->q); $this->input('q', _m('Keyword(s)'), $this->q);
// TRANS: Button text.
$this->submit('search', _m('BUTTON','Search')); $this->submit('search', _m('BUTTON','Search'));
$this->elementEnd('li'); $this->elementEnd('li');
$this->elementEnd('ul'); $this->elementEnd('ul');
...@@ -367,23 +374,24 @@ class UserdirectoryAction extends Action ...@@ -367,23 +374,24 @@ class UserdirectoryAction extends Action
'p', 'p',
'error', 'error',
sprintf( sprintf(
// TRANS: Empty list message for user directory.
_m('No users starting with %s'), _m('No users starting with %s'),
$this->filter $this->filter
) )
); );
} else { } else {
// TRANS: Empty list message for user directory.
$this->element('p', 'error', _m('No results.')); $this->element('p', 'error', _m('No results.'));
$message = _m(<<<E_O_T // TRANS: Standard search suggestions shown when a search does not give any results.
* Make sure all words are spelled correctly. $message = _m("* Make sure all words are spelled correctly.
* Try different keywords. * Try different keywords.
* Try more general keywords. * Try more general keywords.
* Try fewer keywords. * Try fewer keywords.");
E_O_T $message .= "\n";
);
$this->elementStart('div', 'help instructions'); $this->elementStart('div', 'help instructions');
$this->raw(common_markup_to_html($message)); $this->raw(common_markup_to_html($message));
$this->elementEnd('div'); $this->elementEnd('div');
} }
} }
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment