protected function _title()
{
- return Horde::applicationUrl('forums.php', true)->link() . _("Formus") . '</a>';
+ return Horde::applicationUrl('forums.php', true)->link() . _("Forums") . '</a>';
}
/**
public function get($config)
{
if (!isset($this->_config[$config])) {
- throw InvalidArgumentException($config . _(" not found"));
+ throw InvalidArgumentException($config . ' not found');
}
return $this->_config[$config];
}
/* Retrieve the desired revision from the GET variable. */
$rev = Horde_Util::getFormData('rev');
if (!$rev || !$VC->isValidRevision($rev)) {
- Chora::fatal(sprintf(_("Revision %s not found"), $rev ? $rev : _("NONE")), '404 Not Found');
+ Chora::fatal(sprintf(_("Revision %s not found"), $rev), '404 Not Found');
}
switch (Horde_Util::getFormData('actionID')) {
{
return array(
'carrier' => array('label' => _("Carrier"), 'type' => 'text'),
- 'mailBackend' => array('label' => _("Horde_Mail:: backend"), 'type' => 'text')
+ 'mailBackend' => array('label' => _("Mail backend"), 'type' => 'text')
);
}
} elseif ($http->getResponseCode() != 200) {
throw new Horde_Rpc_Exception(_("Request couldn't be answered. Returned errorcode: ") . $http->getResponseCode());
} elseif (strpos($http->getResponseBody(), '<?xml') === false) {
- throw new Horde_Rpc_Exception(_("No valid XML data returned:\n") . $http->getResponseBody());
+ throw new Horde_Rpc_Exception(_("No valid XML data returned:") . "\n" . $http->getResponseBody());
} else {
$response = @xmlrpc_decode(substr($http->getResponseBody(), strpos($http->getResponseBody(), '<?xml')));
if (is_array($response) && isset($response['faultString'])) {
if ($ui->vars->wipeid) {
$stateMachine->loadDeviceInfo($ui->vars->wipeid, $GLOBALS['registry']->getAuth());
$stateMachine->setDeviceRWStatus($ui->vars->wipeid, Horde_ActiveSync::RWSTATUS_PENDING);
- $GLOBALS['notification']->push(sprintf(_("A Remote Wipe for device id %s has been initiated. The device will be wiped during the next SYNC request."), $ui->vars->wipe));
+ $GLOBALS['notification']->push(sprintf(_("A remote wipe for device id %s has been initiated. The device will be wiped during the next synchronisation."), $ui->vars->wipe));
} elseif ($ui->vars->cancelwipe) {
$stateMachine->loadDeviceInfo($ui->vars->cancelwipe, $GLOBALS['registry']->getAuth());
$stateMachine->setDeviceRWStatus($ui->vars->cancelwipe, Horde_ActiveSync::RWSTATUS_OK);
</div>
<else:have_offline>
<div class="fbbluebox">
- <tag:app_name /><gettext> can interact with your Facebook account, but you must login to Facebook manually each time.</gettext>
+ <gettext><tag:app_name /> can interact with your Facebook account, but you must login to Facebook manually each time.</gettext>
<div class="fbaction"><gettext>Authorize an infinite session:</gettext><a class="fbbutton" href="<tag:authUrl />">Facebook</a></div>
</div>
</else:have_offline>
</div>
<else:have_publish>
<div class="fbbluebox">
- <tag:app_name /> <gettext>cannot set your status messages or publish other content to Facebook.</gettext>
+ <gettext><tag:app_name /> cannot set your status messages or publish other content to Facebook.</gettext>
<div class="fbaction"><getttext>Authorize Publish:</gettext><a class="fbbutton" href="<tag:publish_url />">Facebook</a></div>
</div>
</else:have_publish>
</div>
<else:have_read>
<div class="fbbluebox">
- <tag:app_name /> <gettext>cannot read your stream messages.</gettext>
+ <gettext><tag:app_name /> cannot read your stream messages.</gettext>
<div class="fbaction"><gettext>Authorize Read:</gettext><a class="fbbutton" href="<tag:read_url />">Facebook</a></div>
</div>
</else:have_read>
<else:have_session>
<div class="notice">Could not find authorization for <tag:user_name /> to interact with your Facebook account.</div>
<br />
- <gettext>Login to Facebook and authorize</gettext> <tag:application_name />
- <a href="<tag:authUrl />" class="fbbutton"><gettext>Facebook</gettext></a>
+ <gettext>Login to Facebook and authorize <tag:application_name /></gettext>
+ <a href="<tag:authUrl />" class="fbbutton">Facebook</a>
</else:have_session>
-</if:have_session>
\ No newline at end of file
+</if:have_session>
</div>
<div class="clear"> </div>
<div>
- <tag:appname /> <gettext>can interact with your Twitter account</gettext>.
+ <gettext><tag:appname /> can interact with your Twitter account</gettext>.
<div><input type="submit" class="button" value="<gettext>Disable</gettext>" onclick="document.prefs.twitteractionID.value='revokeInfinite'; return true" /></div>
</div>
<else:haveSession>
<div class="notice">
- <gettext>Could not find authorization for</gettext> <tag:appname /> <gettext>to interact with your Twitter account</gettext>
+ <gettext>Could not find authorization for <tag:appname /> to interact with your Twitter account</gettext>
</div>
<script type="text/javascript">
function openTwitterWindow() {
<tag:popupjs />
}
</script>
- <gettext>Login to Twitter and authorize the</gettext> <tag:appname /> <gettext>application</gettext>: <tag:link />
+ <gettext>Login to Twitter and authorize the <tag:appname /> application</gettext>: <tag:link />
</else:haveSession>
-</if:haveSession>
\ No newline at end of file
+</if:haveSession>
1 => _("Delete message"),
2 => _("Move to spam folder")
),
- 'desc' => _("What should we do with spam messages after they have been reported as spam?"),
+ 'desc' => _("What should we do with messages after they have been reported as spam?"),
'help' => 'prefs-delete_spam_after_report'
);
0 => _("Nothing"),
1 => _("Move to Inbox")
),
- 'desc' => _("What should we do with spam messages after they have been reported as innocent?"),
+ 'desc' => _("What should we do with messages after they have been reported as innocent?"),
'help' => 'prefs-move_ham_after_report'
);
public function __call($method, $params)
{
if (!$this->ob || !method_exists($this->ob, $method)) {
- throw new IMP_Exception(sprintf(_("%s: Invalid method call '%s'."), __CLASS__, $method));
+ throw new IMP_Exception(sprintf('%s: Invalid method call "%s".', __CLASS__, $method));
}
return call_user_func_array(array($this->ob, $method), $params);
}
} elseif (isset($ui->vars->unset_pgp_passphrase)) {
$GLOBALS['injector']->getInstance('IMP_Crypt_Pgp')->unsetPassphrase('personal');
- $GLOBALS['notification']->push(_("PHP passphrase successfully unloaded."), 'horde.success');
+ $GLOBALS['notification']->push(_("PGP passphrase successfully unloaded."), 'horde.success');
}
}
<input type="button" id="search_submit" class="button" value="<if:edit_query_vfolder><gettext>Save</gettext><else:edit_query_vfolder><gettext>Submit</gettext></else:edit_query_vfolder></if:edit_query_vfolder>" />
<input type="button" id="search_reset" class="button" value="<gettext>Reset</gettext>" />
<if:return_mailbox_text>
- <input type="button" id="search_dimp_return" class="button" value="<gettext>Return to</gettext> <tag:return_mailbox_text />" />
+ <input type="button" id="search_dimp_return" class="button" value="<gettext>Return to <tag:return_mailbox_text /></gettext>" />
</if:return_mailbox_text>
</div>
</form>
/* Gettext strings used in core javascript files. */
$code['text'] = array(
'ajax_error' => _("Error when communicating with the server."),
- 'ajax_timeout' => _("There has been no contact with the calendar server for several minutes. The server may be temporarily unavailable or network problems may be interrupting your session. You will not see any updates until the connection is restored."),
- 'ajax_recover' => _("The connection to the calendar server has been restored."),
+ 'ajax_timeout' => _("There has been no contact with the server for several minutes. The server may be temporarily unavailable or network problems may be interrupting your session. You will not see any updates until the connection is restored."),
+ 'ajax_recover' => _("The connection to the server has been restored."),
'alarm' => _("Alarm:"),
'snooze' => sprintf(_("You can snooze it for %s or %s dismiss %s it entirely"), '#{time}', '#{dismiss_start}', '#{dismiss_end}'),
'noalerts' => _("No Notifications"),
<div class="kronolithDialogInfo"><?php printf(_("%sStandard sharing.%s You can also set %sadvanced sharing%s options."), '<strong>', '</strong>', '<strong><a href="#" id="kronolithC' . $type . 'PMore">', '</a></strong>') ?></div>
<div>
<input type="radio" id="kronolithC<?php echo $type ?>PNone" name="basic_perms" checked="checked" />
- <?php printf($type == 'internal' ? _("%sDon't share this calendar%s") : _("%sDon't share this task list%s"), '<label for="kronolithC' . $type . 'PNone">', '</label>') ?><br />
+ <label for="kronolithC<?php echo $type ?>PNone"><?php echo $type == 'internal' ? _("Don't share this calendar") : _("Don't share this task list") ?></label><br />
</div>
<div>
<input type="radio" id="kronolithC<?php echo $type ?>PAll" name="basic_perms" />
if (!$result) {
throw new Nag_Exception($result);
}
-
- if (count($result) == 1) {
- $notification->push(_("Added one task"), 'horde.success');
- } else {
- $notification->push(sprintf(_("Added %s tasks"), count($result)), 'horde.success');
- }
-
+ $notification->push(sprintf(ngettext("Added %d task", "Added %d tasks", count($result)), count($result)), 'horde.success');
Horde::applicationUrl('list.php', true)->redirect();
}
$vars = Horde_Variables::getDefaultVariables();
$addressbook_id = $vars->get('a');
if ($addressbook_id == $GLOBALS['registry']->getAuth()) {
- $notification->push(_("This addressbook cannot be deleted"), 'horde.warning');
+ $notification->push(_("This address book cannot be deleted"), 'horde.warning');
Horde::applicationUrl('addressbooks/', true)->redirect();
}
return Horde_Core_Prefs_Ui_Widgets::source(array(
'mainlabel' => _("Choose which address books to display, and in what order:"),
- 'selectlabel' => _("These addressbooks will display in this order:"),
+ 'selectlabel' => _("These address books will display in this order:"),
'sources' => array(array(
'selected' => $selected,
'unselected' => $unselected
$vars->set('domain', $domain);
$vars->set('mode', 'edit');
-$form = new Horde_Form($vars, _("Delete " . $type));
+$form = new Horde_Form($vars, sprintf(_("Delete %s"), $type));
/* Set up the form. */
$form->setButtons(array(_("Delete"), _("Do not delete")));
//$form->addHidden($user_id, 'user_id', 'text', false);
if (trim($text) == trim($content)) {
return PEAR::raiseError(_("No changes made"));
}
- $result = $page->updateText($text, _("Downloded from remote server"), true);
+ $result = $page->updateText($text, _("Downloaded from remote server"), true);
if (is_a($result, 'PEAR_Error')) {
return $result;
}