summaryrefslogtreecommitdiff
path: root/find.php
diff options
context:
space:
mode:
authorfisharebest <fisharebest@gmail.com>2011-01-01 22:32:55 +0000
committerfisharebest <fisharebest@gmail.com>2011-01-01 22:32:55 +0000
commit7241cd7d984697cb80051182be4def01a2c7cef4 (patch)
tree2c3f01302a16c3957083c4faffc7634a8d7c2c8c /find.php
parente4064f28a6c640db7d4324ab486b2917c1b0dc1b (diff)
downloadwebtrees-7241cd7d984697cb80051182be4def01a2c7cef4.tar.gz
webtrees-7241cd7d984697cb80051182be4def01a2c7cef4.tar.bz2
webtrees-7241cd7d984697cb80051182be4def01a2c7cef4.zip
Refactoring class names and use autoloading.
Diffstat (limited to 'find.php')
-rw-r--r--find.php148
1 files changed, 74 insertions, 74 deletions
diff --git a/find.php b/find.php
index 33fee55fa9..40523bd0ad 100644
--- a/find.php
+++ b/find.php
@@ -114,37 +114,37 @@ require WT_ROOT.'includes/specialchars.php';
switch ($type) {
case "indi":
- print_simple_header(i18n::translate('Find individual ID'));
+ print_simple_header(WT_I18N::translate('Find individual ID'));
break;
case "fam":
- print_simple_header(i18n::translate('Find Family List'));
+ print_simple_header(WT_I18N::translate('Find Family List'));
break;
case "media":
- print_simple_header(i18n::translate('Find media'));
+ print_simple_header(WT_I18N::translate('Find media'));
$action="filter";
break;
case "place":
- print_simple_header(i18n::translate('Find Place'));
+ print_simple_header(WT_I18N::translate('Find Place'));
$action="filter";
break;
case "repo":
- print_simple_header(i18n::translate('Repositories'));
+ print_simple_header(WT_I18N::translate('Repositories'));
$action="filter";
break;
case "note":
- print_simple_header(i18n::translate('Find Shared Note'));
+ print_simple_header(WT_I18N::translate('Find Shared Note'));
$action="filter";
break;
case "source":
- print_simple_header(i18n::translate('Find Source'));
+ print_simple_header(WT_I18N::translate('Find Source'));
$action="filter";
break;
case "specialchar":
- print_simple_header(i18n::translate('Find Special Characters'));
+ print_simple_header(WT_I18N::translate('Find Special Characters'));
$action="filter";
break;
case "facts":
- print_simple_header(i18n::translate('Find fact tags'));
+ print_simple_header(WT_I18N::translate('Find fact tags'));
echo
WT_JS_START,
'jQuery(document).ready(function(){ initPickFact(); });',
@@ -190,7 +190,7 @@ echo WT_JS_START;
if (document.forms[0].subclick) button = document.forms[0].subclick.value;
else button = "";
if (frm.filter.value.length<2&button!="all") {
- alert("<?php echo i18n::translate('Please enter more than one character'); ?>");
+ alert("<?php echo WT_I18N::translate('Please enter more than one character'); ?>");
frm.filter.focus();
return false;
}
@@ -227,31 +227,31 @@ echo "<tr><td style=\"padding: 10px;\" valign=\"top\" class=\"facts_label03 widt
switch ($type) {
case "indi":
- echo i18n::translate('Find individual ID');
+ echo WT_I18N::translate('Find individual ID');
break;
case "fam":
- echo i18n::translate('Find Family List');
+ echo WT_I18N::translate('Find Family List');
break;
case "media":
- echo i18n::translate('Find media');
+ echo WT_I18N::translate('Find media');
break;
case "place":
- echo i18n::translate('Find Place');
+ echo WT_I18N::translate('Find Place');
break;
case "repo":
- echo i18n::translate('Repositories');
+ echo WT_I18N::translate('Repositories');
break;
case "note":
- echo i18n::translate('Find Shared Note');
+ echo WT_I18N::translate('Find Shared Note');
break;
case "source":
- echo i18n::translate('Find Source');
+ echo WT_I18N::translate('Find Source');
break;
case "specialchar":
- echo i18n::translate('Find Special Characters');
+ echo WT_I18N::translate('Find Special Characters');
break;
case "facts":
- echo i18n::translate('Find fact tags');
+ echo WT_I18N::translate('Find fact tags');
break;
}
@@ -270,12 +270,12 @@ if ($type == "indi") {
echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />";
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" value=\"", i18n::translate('Filter'), "\" /><br />";
+ echo "<input type=\"submit\" value=\"", WT_I18N::translate('Filter'), "\" /><br />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -290,12 +290,12 @@ if ($type == "fam") {
echo "<input type=\"hidden\" name=\"multiple\" value=\"$multiple\" />";
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Name contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" value=\"", i18n::translate('Filter'), "\" /><br />";
+ echo "<input type=\"submit\" value=\"", WT_I18N::translate('Filter'), "\" /><br />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -314,7 +314,7 @@ if ($type == "media" && $MULTI_MEDIA) {
echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Media contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Media contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo help_link('simple_filter');
@@ -322,12 +322,12 @@ if ($type == "media" && $MULTI_MEDIA) {
echo "<tr><td class=\"list_label width10\" wstyle=\"padding: 5px;\">";
echo "<input type=\"checkbox\" name=\"showthumb\" value=\"true\"";
if ($showthumb) echo "checked=\"checked\"";
- echo "onclick=\"javascript: this.form.submit();\" />", i18n::translate('Show thumbnails');
+ echo "onclick=\"javascript: this.form.submit();\" />", WT_I18N::translate('Show thumbnails');
echo help_link('show_thumb');
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" name=\"search\" value=\"", i18n::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
- echo "<input type=\"submit\" name=\"all\" value=\"", i18n::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
+ echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
+ echo "<input type=\"submit\" name=\"all\" value=\"", WT_I18N::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -342,13 +342,13 @@ if ($type == "place") {
echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Place contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Place contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" name=\"search\" value=\"", i18n::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
- echo "<input type=\"submit\" name=\"all\" value=\"", i18n::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
+ echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
+ echo "<input type=\"submit\" name=\"all\" value=\"", WT_I18N::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -363,13 +363,13 @@ if ($type == "repo") {
echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Repository contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Repository contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" name=\"search\" value=\"", i18n::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
- echo "<input type=\"submit\" name=\"all\" value=\"", i18n::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
+ echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
+ echo "<input type=\"submit\" name=\"all\" value=\"", WT_I18N::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -384,13 +384,13 @@ if ($type == "note") {
echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Shared Note contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Shared Note contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" name=\"search\" value=\"", i18n::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
- echo "<input type=\"submit\" name=\"all\" value=\"", i18n::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
+ echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
+ echo "<input type=\"submit\" name=\"all\" value=\"", WT_I18N::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -405,13 +405,13 @@ if ($type == "source") {
echo "<input type=\"hidden\" name=\"subclick\">"; // This is for passing the name of which submit button was clicked
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo i18n::translate('Source contains:'), " <input type=\"text\" name=\"filter\" value=\"";
+ echo WT_I18N::translate('Source contains:'), " <input type=\"text\" name=\"filter\" value=\"";
if ($filter) echo $filter;
echo "\" />";
echo "</td></tr>";
echo "<tr><td class=\"list_label width10\" style=\"padding: 5px;\">";
- echo "<input type=\"submit\" name=\"search\" value=\"", i18n::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
- echo "<input type=\"submit\" name=\"all\" value=\"", i18n::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
+ echo "<input type=\"submit\" name=\"search\" value=\"", WT_I18N::translate('Filter'), "\" onclick=\"this.form.subclick.value=this.name\" />&nbsp;";
+ echo "<input type=\"submit\" name=\"all\" value=\"", WT_I18N::translate('Display all'), "\" onclick=\"this.form.subclick.value=this.name\" />";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -427,14 +427,14 @@ if ($type == "specialchar") {
echo "<table class=\"list_table $TEXT_DIRECTION width100\" border=\"0\">";
echo "<tr><td class=\"list_label\" style=\"padding: 5px;\">";
echo "<select id=\"language_filter\" name=\"language_filter\" onchange=\"submit();\">";
- echo "<option value=\"\">", i18n::translate('Change language'), "</option>";
+ echo "<option value=\"\">", WT_I18N::translate('Change language'), "</option>";
$language_options = "";
foreach ($specialchar_languages as $key=>$value) {
$language_options.= "<option value=\"$key\">$value</option>";
}
$language_options = str_replace("\"$language_filter\"", "\"$language_filter\" selected", $language_options);
echo $language_options;
- echo "</select><br /><a href=\"javascript:;\" onclick=\"setMagnify()\">", i18n::translate('Magnify'), "</a>";
+ echo "</select><br /><a href=\"javascript:;\" onclick=\"setMagnify()\">", WT_I18N::translate('Magnify'), "</a>";
echo "</td></tr></table>";
echo "</form></div>";
}
@@ -604,26 +604,26 @@ if ($type == "facts") {
<div id="layDefinedTags"><table id="tabDefinedTags">
<thead><tr>
<th>&nbsp;</th>
- <th><?php echo i18n::translate('Tag'); ?></th>
- <th><?php echo i18n::translate('Description'); ?></th>
+ <th><?php echo WT_I18N::translate('Tag'); ?></th>
+ <th><?php echo WT_I18N::translate('Description'); ?></th>
</tr></thead>
<tbody id="tbDefinedTags">
</tbody>
</table></div>
<table id="tabDefinedTagsShow"><tbody><tr>
- <td><a href="#" onclick="Lister.showSelected();return false"><?php echo i18n::translate('Show only selected tags'); ?> (<span id="layCurSelectedCount"></span>)</a></td>
- <td><a href="#" onclick="Lister.refreshNow(true);return false"><?php echo i18n::translate('Show all tags'); ?></a></td>
+ <td><a href="#" onclick="Lister.showSelected();return false"><?php echo WT_I18N::translate('Show only selected tags'); ?> (<span id="layCurSelectedCount"></span>)</a></td>
+ <td><a href="#" onclick="Lister.refreshNow(true);return false"><?php echo WT_I18N::translate('Show all tags'); ?></a></td>
</tr></tbody></table>
<table id="tabFilterAndCustom"><tbody>
- <tr><td><?php echo i18n::translate('Filter'); ?>:</td><td><input type="text" id="tbxFilter" /></td></tr>
- <tr><td><?php echo i18n::translate('Custom tags'); ?>:</td><td><input type="text" id="tbxCustom" value="<?php echo addslashes(implode(',', $preselCustom)); ?>" /></td></tr>
+ <tr><td><?php echo WT_I18N::translate('Filter'); ?>:</td><td><input type="text" id="tbxFilter" /></td></tr>
+ <tr><td><?php echo WT_I18N::translate('Custom tags'); ?>:</td><td><input type="text" id="tbxCustom" value="<?php echo addslashes(implode(',', $preselCustom)); ?>" /></td></tr>
<td><td></tbody></table>
<table id="tabAction"><tbody><tr>
- <td><button id="btnOk" disabled="disabled" onclick="if (!this.disabled)DoOK();"><?php echo i18n::translate('Accept'); ?></button></td>
- <td><button onclick="window.close();return false"><?php echo i18n::translate('Cancel'); ?></button></td>
+ <td><button id="btnOk" disabled="disabled" onclick="if (!this.disabled)DoOK();"><?php echo WT_I18N::translate('Accept'); ?></button></td>
+ <td><button onclick="window.close();return false"><?php echo WT_I18N::translate('Cancel'); ?></button></td>
<tr></tbody></table>
<?php
echo "</td></tr></table>";
@@ -634,7 +634,7 @@ echo "</td></tr>";
echo "</table>"; // Close table with find options
echo "<br />";
-echo "<a href=\"javascript:;\" onclick=\"if (window.opener.showchanges) window.opener.showchanges(); window.close();\">", i18n::translate('Close Window'), "</a><br />";
+echo "<a href=\"javascript:;\" onclick=\"if (window.opener.showchanges) window.opener.showchanges(); window.close();\">", WT_I18N::translate('Close Window'), "</a><br />";
echo "<br />";
if ($action=="filter") {
@@ -651,10 +651,10 @@ if ($action=="filter") {
foreach ($myindilist as $indi) {
echo $indi->format_list('li', true);
}
- echo '</ul></td></tr><tr><td class="list_label">', i18n::translate('Total individuals'), ' ', count($myindilist), '</tr></td>';
+ echo '</ul></td></tr><tr><td class="list_label">', WT_I18N::translate('Total individuals'), ' ', count($myindilist), '</tr></td>';
} else {
echo "<td class=\"list_value_wrap\">";
- echo i18n::translate('No results found.');
+ echo WT_I18N::translate('No results found.');
echo "</td></tr>";
}
echo "</table>";
@@ -676,10 +676,10 @@ if ($action=="filter") {
foreach ($myfamlist as $family) {
echo $family->format_list('li', true);
}
- echo '</ul></td></tr><tr><td class="list_label">', i18n::translate('Total families'), ' ', count($myfamlist), '</tr></td>';
+ echo '</ul></td></tr><tr><td class="list_label">', WT_I18N::translate('Total families'), ' ', count($myfamlist), '</tr></td>';
} else {
echo "<td class=\"list_value_wrap\">";
- echo i18n::translate('No results found.');
+ echo WT_I18N::translate('No results found.');
echo "</td></tr>";
}
echo "</table>";
@@ -709,7 +709,7 @@ if ($action=="filter") {
// Tell the user where he is
echo "<tr>";
echo "<td class=\"topbottombar\" colspan=\"2\">";
- echo i18n::translate('Current directory');
+ echo WT_I18N::translate('Current directory');
echo "<br />";
echo substr($directory, 0, -1);
echo "</td>";
@@ -723,7 +723,7 @@ if ($action=="filter") {
echo $uplink, "</td></tr>";
}
echo "<tr><td class=\"descriptionbox $TEXT_DIRECTION\" colspan=\"2\">";
- echo "<a href=\"find.php?directory={$directory}&amp;thumbdir=".str_replace($MEDIA_DIRECTORY, $MEDIA_DIRECTORY."thumbs/", $directory)."&amp;level={$level}{$thumbget}&amp;external_links=http&amp;type=media&amp;choose={$choose}\">", i18n::translate('External objects'), "</a>";
+ echo "<a href=\"find.php?directory={$directory}&amp;thumbdir=".str_replace($MEDIA_DIRECTORY, $MEDIA_DIRECTORY."thumbs/", $directory)."&amp;level={$level}{$thumbget}&amp;external_links=http&amp;type=media&amp;choose={$choose}\">", WT_I18N::translate('External objects'), "</a>";
echo "</td></tr>";
foreach ($dirs as $indexval => $dir) {
echo "<tr><td class=\"list_value $TEXT_DIRECTION\" colspan=\"2\">";
@@ -793,35 +793,35 @@ if ($action=="filter") {
echo "<a href=\"javascript:;\" onclick=\"pasteid('", addslashes($media["FILE"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- ";
}
else echo "<a href=\"javascript:;\" onclick=\"pasteid('", $media["XREF"], "', '", addslashes($media["TITL"]), "', '", addslashes($media["THUMB"]), "');\"><span dir=\"ltr\">", $media["FILE"], "</span></a> -- ";
- echo "<a href=\"javascript:;\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\">", i18n::translate('View'), "</a><br />";
- if (!$media["EXISTS"] && !isFileExternal($media["FILE"])) echo $media["FILE"], "<br /><span class=\"error\">", i18n::translate('The filename entered does not exist.'), "</span><br />";
+ echo "<a href=\"javascript:;\" onclick=\"return openImage('", rawurlencode($media["FILE"]), "', $imgwidth, $imgheight);\">", WT_I18N::translate('View'), "</a><br />";
+ if (!$media["EXISTS"] && !isFileExternal($media["FILE"])) echo $media["FILE"], "<br /><span class=\"error\">", WT_I18N::translate('The filename entered does not exist.'), "</span><br />";
else if (!isFileExternal($media["FILE"]) && !empty($imgsize[0])) {
- echo "<br /><sub>&nbsp;&nbsp;", i18n::translate('Image Dimensions'), " -- ", $imgsize[0], "x", $imgsize[1], "</sub><br />";
+ echo "<br /><sub>&nbsp;&nbsp;", WT_I18N::translate('Image Dimensions'), " -- ", $imgsize[0], "x", $imgsize[1], "</sub><br />";
}
if ($media["LINKED"]) {
- echo i18n::translate('This media object is linked to the following:'), "<br />";
+ echo WT_I18N::translate('This media object is linked to the following:'), "<br />";
foreach ($media["LINKS"] as $indi => $type_record) {
if ($type_record!='INDI' && $type_record!='FAM' && $type_record!='SOUR' && $type_record!='OBJE') continue;
$record=WT_GedcomRecord::getInstance($indi);
echo '<br /><a href="', $record->getHtmlUrl(), '">';
switch($type_record) {
case 'INDI':
- echo i18n::translate('View Person'), ' - ';
+ echo WT_I18N::translate('View Person'), ' - ';
break;
case 'FAM':
- echo i18n::translate('View Family'), ' - ';
+ echo WT_I18N::translate('View Family'), ' - ';
break;
case 'SOUR':
- echo i18n::translate('View Source'), ' - ';
+ echo WT_I18N::translate('View Source'), ' - ';
break;
case 'OBJE':
- echo i18n::translate('View Object'), ' - ';
+ echo WT_I18N::translate('View Object'), ' - ';
break;
}
echo PrintReady($record->getFullName()), '</a>';
}
} else {
- echo i18n::translate('This media object is not linked to any GEDCOM record.');
+ echo WT_I18N::translate('This media object is not linked to any GEDCOM record.');
}
echo "</td>";
}
@@ -830,7 +830,7 @@ if ($action=="filter") {
}
else {
echo "<tr><td class=\"list_value_wrap\">";
- echo i18n::translate('No results found.');
+ echo WT_I18N::translate('No results found.');
echo "</td></tr>";
}
echo "</table>";
@@ -863,12 +863,12 @@ if ($action=="filter") {
echo "<li><a href=\"javascript:;\" onclick=\"pasteid('", str_replace(array("'", '"'), array("\'", '&quot;'), $place), "');\">", PrintReady($place), "</a></li>";
}
echo "</ul></td></tr>";
- echo "<tr><td class=\"list_label\">", i18n::translate('Places found'), " ", $ctplace;
+ echo "<tr><td class=\"list_label\">", WT_I18N::translate('Places found'), " ", $ctplace;
echo "</td></tr>";
}
else {
echo "<tr><td class=\"list_value_wrap $TEXT_DIRECTION\"><ul>";
- echo i18n::translate('No results found.');
+ echo WT_I18N::translate('No results found.');
echo "</td></tr>";
}
}
@@ -885,12 +885,12 @@ if ($action=="filter") {
echo '<li><a href="', $repo->getHtmlUrl(), '" onclick="pasteid(\'', $repo->getXref(), '\');"><span class="list_item">', $repo->getListName(),'</span></a></li>';
}
echo "</ul></td></tr>";
- echo "<tr><td class=\"list_label\">", i18n::translate('Repositories found'), " ", count($repo_list);
+ echo "<tr><td class=\"list_label\">", WT_I18N::translate('Repositories found'), " ", count($repo_list);
echo "</td></tr>";
}
else {
echo "<tr><td class=\"list_value_wrap\">";
- echo i18n::translate('No results found.');
+ echo WT_I18N::translate('No results found.');
echo "</td></tr>";
}
echo "</table>";
@@ -910,10 +910,10 @@ if ($action=="filter") {
foreach ($mynotelist as $note) {
echo '<li><a href="', $note->getHtmlUrl(), '" onclick="pasteid(\'', $note->getXref(), '\');"><span class="list_item">', $note->getListName(),'</span></a></li>';
}
- echo '</ul></td></tr><tr><td class="list_label">', i18n::translate('Shared Notes found'), ' ', count($mynotelist), '</td></tr>';
+ echo '</ul></td></tr><tr><td class="list_label">', WT_I18N::translate('Shared Notes found'), ' ', count($mynotelist), '</td></tr>';
}
else {
- echo '<tr><td class="list_value_wrap">', i18n::translate('No results found.'), '</td></tr>';
+ echo '<tr><td class="list_value_wrap">', WT_I18N::translate('No results found.'), '</td></tr>';
}
echo '</table>';
}
@@ -932,10 +932,10 @@ if ($action=="filter") {
foreach ($mysourcelist as $source) {
echo '<li><a href="', $source->getHtmlUrl(), '" onclick="pasteid(\'', $source->getXref(), '\');"><span class="list_item">', $source->getListName(),'</span></a></li>';
}
- echo '</ul></td></tr><tr><td class="list_label">', i18n::translate('Total Sources'), ' ', count($mysourcelist), '</td></tr>';
+ echo '</ul></td></tr><tr><td class="list_label">', WT_I18N::translate('Total Sources'), ' ', count($mysourcelist), '</td></tr>';
}
else {
- echo '<tr><td class="list_value_wrap">', i18n::translate('No results found.'), '</td></tr>';
+ echo '<tr><td class="list_value_wrap">', WT_I18N::translate('No results found.'), '</td></tr>';
}
echo '</table>';
}