Merge branch issue_20_localization into master

This commit is contained in:
Jim Fenton committed 2014-11-20 22:33:08 -08:00
1 parent ccfff62118
commit 2029e24f1a
28 files changed
+5934 -878

No files matched your search

+22 -17
View File
@@ -335,12 +335,14 @@ function build_dependencies_table( ) {
if ( isset($c->authenticate_hook) && isset($c->authenticate_hook['call']) && $c->authenticate_hook['call'] == 'LDAP_check') {
$dependencies[translate('PHP LDAP module available')] = 'check_ldap';
}
$translated_failure_code = translate('<a href="http://wiki.davical.org/w/Setup_Failure_Codes/%s">Explanation on DAViCal Wiki</a>');
$dependencies_table = '';
$dep_tpl = '<tr class="%s">
<td>%s</td>
<td>%s</td>
<td><a href="http://wiki.davical.org/w/Setup_Failure_Codes/%s">Explanation on DAViCal Wiki</a></td>
<td>'.$translated_failure_code.'</td>
</tr>
';
foreach( $dependencies AS $k => $v ) {
@@ -383,25 +385,28 @@ if ( check_database_connection()->GetOK() ) {
$site_statistics_table = build_site_statistics();
}
catch( Exception $e ) {
$site_statistics_table = "Statistics unavailable";
$site_statistics_table = translate('Statistics unavailable');
}
}
else {
$site_statistics_table = "Statistics unavailable";
$site_statistics_table = translate('Statistics unavailable');
}
$heading_php_info = translate('PHP Information');
$heading_config_clients = translate('Configuring Calendar Clients for DAViCal');
$davical_client_page = translate('The <a href="http://www.davical.org/clients.php">client setup page on the DAViCal website</a> has information on how to configure Evolution, Sunbird, Lightning and Mulberry to use remotely hosted calendars.');
$davical_no_calendar_interface = translate('The administrative interface has no facility for viewing or modifying calendar data.');
$heading_config_davical = translate('Configuring DAViCal');
$davical_mostly_working = translate ('If you can read this then things must be mostly working already.');
$davical_configuration_errors = ( $config_warnings == '' ? '' : '<div class="error"><h3 class="error">'
// Translations shared with index.php
$heading_clients = translate('Configuring Calendar Clients for DAViCal');
$content_cli1 = translate('The <a href="http://www.davical.org/clients.php">client setup page on the DAViCal website</a> has information on how to configure Evolution, Sunbird, Lightning and Mulberry to use remotely hosted calendars.');
$content_cli2 = translate('The administrative interface has no facility for viewing or modifying calendar data.');
// Translations shared with index.php
$heading_configure = translate('Configuring DAViCal');
$content_config1 = translate('If you can read this then things must be mostly working already.');
$content_config2 = ( $config_warnings == '' ? '' : '<div class="error"><h3 class="error">'
. translate('Your configuration produced PHP errors which should be corrected') . '</h3><pre>'
. $config_warnings.'</pre></div>'
);
$davical_installation_page = translate('The <a href="http://www.davical.org/installation.php">installation page on the DAViCal website</a> has some further information on how to install and configure this application.');
$content_config3 = translate('The <a href="http://www.davical.org/installation.php">DAViCal installation page</a> on the DAViCal website has some further information on how to install and configure this application.');
echo <<<EOBODY
@@ -443,14 +448,14 @@ p {
$dependencies_table
</table>
</p>
<h2>$heading_config_davical</h2>
<p>$davical_mostly_working</p>
$davical_configuration_errors
<p>$davical_installation_page</p>
<h2>$heading_configure</h2>
<p>$content_config1</p>
$content_config2
<p>$content_config3</p>
<h2>$heading_config_clients</h2>
<p>$davical_client_page</p>
<p>$davical_no_calendar_interface</p>
<h2>$heading_clients</h2>
<p>$content_cli1</p>
<p>$content_cli2</p>
<h2>$heading_site_statistics</h2>
<p>$site_statistics_table</p>