summaryrefslogtreecommitdiff
path: root/library
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-11-14 21:04:09 +0000
committerfisharebest <fisharebest@gmail.com>2011-11-14 21:04:09 +0000
commitcb03f4003287b2746919ac17d7a01a71678a9ab8 (patch)
tree8bf3bdea69b1039a3c8698d0680354bac4c62fc3 /library
parent6b7664d416f0d07ce682b11160893f9ef1657c61 (diff)
downloadwebtrees-cb03f4003287b2746919ac17d7a01a71678a9ab8.tar.gz
webtrees-cb03f4003287b2746919ac17d7a01a71678a9ab8.tar.bz2
webtrees-cb03f4003287b2746919ac17d7a01a71678a9ab8.zip
Use round brackets () instead of square brackets []. Round brackets are used to indicate extra information. Square brackets are used to indicate something that is missing.
Diffstat (limited to 'library')
-rw-r--r--library/WT/Stats.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/library/WT/Stats.php b/library/WT/Stats.php
index eb5bb07757..9f83e9ff42 100644
--- a/library/WT/Stats.php
+++ b/library/WT/Stats.php
@@ -406,8 +406,8 @@ class WT_Stats {
$chd = self::_array_to_extended_encoding(array($tot_sindi_per, 100-$tot_sindi_per));
$chl = WT_I18N::translate('With sources').' - '.round($tot_sindi_per,1).'%|'.
WT_I18N::translate('Without sources').' - '.round($tot_indi_per,1).'%';
- $chart_title = WT_I18N::translate('With sources').' ['.round($tot_sindi_per,1).'%], '.
- WT_I18N::translate('Without sources').' ['.round($tot_indi_per,1).'%]';
+ $chart_title = WT_I18N::translate('With sources').' ('.round($tot_sindi_per,1).'%), '.
+ WT_I18N::translate('Without sources').' ('.round($tot_indi_per,1).'%)';
return "<img src=\"http://chart.apis.google.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_from},{$color_to}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"".$chart_title."\" title=\"".$chart_title."\" />";
}
@@ -445,8 +445,8 @@ class WT_Stats {
$chd = self::_array_to_extended_encoding(array($tot_sfam_per, 100-$tot_sfam_per));
$chl = WT_I18N::translate('With sources').' - '.round($tot_sfam_per,1).'%|'.
WT_I18N::translate('Without sources').' - '.round($tot_fam_per,1).'%';
- $chart_title = WT_I18N::translate('With sources').' ['.round($tot_sfam_per,1).'%], '.
- WT_I18N::translate('Without sources').' ['.round($tot_fam_per,1).'%]';
+ $chart_title = WT_I18N::translate('With sources').' ('.round($tot_sfam_per,1).'%), '.
+ WT_I18N::translate('Without sources').' ('.round($tot_fam_per,1).'%)';
return "<img src=\"http://chart.apis.google.com/chart?cht=p3&amp;chd=e:{$chd}&chs={$size}&amp;chco={$color_from},{$color_to}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"".$chart_title."\" title=\"".$chart_title."\" />";
}
@@ -656,17 +656,17 @@ class WT_Stats {
WT_I18N::translate('Females').' - '.round($tot_f,1).'%|'.
WT_I18N::translate('Males').' - '.round($tot_m,1).'%';
$chart_title =
- WT_I18N::translate('Males').' ['.round($tot_m,1).'%], '.
- WT_I18N::translate('Females').' ['.round($tot_f,1).'%], '.
- WT_I18N::translate_c('unknown people', 'Unknown').' ['.round($tot_u,1).'%]';
+ WT_I18N::translate('Males').' ('.round($tot_m,1).'%), '.
+ WT_I18N::translate('Females').' ('.round($tot_f,1).'%), '.
+ WT_I18N::translate_c('unknown people', 'Unknown').' ('.round($tot_u,1).'%)';
return "<img src=\"http://chart.apis.google.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_unknown},{$color_female},{$color_male}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"".$chart_title."\" title=\"".$chart_title."\" />";
} else {
$chd = self::_array_to_extended_encoding(array($tot_f, $tot_m));
$chl =
WT_I18N::translate('Females').' - '.round($tot_f,1).'%|'.
WT_I18N::translate('Males').' - '.round($tot_m,1).'%';
- $chart_title = WT_I18N::translate('Males').' ['.round($tot_m,1).'%], '.
- WT_I18N::translate('Females').' ['.round($tot_f,1).'%]';
+ $chart_title = WT_I18N::translate('Males').' ('.round($tot_m,1).'%), '.
+ WT_I18N::translate('Females').' ('.round($tot_f,1).'%)';
return "<img src=\"http://chart.apis.google.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_female},{$color_male}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"".$chart_title."\" title=\"".$chart_title."\" />";
}
}
@@ -714,8 +714,8 @@ class WT_Stats {
$chl =
WT_I18N::translate('Living').' - '.round($tot_l,1).'%|'.
WT_I18N::translate('Dead').' - '.round($tot_d,1).'%|';
- $chart_title = WT_I18N::translate('Living').' ['.round($tot_l,1).'%], '.
- WT_I18N::translate('Dead').' ['.round($tot_d,1).'%]';
+ $chart_title = WT_I18N::translate('Living').' ('.round($tot_l,1).'%), '.
+ WT_I18N::translate('Dead').' ('.round($tot_d,1).'%)';
return "<img src=\"http://chart.apis.google.com/chart?cht=p3&amp;chd=e:{$chd}&amp;chs={$size}&amp;chco={$color_living},{$color_dead}&amp;chf=bg,s,ffffff00&amp;chl={$chl}\" width=\"{$sizes[0]}\" height=\"{$sizes[1]}\" alt=\"".$chart_title."\" title=\"".$chart_title."\" />";
}
}
@@ -831,7 +831,7 @@ class WT_Stats {
foreach ($media as $type=>$count) {
$mediaCounts[] = round(100 * $count / $tot, 0);
$mediaTypes .= WT_Gedcom_Tag::getFileFormTypeValue($type).' - '.$count.'|';
- $chart_title .= WT_Gedcom_Tag::getFileFormTypeValue($type).' ['.$count.'], ';
+ $chart_title .= WT_Gedcom_Tag::getFileFormTypeValue($type).' ('.$count.'), ';
}
$chart_title = substr($chart_title,0,-2);
$chd = self::_array_to_extended_encoding($mediaCounts);