summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2011-11-21 14:10:29 +0000
committerthomascube <thomas@roundcube.net>2011-11-21 14:10:29 +0000
commitce22f1e0c68d6813177f5e2177371032f9924a50 (patch)
tree9a9831b502fa0683b2c53d2fc4e3458f3248332e /program
parentb1867b8f198374d26e1bfdfeaeac16971608b551 (diff)
Show configurable support link in about page; refer on <srcuri> for download link; no link to roundcube.net to avoid tons of support requests
Diffstat (limited to 'program')
-rw-r--r--program/localization/de_CH/labels.inc6
-rw-r--r--program/localization/en_US/labels.inc2
-rw-r--r--program/localization/pl_PL/labels.inc1
-rw-r--r--program/steps/settings/about.inc22
4 files changed, 24 insertions, 7 deletions
diff --git a/program/localization/de_CH/labels.inc b/program/localization/de_CH/labels.inc
index d5bcf5683..457a76a5f 100644
--- a/program/localization/de_CH/labels.inc
+++ b/program/localization/de_CH/labels.inc
@@ -285,6 +285,7 @@ $labels['importreplace'] = 'Bestehendes Adressbuch komplett ersetzen';
$labels['importtext'] = 'Sie können Kontakte aus einem bestehenden Adressbuch hochladen.<br/>Es können Adressbücher im <a href="http://de.wikipedia.org/wiki/VCard">vCard-Format</a> importiert werden.';
$labels['done'] = 'Fertig';
$labels['settingsfor'] = 'Einstellungen für';
+$labels['about'] = 'Über';
$labels['preferences'] = 'Einstellungen';
$labels['userpreferences'] = 'Benutzereinstellungen';
$labels['editpreferences'] = 'Einstellungen bearbeiten';
@@ -394,6 +395,11 @@ $labels['sortby'] = 'Sortieren nach';
$labels['sortasc'] = 'aufsteigend sortieren';
$labels['sortdesc'] = 'absteigend sortieren';
$labels['undo'] = 'Rückgängig';
+$labels['plugin'] = 'Plugin';
+$labels['version'] = 'Version';
+$labels['source'] = 'Quellcode';
+$labels['license'] = 'Lizenz';
+$labels['support'] = 'Support';
$labels['B'] = 'B';
$labels['KB'] = 'KB';
$labels['MB'] = 'MB';
diff --git a/program/localization/en_US/labels.inc b/program/localization/en_US/labels.inc
index d7df39771..a0f1c31f5 100644
--- a/program/localization/en_US/labels.inc
+++ b/program/localization/en_US/labels.inc
@@ -469,7 +469,7 @@ $labels['plugin'] = 'Plugin';
$labels['version'] = 'Version';
$labels['source'] = 'Source';
$labels['license'] = 'License';
-$labels['webpage'] = 'Webpage';
+$labels['support'] = 'Get support';
// units
$labels['B'] = 'B';
diff --git a/program/localization/pl_PL/labels.inc b/program/localization/pl_PL/labels.inc
index 164e508a3..60ea24d94 100644
--- a/program/localization/pl_PL/labels.inc
+++ b/program/localization/pl_PL/labels.inc
@@ -438,7 +438,6 @@ $labels['plugin'] = 'Wtyczka';
$labels['version'] = 'Wersja';
$labels['source'] = 'Źródła';
$labels['license'] = 'Licencja';
-$labels['webpage'] = 'Strona internetowa';
$labels['about'] = 'O programie';
?>
diff --git a/program/steps/settings/about.inc b/program/steps/settings/about.inc
index 1125b709c..67763218a 100644
--- a/program/steps/settings/about.inc
+++ b/program/steps/settings/about.inc
@@ -20,6 +20,18 @@
*/
+
+function rcmail_supportlink($attrib)
+{
+ global $RCMAIL;
+
+ if ($url = $RCMAIL->config->get('support_url')) {
+ $label = $attrub['label'] ? $attrub['label'] : 'support';
+ $attrib['href'] = $url;
+ return html::a($attrib, rcube_label($label));
+ }
+}
+
function rcmail_plugins_list($attrib)
{
global $RCMAIL;
@@ -49,18 +61,18 @@ function rcmail_plugins_list($attrib)
$table->add_header('source', rcube_label('source'));
foreach ($plugins as $name => $data) {
- $uri = $data['uri'] ? $data['uri'] : $data['channel'];
+ $uri = $data['srcuri'];
if ($uri && stripos($uri, 'http') !== 0) {
$uri = 'http://' . $uri;
}
-
+
$table->add_row();
$table->add('name', Q($data['name'] ? $data['name'] : $name));
$table->add('version', Q($data['version']));
$table->add('license', $data['license_uri'] ? html::a(array('target' => '_blank', href=> Q($data['license_uri'])),
Q($data['license'])) : $data['license']);
$table->add('source', $uri ? html::a(array('target' => '_blank', href=> Q($uri)),
- Q(rcube_label('source'))) : '');
+ Q(rcube_label('download'))) : '');
}
return $table->show();
@@ -74,8 +86,7 @@ function rcube_plugin_data($name, &$plugins = array())
'version' => 'string(//rc:package/rc:version/rc:release)',
'license' => 'string(//rc:package/rc:license)',
'license_uri' => 'string(//rc:package/rc:license/@uri)',
- 'uri' => 'string(//rc:package/rc:uri)',
- 'channel' => 'string(//rc:package/rc:channel)',
+ 'srcuri' => 'string(//rc:package/rc:srcuri)',
);
$package = INSTALL_PATH . "/plugins/$name/package.xml";
@@ -111,6 +122,7 @@ function rcube_plugin_data($name, &$plugins = array())
$OUTPUT->set_pagetitle(rcube_label('about'));
+$OUTPUT->add_handler('supportlink', 'rcmail_supportlink');
$OUTPUT->add_handler('pluginlist', 'rcmail_plugins_list');
$OUTPUT->send('about');