diff options
author | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-13 00:46:08 -0400 |
---|---|---|
committer | Mike Cochrane <mikec@mikenz.geek.nz> | 2008-07-13 00:46:08 -0400 |
commit | 834c21b2aaf78da1081416d05098286e9bf17c2a (patch) | |
tree | a57182952d58f659dd0e950e886f9f62be305f7c /actions | |
parent | 464e70ac5dd85cc55e33c6e1f4a9eed797362a7d (diff) |
Merge some gettext strings to one line so translation tools are happier
darcs-hash:20080713044608-533db-ee16aecee9b6d82b22ce6a25f6a9573c23eee9f8.gz
Diffstat (limited to 'actions')
-rw-r--r-- | actions/avatar.php | 7 | ||||
-rw-r--r-- | actions/finishopenidlogin.php | 9 | ||||
-rw-r--r-- | actions/imsettings.php | 15 | ||||
-rw-r--r-- | actions/login.php | 19 | ||||
-rw-r--r-- | actions/newnotice.php | 2 | ||||
-rw-r--r-- | actions/noticesearch.php | 3 | ||||
-rw-r--r-- | actions/register.php | 3 |
7 files changed, 15 insertions, 43 deletions
diff --git a/actions/avatar.php b/actions/avatar.php index 1029abd1e..ebfbd7295 100644 --- a/actions/avatar.php +++ b/actions/avatar.php @@ -24,12 +24,7 @@ require_once(INSTALLDIR.'/lib/settingsaction.php'); class AvatarAction extends SettingsAction { function get_instructions() { - return _('Upload a new "avatar" (user image) here. ' . - 'You can\'t edit the picture after you upload it, so ' . - 'make sure it\'s more or less square. ' . - 'It must be under the site license, also. ' . - 'Use a picture that belongs to you and that you ' . - 'want to share.'); + return _('Upload a new "avatar" (user image) here. You can\'t edit the picture after you upload it, so make sure it\'s more or less square. It must be under the site license, also. Use a picture that belongs to you and that you want to share.'); } function show_form($msg=NULL, $success=false) { diff --git a/actions/finishopenidlogin.php b/actions/finishopenidlogin.php index 36af83840..2f0020ced 100644 --- a/actions/finishopenidlogin.php +++ b/actions/finishopenidlogin.php @@ -53,11 +53,7 @@ class FinishopenidloginAction extends Action { } else { global $config; common_element('div', 'instructions', - sprintf(_('This is the first time you\'ve logged into %s' . - ' so we must connect your OpenID to a local account. ' . - ' You can either create a new account, or connect with ' . - ' your existing account, if you have one.' - ), $config['site']['name'])); + sprintf(_('This is the first time you\'ve logged into %s so we must connect your OpenID to a local account. You can either create a new account, or connect with your existing account, if you have one.'), $config['site']['name'])); } } @@ -89,8 +85,7 @@ class FinishopenidloginAction extends Action { common_element('h2', NULL, _('Connect existing account')); common_element('p', NULL, - _('If you already have an account, login with your username and password '. - 'to connect it to your OpenID.')); + _('If you already have an account, login with your username and password to connect it to your OpenID.')); common_input('nickname', _('Existing nickname')); common_password('password', _('Password')); common_submit('connect', _('Connect')); diff --git a/actions/imsettings.php b/actions/imsettings.php index 1bc9a0281..8b30d418c 100644 --- a/actions/imsettings.php +++ b/actions/imsettings.php @@ -25,9 +25,7 @@ require_once(INSTALLDIR.'/lib/jabber.php'); class ImsettingsAction extends SettingsAction { function get_instructions() { - return _('You can send and receive notices through '. - 'Jabber/GTalk [instant messages](%%doc.im%%). Configure '. - 'your address and settings below.'); + return _('You can send and receive notices through Jabber/GTalk [instant messages](%%doc.im%%). Configure your address and settings below.'); } function show_form($msg=NULL, $success=false) { @@ -56,17 +54,15 @@ class ImsettingsAction extends SettingsAction { common_element('span', 'input_instructions', sprintf(_('Awaiting confirmation on this address. Check your ' . 'Jabber/GTalk account for a message with further ' . - 'instructions. (Did you add %s to your buddy list?)'), - jabber_daemon_address())); + 'instructions. (Did you add %s to your buddy list?)', + jabber_daemon_address()))); common_hidden('jabber', $confirm->address); common_element_end('p'); common_submit('cancel', _('Cancel')); } else { common_input('jabber', _('IM Address'), ($this->arg('jabber')) ? $this->arg('jabber') : NULL, - sprintf(_('Jabber or GTalk address, like "UserName@example.org". ' . - 'First, make sure to add %s' . - ' to your buddy list in your IM client or on GTalk.'), jabber_daemon_address())); + sprintf(_('Jabber or GTalk address, like "UserName@example.org". First, make sure to add %s to your buddy list in your IM client or on GTalk.'), jabber_daemon_address())); common_submit('add', _('Add')); } } @@ -191,8 +187,7 @@ class ImsettingsAction extends SettingsAction { $jabber); } - $msg = sprintf(_('A confirmation code was sent to the IM address you added. ' . - 'You must approve %s for sending messages to you.'), jabber_daemon_address()); + $msg = sprintf(_('A confirmation code was sent to the IM address you added. You must approve %s for sending messages to you.'), jabber_daemon_address()); $this->show_form($msg, TRUE); } diff --git a/actions/login.php b/actions/login.php index 0f2dec1a4..003d6613f 100644 --- a/actions/login.php +++ b/actions/login.php @@ -109,21 +109,10 @@ class LoginAction extends Action { } function get_instructions() { - if (common_logged_in() && - !common_is_real_login() && - common_get_returnto()) - { - # rememberme logins have to reauthenticate before - # changing any profile settings (cookie-stealing protection) - return _('For security reasons, please re-enter your ' . - 'user name and password ' . - 'before changing your settings.'); - } else { - return _('Login with your username and password. ' . - 'Don\'t have a username yet? ' . - '[Register](%%action.register%%) a new account, or ' . - 'try [OpenID](%%action.openidlogin%%). '); - } + return _('Login with your username and password. ' . + 'Don\'t have a username yet? ' . + '[Register](%%action.register%%) a new account, or ' . + 'try [OpenID](%%action.openidlogin%%). '); } function show_top($error=NULL) { diff --git a/actions/newnotice.php b/actions/newnotice.php index 107665fb7..a98829cd8 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -54,7 +54,7 @@ class NewnoticeAction extends Action { } $notice->rendered = common_render_content($notice->content, $notice); - + $id = $notice->insert(); if (!$id) { diff --git a/actions/noticesearch.php b/actions/noticesearch.php index ab383fab4..29de0ad7c 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -27,8 +27,7 @@ define(NOTICES_PER_PAGE, 20); class NoticesearchAction extends SearchAction { function get_instructions() { - return _('Search for notices on %%site.name%% by their contents. ' . - 'Separate search terms by spaces; they must be 3 characters or more.'); + return _('Search for notices on %%site.name%% by their contents. Separate search terms by spaces; they must be 3 characters or more.'); } function get_title() { diff --git a/actions/register.php b/actions/register.php index 28b122bc9..02677d241 100644 --- a/actions/register.php +++ b/actions/register.php @@ -181,8 +181,7 @@ class RegisterAction extends Action { common_input('email', _('Email'), NULL, _('Used only for updates, announcements, and password recovery')); common_checkbox('rememberme', _('Remember me'), false, - _('Automatically login in the future; ' . - 'not for shared computers!')); + _('Automatically login in the future; not for shared computers!')); common_element_start('p'); common_element('input', array('type' => 'checkbox', 'id' => 'license', |