- $o .= replace_macros($tpl, array(
- '$search' => $search,
- '$globaldir' => t('Global Directory'),
- '$gdirpath' => $gdirpath,
- '$desc' => t('Find on this site'),
- '$contacts' => $entries,
- '$finding' => t('Results for:'),
- '$findterm' => (strlen($search) ? $search : ""),
- '$title' => t('Site Directory'),
- '$submit' => t('Find'),
- '$paginate' => paginate($a),
- ));
-
+ $o .= replace_macros($tpl, [
+ '$search' => $search,
+ '$globaldir' => L10n::t('Global Directory'),
+ '$gdirpath' => $gdirpath,
+ '$desc' => L10n::t('Find on this site'),
+ '$contacts' => $entries,
+ '$finding' => L10n::t('Results for:'),
+ '$findterm' => (strlen($search) ? $search : ""),
+ '$title' => L10n::t('Site Directory'),
+ '$submit' => L10n::t('Find'),
+ '$paginate' => paginate($a),
+ ]);
+ } else {
+ info(L10n::t("No entries \x28some entries may be hidden\x29.") . EOL);